Skip to content

Commit c85b8a8

Browse files
committed
feat: validate package on pack
1 parent 9aa19eb commit c85b8a8

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

TimeProviderExtensions.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
ProjectSection(SolutionItems) = preProject
1212
.editorconfig = .editorconfig
1313
CHANGELOG.md = CHANGELOG.md
14+
src\TimeProviderExtensions\CompatibilitySuppressions.xml = src\TimeProviderExtensions\CompatibilitySuppressions.xml
1415
README.md = README.md
1516
EndProjectSection
1617
EndProject
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
3+
<Suppressions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<Suppression>
5+
<DiagnosticId>CP0001</DiagnosticId>
6+
<Target>T:System.Threading.PeriodicTimerWrapper</Target>
7+
<Left>lib/net6.0/TimeProviderExtensions.dll</Left>
8+
<Right>lib/net8.0/TimeProviderExtensions.dll</Right>
9+
</Suppression>
10+
</Suppressions>

src/TimeProviderExtensions/TimeProviderExtensions.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2020
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2121
<MinVerTagPrefix>v</MinVerTagPrefix>
22+
<EnablePackageValidation>true</EnablePackageValidation>
23+
<GenerateCompatibilitySuppressionFile>true</GenerateCompatibilitySuppressionFile>
24+
<!-- Enable to establish a base line for breaking changes once v1 is shipped -->
25+
<!--<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>-->
2226
</PropertyGroup>
2327

2428
<PropertyGroup>

0 commit comments

Comments
 (0)