Skip to content

Commit

Permalink
Added example using NuGet Package Validation to detect breaking chang…
Browse files Browse the repository at this point in the history
…es in the public api
  • Loading branch information
oskardudycz committed May 17, 2024
1 parent ef8d994 commit a330512
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Sample/EventsVersioning/ECommerce.V1/ECommerce.V1.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- Catches incompatibility with the NuGet.
Read more in: https://devblogs.microsoft.com/dotnet/package-validation/#validation-against-baseline-package-version
-->
<Sdk Name="Microsoft.DotNet.PackageValidation" Version="1.0.0-preview.5.21302.8" />

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Ecommerce.V1</PackageId>
<Version>1.0.0</Version>
<!-- Ucomment if you have NuGet published. Set it to the previous major version -->
<!-- <PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>-->
</PropertyGroup>

</Project>

0 comments on commit a330512

Please sign in to comment.