Skip to content

Commit 95b338b

Browse files
authored
Disable warnings for non-packable test projects
1 parent 2d1fb4e commit 95b338b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343

4444
<!-- Ensure MSBuild tooling can access package artifacts always via PKG_[PackageId] -->
4545
<GeneratePathProperty>true</GeneratePathProperty>
46+
<!-- Avoid warnings for test projects when we run dotnet pack on the whole solution. -->
47+
<WarnOnPackingNonPackableProject>false</WarnOnPackingNonPackableProject>
4648
</PropertyGroup>
4749

4850
<PropertyGroup Label="Build">

0 commit comments

Comments
 (0)