Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Guidance 2022.2.1.17) Generation of unit tests use outdated reference #260

Open
vvdb-architecture opened this issue Nov 12, 2024 · 1 comment

Comments

@vvdb-architecture
Copy link
Contributor

When generating Yarp or services, the code doesn't compile anymore:

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error (active)	NU1605	Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging from 8.0.1 to 8.0.0. Reference the package directly from the project to select a different version. 
 XXX.Core.UnitTest -> XXX.Core.Host -> Microsoft.Extensions.Logging (>= 8.0.1) 
 XXX.Core.UnitTest -> Microsoft.Extensions.Logging (>= 8.0.0)	XXX.Core.UnitTest	C:\PRJ\XXX\BE\Core\Tests\XXX.Core.UnitTest\XXX.Core.UnitTest.csproj	1		

This is because the unit tests have a reference to:

<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />

... which should be upgraded to:

<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" />
@GFlisch
Copy link
Owner

GFlisch commented Nov 12, 2024

Should be fixed and in production.

I have also added the new code for the csp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants