Skip to content

Commit f3eb383

Browse files
committed
Emit warning about renamed NuGet package on build
1 parent 47a1589 commit f3eb383

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Target Name="WarnAboutObsoletePackage" BeforeTargets="BeforeBuild">
3+
<!-- Add <NoWarn>$(NoWarn);JADNC-OA</NoWarn> in a PropertyGroup in your project file to suppress this warning. -->
4+
<Warning Code="JADNC-OA" Text="The 'JsonApiDotNetCore.OpenApi' package has been renamed, please use 'JsonApiDotNetCore.OpenApi.Swashbuckle' instead." />
5+
</Target>
6+
</Project>

src/JsonApiDotNetCore.OpenApi/JsonApiDotNetCore.OpenApi.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<ItemGroup>
2828
<None Include="..\..\package-icon.png" Visible="false" Pack="True" PackagePath="" />
2929
<None Include="..\..\PackageReadme.md" Visible="false" Pack="True" PackagePath="" />
30+
<None Include="Build\*.targets" Pack="True" PackagePath="build" />
3031
</ItemGroup>
3132

3233
<ItemGroup>

0 commit comments

Comments
 (0)