Error message: In order to perform Code Analysis on managed binaries, MSBuild needs to launch FxCop. MSBuild is unable to locate the FxCop binaries. Make sure Visual Studio Team Edition for Software Developers or Visual Studio Team Suite is installed and run MSBuild from within the “Visual Studio Command Prompt” or specify the path to FxCop by setting the FXCOPDIR environment variable.
To get rid of this error, we’ll make false Run Code Analysis property.
Open .csproj file with notepad;
... <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\</OutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <RunCodeAnalysis>true</RunCodeAnalysis> <CodeAnalysisRules>+!Microsoft.Security</CodeAnalysisRules> </PropertyGroup> ... |
Just replace “<RunCodeAnalysis>true</RunCodeAnalysis>” with “<RunCodeAnalysis>false</RunCodeAnalysis>”


