Skip to content

Commit 225aa8d

Browse files
committed
Disable package validation for libtorch packages
These don't contain managed surface area so running APICompat doesn't provide much value. Disable it to reduce the time spent and eliminate the need to record and restore previous versions of libtorch.
1 parent 077780d commit 225aa8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +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>
90+
<EnablePackageValidation>false</EnablePackageValidation>
9191
<VersionPrefix>$(LibTorchPackageVersion)</VersionPrefix>
9292
<VersionSuffix></VersionSuffix>
9393
</PropertyGroup>

pkg/Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<Import Project="..\Directory.Build.targets" />
33

4-
<PropertyGroup Condition="'$(IsPackable)' != 'false'">
4+
<PropertyGroup Condition="'$(IsPackable)' != 'false' and '$(EnablePackageValidation)' != 'false'">
55
<EnablePackageValidation>true</EnablePackageValidation>
66
<PackageValidationBaselineVersion>$(PreviousPackageVersion)</PackageValidationBaselineVersion>
77
</PropertyGroup>

0 commit comments

Comments
 (0)