Skip to content

Commit 3152e9d

Browse files
authored
Emit warning about renamed NuGet package on build (#1596)
1 parent 47a1589 commit 3152e9d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 6 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)