Fluentassertions.Analyzers 0.12.0 gives warning with net48
See original GitHub issueDescription
When using the Fluentassertions.Analyzers 0.12.0 in a project the following warnings appear in Visual Studio:
Warning CS8032 An instance of analyzer FluentAssertions.Analyzers.CollectionShouldBeEmptyAnalyzer cannot be created from C:\Users\KristianRastrup\.nuget\packages\fluentassertions.analyzers\0.12.0\analyzers\dotnet\cs\Release\netstandard2.1\FluentAssertions.Analyzers.dll: Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. Den angivne fil blev ikke fundet..
And:
Warning CS8032 An instance of analyzer FluentAssertions.Analyzers.CollectionShouldBeInAscendingOrderAnalyzer cannot be created from C:\Users\KristianRastrup\.nuget\packages\fluentassertions.analyzers\0.12.0\analyzers\dotnet\cs\Release\netstandard2.1\FluentAssertions.Analyzers.dll: Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. Den angivne fil blev ikke fundet..
The project is a .Net Framework 4.8 xUnit test project
Complete minimal example reproducing the issue
Add FluentAssertions.Analyzers 0.12.0 to a .Net Framework 4.8 project as a NuGet package
Expected behavior:
No warnings
Actual behavior:
Warnings appear during build
Versions
FluentAssertions.Analyzers 0.12.0 .Net Framework 4.8
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
That was fast, problem solved.
@rastrup try the new version
0.12.1