Skip to content

Commit d7ce791

Browse files
committed
warn if package is not release configuration
1 parent e487b9f commit d7ce791

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Directory.Build.targets

+4
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@ SPDX-License-Identifier: MIT
3939
<AssemblyMetadata Include="RepositoryCommit" Value="$(RepositoryCommit)" Condition=" '$(RepositoryCommit)' != '' " />
4040
</ItemGroup>
4141
</Target>
42+
43+
<Target Name="WarnNupkgConfiguration" AfterTargets="Pack" Condition=" '$(Configuration)' != 'Release' ">
44+
<Warning Text="generated nupkg with configuration '$(Configuration)'" />
45+
</Target>
4246
</Project>

0 commit comments

Comments
 (0)