未验证 提交 8f18c5da 编写于 作者: V Viktor Hofer 提交者: GitHub

Remove HarvestVersionValidation from pkg testing (#53818)

* Remove HarvestVersionValidation from pkg testing

As packages assets aren't redistributed anymore, harvesting doesn't need to rely on exact versions and thus the task isn't necessary anymore.
上级 fcad78b2
......@@ -8,9 +8,6 @@
<ItemGroup>
<PackagesToTest Condition="'$(PackagesToTest)' != ''" Include="$(PackagesToTest)" />
<PackageReports Condition="'@(PackagesToTest)' == ''" Include="$(PackageReportDir)*.json" Exclude="@(ExcludePackages->'$(PackageReportDir)%(Identity).json')"/>
<PackageReports Condition="'@(PackagesToTest)' != ''" Include="@(PackagesToTest->'$(PackageReportDir)%(Identity).json')" />
<!-- support override via commandline -->
<TargetFrameworksToInclude Condition="'$(TargetFrameworksToInclude)' != ''" Include="$(TargetFrameworksToInclude)" />
<SymbolsPackages Include="$(LibrariesAllConfigShippingPackagesDir)*.symbols.nupkg" />
......@@ -197,16 +194,7 @@
<Exec Command="$(TestBuildCommand) &quot;$(TestProject)&quot;" EnvironmentVariables="@(CliEnvironment)" StandardOutputImportance="High" />
</Target>
<UsingTask TaskName="ValidateHarvestVersionIsLatestForRelease" AssemblyFile="$(PackagingTaskDir)Microsoft.DotNet.Build.Tasks.Packaging.dll"/>
<Target Name="HarvestVersionValidation">
<!-- This target will validate that all packages that are harvesting assets will be doing it from the right package version.
If an error is detected, the task will print out the command needed in order to fix the problem. This test requires
network access, as what it does is ensure that the harvest version we are using is the latest stable available for that
specific package release. -->
<ValidateHarvestVersionIsLatestForRelease PackageReports="@(PackageReports)" />
</Target>
<Target Name="Build" DependsOnTargets="BuildProjects;HarvestVersionValidation;ArchiveHelixItems" />
<Target Name="Build" DependsOnTargets="BuildProjects;ArchiveHelixItems" />
<!-- define test to do nothing, for this project Build does all the testing -->
<Target Name="Test" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册