开发者

C# Build Solution problem with ERROR CA0055

I am trying to build my project and I am getting a weird error every time I try to build the solution. The error is

Error 37 CA0055 : Could not load [Path to DLL]. SampleProject

Error 38 CA0052 : No targets were selected. SampleProject

Any help would be much appreciated.

This solution is 开发者_如何学编程also using the following

PostSharp 2.0

Telerik

MVC 3

T4 Templates

I don't know if these contribute to anything but hopefully it is enough information.


Are you using FxCop or an IDE code review plugin? Because both error code point to that.


The solution for me was to reformat. I couldn't get past it any other way that I had found online or via colleagues.


I also looked for reasons a long time.
If you use a console version of fxcop.
Try to use all following parameters togeather of fxcop ("fxcop /help" for details).

/searchgac
/assemblycomparemode:StrongNameIgnoringVersion
/directory:"C:\Windows\Microsoft.NET\Framework\v4.0.30319"
/directory:"C:\Windows\Microsoft.NET\Framework\v2.0.50727"
/reference:"packages\Autofac.4.0.0\lib\net451\Autofac.dll"
/reference:"packages\Autofac.3.5.0\lib\net40\Autofac.dll"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜