GFlisch / Arc4u.Guidance.Doc

Other
5 stars 1 forks source link

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

Open vvdb-architecture opened 2 weeks ago

vvdb-architecture commented 2 weeks ago

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 commented 1 week ago

Should be fixed and in production.

I have also added the new code for the csp