ShimNotSupportedException in MS VisualStudio 2012

前端 未结 3 1728
别那么骄傲
别那么骄傲 2020-12-19 10:55

I\'m just trying to get familiar with the new Fakes Isolation Framework in Visual Studio 2012 RC but I\'m consequently facing issues with ShimNotSupportedException

3条回答
  •  不知归路
    2020-12-19 11:37

    I have seen this error a number of times with different causes:

    • There is an error or problem in your fakes generation files, some of them are not correct generated. Clean the directories and remake your fake references
    • A depending dll is missing. In this case you are missing a dll on which a fakes dll depends. In one case I was shimming a webservice and missing the System.ServiceModel dll.
    • Sometimes you can fix it with changing your testsetting default processor architecure. However I do not know why, it will probably refresh some cached dlls.

提交回复
热议问题