Skip to content

Commit 189a174

Browse files
authored
disable package validation for .NET tools (#50941)
1 parent 2e2c92f commit 189a174

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.PackTool.targets

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ NOTE: This file is imported from the following contexts, so be aware when writin
3838
AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />
3939

4040
<PropertyGroup>
41-
<!-- tools are specially-formatted packages, so we tell nuget Pack to not even try to include build output -->
41+
<!-- Tools are specially-formatted packages, so we tell nuget Pack to not even try to include build output.
42+
Since this file is only loaded when PackAsTool is true, we can safely disable validation here. -->
4243
<IncludeBuildOutput>false</IncludeBuildOutput>
4344

45+
<!-- Tool packages are not library/API-providing packages, so they should not participate in API Compat validation at all.
46+
Since this file is only loaded when PackAsTool is true, we can safely disable validation here. -->
47+
<EnablePackageValidation>false</EnablePackageValidation>
48+
4449
<!-- Determine information about all of the potential tool packages to build -->
4550
<!-- If shims are included, we need to make sure we restore for those RIDs so the apphost shims are available during restore/publish.
4651
This means that we need to set RuntimeIdentifiers. However we need to track certain information about the _users_ decisions around RIDs

0 commit comments

Comments
 (0)