Skip to content

Commit 7472139

Browse files
committed
Disable NU1903 warning for Microsoft.Build
It has ExcludeAssets="runtime" anyway, meaning that's it's not copied into the build output directory. Microsoft.Build.Locator is used to use the MSBuild instance from the machine where nugraph is run.
1 parent 1e5b806 commit 7472139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nugraph/nugraph.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<PackageReference Include="Espresso3389.HttpStream" Version="2.0.76" />
4848
<PackageReference Include="Microsoft.Bcl.Memory" Version="9.0.9" />
4949
<!-- 17.11.31 is the latest version that supports .NET 8, starting with version 17.12.6, only .NET 9 is supported -->
50-
<PackageReference Include="Microsoft.Build" Version="[17.11.31,17.12.6)" ExcludeAssets="runtime" />
50+
<PackageReference Include="Microsoft.Build" Version="[17.11.31,17.12.6)" ExcludeAssets="runtime" NoWarn="NU1903" />
5151
<PackageReference Include="Microsoft.Build.Locator" Version="1.10.2" />
5252
<PackageReference Include="MinVer" Version="6.0.0" PrivateAssets="all" />
5353
<PackageReference Include="NuGet.ProjectModel" Version="6.14.0" />

0 commit comments

Comments
 (0)