VS2012 Code analyse failing on mvc4 project
-
Monday, February 25, 2013 2:41 PM
Analyse is failing, but project and all assembly can be compliled and working...
I do not know what is the reason.
What was done wrong and how I can observe the reason?
CA0052 Error Running Code Analysis
CA0052 : No targets were selected.
[Errors and Warnings] - (Global)CA0058 Error Running Code Analysis
CA0058 : The referenced assembly 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be found. This assembly is required for analysis and was referenced by: D:\src\sanbox\trunk\AbbyyLS.TestCase\AbbyyLs.CAT.Api.WebApi\bin\AbbyyLs.CAT.Api.WebApi.dll, D:\src\sanbox\trunk\AbbyyLS.TestCase\packages\Microsoft.AspNet.WebApi.Core.4.0.20710.0\lib\net40\System.Web.Http.dll.
[Errors and Warnings] - (Global)CA0055 Error Running Code Analysis
CA0055 : Could not load D:\src\sanbox\trunk\AbbyyLS.TestCase\AbbyyLs.CAT.Api.WebApi\bin\AbbyyLs.CAT.Api.WebApi.dll. The following error was encountered while reading module 'System.Web.Http': Assembly reference cannot be resolved: System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
[Errors and Warnings] - (Global)- Edited by SychevIgor Monday, February 25, 2013 2:46 PM
All Replies
-
Tuesday, February 26, 2013 1:43 PM
See http://connect.microsoft.com/VisualStudio/feedback/details/760208/nuget-package-for-asp-net-mvc-4-web-api-does-not-reference-correct-net-4-5-assemblies for an explanation and workaround.- Marked As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Monday, March 04, 2013 1:54 AM

