Fix workloads build step in official builds (#79656)
authorViktor Hofer <viktor.hofer@microsoft.com>
Wed, 14 Dec 2022 16:36:06 +0000 (17:36 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Dec 2022 16:36:06 +0000 (17:36 +0100)
src/workloads/workloads.csproj

index fb4b128..bb92acc 100644 (file)
       <MsiPackageProjects Include="%(Msis.PackageProject)" />
     </ItemGroup>
 
-    <MSBuild Projects="@(MsiPackageProjects)" Properties="OutputPath=$(ArtifactsShippingPackagesDir)" Targets="restore;pack" />
+    <!-- We disable PackageValidation which runs because these projects import the repo's Directory.Build.props and Directory.Build.targets file. -->
+    <MSBuild Projects="@(MsiPackageProjects)" Properties="OutputPath=$(ArtifactsShippingPackagesDir);EnablePackageValidation=false" Targets="restore;pack" />
   </Target>
 
   <!-- Target to create a single wixpack for signing -->