question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fluentassertions.Analyzers 0.12.0 gives warning with net48

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rastrupcommented, Oct 22, 2021

@rastrup try the new version 0.12.1

That was fast, problem solved.

1reaction
Meir017commented, Oct 21, 2021

@rastrup try the new version 0.12.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - FluentAssertions.Analyzers Not Providing Expected ...
I have a simple C# .NET 6 Xunit test project and am using FluentAssertions to verify the expected outcomes of my tests.
Read more >
FluentAssertions.Analyzers 0.21.0
A collection of Analyzers based on the best practices tips. Alt. Analysis and Code Fix in Action. Demo. Install. using the latest stable...
Read more >
Tips - Fluent Assertions
A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found