I have a project that targets .NET 4.5. In Visual Studio 2012, I can run code analysis (FxCop) just as in older version of Visual Studio.
Our build machine used the build agent from our Team Foundation Server Server which is Team Foundation Server 2010. We have installed the .NET 4.5 SDK out of the Windows 8 SDK which has enabled the build agents to compile the .NET 4.5 projects. We have FxCop installed and static code analysis "just works" for project targeting .NET 4.0, but it cannot be found in the logs when targeting .NET 4.5.
Is this even possible? Will it work if we upgrade to Team Foundation Server 2012?
What we have tried:
Updating FxCop to 10.0 (from 1.36), because I suspected we need an updated version of FxCop to get the analysis just as we needed to install tools enable compilation. However 10.0 predates .NET 4.5. We tried looking for a new version in the SDK, but according to the MS Webpage for the Windows 8 SDK:
FXCopSetup.exe has been removed from the SDK as a tool that is "obsolete or deprecated"
Running FxCop 10.0 against the assemblies using the FxCop GUI seems to work fine.