Fxcop not working on .net core project when launched from console

I am trying to integrate static analysis into a .net core 1.1 project. What I have been doing so far is to install the Microsoft.CodeAnalysis.FxCopAnalyzers package and add the rules to the csproj property group:

<PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
    <CodeAnalysisRuleSet>../StaticAnalysis/ManagedRuleSet.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

      

I created a rule violation for testing and this setup works well in Visual Studio 2017. The problem comes up when I try to build from the console:

dotnet build

      

No errors or warnings :( This is very important so that I can do this run on the build machine.

+3
.net-core roslyn fxcop asp.net-core-webapi dotnet-cli


source to share


No one has answered this question yet

Check out similar questions:

700
What is the difference between .NET Core and .NET Standard Class project types?
94
Visual Studio 2017 sets breaks Visual Studio 2015 ASP.NET Core Projects
90
Automatic versioning in Visual Studio 2017 (.NET Core)
fourteen
Visual Studio command line services build .net core 1.1
7
WebHostBuilder.Build () MissingMethodException in .NET Core migrated solution
4
How do I use Roslyn to compile a .NET Core console app from a .NET Core console app?
4
NUnit.NET Core works through Resharper
4
.NET Core website will not be OSX based
1
Dependencies not found in .Net Core console app - not showing at startup
0
What determines if .net core uses .csproj core or project.json



All Articles
Loading...
X
Show
Funny
Dev
Pics