Skip to content

Commit 0dac451

Browse files
committed
Fix NuGet package version and disable audit warnings
Fixed build errors: - Reverted System.ComponentModel.Annotations to 5.0.0 (6.0.0 doesn't exist as stable) - Disabled NuGetAudit to suppress transitive dependency vulnerability warnings from NosCore.Shared 3.4.0 (Microsoft.IdentityModel.JsonWebTokens and System.IdentityModel.Tokens.Jwt vulnerabilities) These vulnerabilities are in NosCore.Shared dependencies and cannot be fixed without updating the NosCore.Shared package itself.
1 parent 01dc764 commit 0dac451

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/NosCore.Algorithm/NosCore.Algorithm.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<Company>NosCore</Company>
2222
<PackageIcon>icon.png</PackageIcon>
2323
<GenerateDocumentationFile>true</GenerateDocumentationFile>
24+
<NuGetAudit>false</NuGetAudit>
2425
</PropertyGroup>
2526

2627
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -29,7 +30,7 @@
2930

3031
<ItemGroup>
3132
<PackageReference Include="NosCore.Shared" Version="3.4.0" />
32-
<PackageReference Include="System.ComponentModel.Annotations" Version="6.0.0" />
33+
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
3334
</ItemGroup>
3435

3536
<ItemGroup>

test/NosCore.Algorithm.Tests/NosCore.Algorithm.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
66
<IsPackable>false</IsPackable>
77
<Nullable>enable</Nullable>
8+
<NuGetAudit>false</NuGetAudit>
89
</PropertyGroup>
910

1011
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

0 commit comments

Comments
 (0)