Skip to content

Commit

Permalink
Merge branch 'issue/OSOE-855' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed May 20, 2024
2 parents 4324b3c + bae90c4 commit 297b5af
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ dotnet build MySolution.sln --no-incremental -warnaserror /p:TreatWarningsAsErro

> ⚠ If you are using the NuGet package, run `dotnet msbuild "-t:Restore;LombiqNetAnalyzers" MySolution.sln` first to ensure the _.editorconfig_ file is deployed. This is especially important for CI usage. For local development, you can simply rebuild the solution.
Note that code style analysis is experimental in the .NET 5 SDK and [may change in later versions](https://github.com/dotnet/roslyn/issues/49044).

## Non-SDK-style .NET Framework projects

Non-SDK-style .NET Framework projects can't use `dotnet build` for analyzer warnings to show during build, not just in Visual Studio, because it won't resolve `<PackageReference>` elements (see [this issue](https://github.com/dotnet/msbuild/issues/5250)). You'll need to use the following command to achieve what's elaborated above for `dotnet build` (change the MSBuild path to a suitable one):
Expand Down

0 comments on commit 297b5af

Please sign in to comment.