Skip to content

Commit 08a8b76

Browse files
committed
Enable PackageValidation
1 parent 6f38f07 commit 08a8b76

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<!-- we manually update these -->
8888
<PropertyGroup Condition="'$(MSBuildProjectName.IndexOf(`libtorch-`))' != '-1'">
8989
<LibTorchPackageVersion>2.2.1.1</LibTorchPackageVersion>
90+
<PreviousPackageVersion>2.2.1.1</PreviousPackageVersion>
9091
<VersionPrefix>$(LibTorchPackageVersion)</VersionPrefix>
9192
<VersionSuffix></VersionSuffix>
9293
</PropertyGroup>

build/BranchInfo.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<MajorVersion>0</MajorVersion>
44
<MinorVersion>102</MinorVersion>
55
<PatchVersion>7</PatchVersion>
6+
<PreviousPackageVersion>0.102.6</PreviousPackageVersion>
67
</PropertyGroup>
78

89
</Project>

pkg/Directory.Build.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project>
2+
<Import Project="..\Directory.Build.targets" />
3+
4+
<PropertyGroup Condition="'$(IsPackable)' != 'false'">
5+
<EnablePackageValidation>true</EnablePackageValidation>
6+
<PackageValidationBaselineVersion>$(PreviousPackageVersion)</PackageValidationBaselineVersion>
7+
</PropertyGroup>
8+
</Project>

0 commit comments

Comments
 (0)