aspnetcore/build/PackageArchive.targets

37 строки
1.3 KiB
XML

<Project>
<Target Name="CheckForPreviousReleaseArchiveBaseline" BeforeTargets="FastCheck">
<MSBuild Projects="@(ArchiveProjects)"
Targets="CheckForPreviousReleaseArchiveBaseline" />
</Target>
<ItemGroup>
<ArchiveProjects Include="$(RepositoryRoot)src\PackageArchive\Archive.*\*.*proj" />
</ItemGroup>
<Target Name="BuildFallbackArchive" DependsOnTargets="ResolveSharedSourcesPackageInfo;GetProjectArtifactInfo;ResolveRepoInfo;GeneratePropsFiles">
<PropertyGroup>
<ArchiveBuildProps>
DotNetRestoreSourcePropsPath=$(GeneratedRestoreSourcesPropsPath);
DotNetPackageVersionPropsPath=$(GeneratedPackageVersionPropsPath);
OutputPath=$(ArtifactsDir)lzma\;
_BuildToolsAssembly=$(_BuildToolsAssembly)
</ArchiveBuildProps>
</PropertyGroup>
<Error Text="Could not find any package archive projects to build"
Condition=" @(ArchiveProjects->Count()) == 0 " />
<MSBuild Projects="@(ArchiveProjects)"
Targets="Restore"
BuildInParallel="false"
StopOnFirstFailure="true"
Properties="$(ArchiveBuildProps);_Dummy=restore" />
<MSBuild Projects="@(ArchiveProjects)"
Targets="Build"
BuildInParallel="false"
StopOnFirstFailure="true"
Properties="$(ArchiveBuildProps)" />
</Target>
</Project>