Home Dashboard Directory Help
Search

Code Analysis doesn't work with Out-of-the-box VS2012 WebSite by Bill44077


Status: 

Closed


3
0
Sign in
to vote
Type: Bug
ID: 785600
Opened: 4/25/2013 10:28:36 AM
Access Restriction: Public
0
Workaround(s)
view
1
User(s) can reproduce this bug

Description

Hi,
I have been working with folks on the forums and have not been able to get a Web Site webforms asp.net 4 to run the Code Analysis in VS2012.
Details
Sign in to post a comment.
Posted by Microsoft on 8/15/2013 at 1:50 PM
Thanks for reporting the issue. This is fixed in Visual Studio 2013.
Posted by carpet1111 on 7/14/2013 at 12:50 AM
Same problem. To reproduce: Open Visual Studio 2012, Create new web project (I created a webforms project).
Run code analysis. 2 Errors appear.
Posted by Microsoft on 5/2/2013 at 11:05 PM
Your issue has been routed to the appropriate VS development team for investigation.
Posted by AllanWest on 5/1/2013 at 1:56 AM
I'm having the same issue creating an MVC4 Internet Application as well. Running on Visual Studio Professional 2012 11.0.60315.01 Update 2. As soon as I try to run the code analysis, I get the two errors below.

Both are referenced in the solution, but their version numbers by default are 4.1.0.0 (and running the updates via Nuget brings them to 4.2.0.0 but still returns the same error).

CA0058    Error Running Code Analysis    CA0058 : The referenced assembly 'DotNetOpenAuth.AspNet, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' could not be found. This assembly is required for analysis and was referenced by: c:\users\dev1\documents\visual studio 2012\Projects\MvcApplication1\MvcApplication1\bin\MvcApplication1.dll, c:\users\dev1\documents\visual studio 2012\Projects\MvcApplication1\packages\Microsoft.AspNet.WebPages.OAuth.2.0.20710.0\lib\net40\Microsoft.Web.WebPages.OAuth.dll.    [Errors and Warnings]    (Global)    

CA0001    Error Running Code Analysis    CA0001 : The following error was encountered while reading module 'Microsoft.Web.WebPages.OAuth': Assembly reference cannot be resolved: DotNetOpenAuth.AspNet, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246.    [Errors and Warnings]    (Global)    

Posted by Microsoft on 4/29/2013 at 1:00 AM
Hi Bill44077, we want to remind you we have sent new comments to you. Please reply to us in time. Thanks for your time.
Posted by Microsoft on 4/25/2013 at 11:52 PM
Hi Bill44077, thank you for submitting feedback on Visual Studio and .NET Framework. I can't repro this issue in my case. I use Visual Studio Ultimate 2012 Version 11.0.60223.01 Update 2 CTP. May i ask which version of VS 2012 do you use? Thanks for your time.
Posted by Microsoft on 4/25/2013 at 11:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.