Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9369d4f

Browse files
[tests] fix NU1510 warning as error (#1306)
Context: NuGet/NuGet.Client#6239 .NET 10 Preview 1 enables `$(RestoreEnablePackagePruning)=true` by default. This produces multiple warnings as errors in dotnet/android: external\Java.Interop\tests\Java.Interop.Dynamic-Tests\Java.Interop.Dynamic-Tests.csproj : error NU1510: Warning As Error: PackageReference Microsoft.CSharp will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary. The `Microsoft.CSharp` package does seem like it can just be removed.
1 parent 6bc87e8 commit 9369d4f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/Java.Interop.Dynamic-Tests/Java.Interop.Dynamic-Tests.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Microsoft.CSharp" />
1716
<PackageReference Include="Microsoft.NET.Test.Sdk" />
1817
<PackageReference Include="nunit" />
1918
<PackageReference Include="NUnit.ConsoleRunner" />

0 commit comments

Comments
 (0)