61 lines
2.7 KiB
XML
61 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Target Name="FinishBuild"
|
|
DependsOnTargets="CheckIfAllBuildsHavePublished;
|
|
EvaluateRuntimeCoherence;
|
|
FinalizeBuild" />
|
|
|
|
<Target Name="CheckIfAllBuildsHavePublished">
|
|
<CheckIfAllBuildsHavePublished AccountKey="$(ArtifactCloudDropAccessToken)"
|
|
AccountName="$(ArtifactCloudDropAccountName)"
|
|
ContainerName="$(ArtifactContainerName)"
|
|
NugetVersion="$(FullNugetVersion)"
|
|
VersionBadgeMoniker="$(VersionBadgeMoniker)">
|
|
<Output TaskParameter="HaveAllBuildsPublished" PropertyName="HaveAllBuildsPublished" />
|
|
</CheckIfAllBuildsHavePublished>
|
|
</Target>
|
|
|
|
<Target Name="EvaluateRuntimeCoherence"
|
|
DependsOnTargets="ReadAspNetCoreSharedRuntimeVersionFile"
|
|
BeforeTargets="FinalizeBuild">
|
|
<PropertyGroup>
|
|
<Coherent>false</Coherent>
|
|
<Coherent Condition=" '$(CLI_SharedFrameworkVersion)' == '@(AspNetCoreSharedRuntimeVersion)' ">true</Coherent>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<Target Name="ReadAspNetCoreSharedRuntimeVersionFile"
|
|
DependsOnTargets="DownloadHostAndSharedFxArtifacts">
|
|
<ItemGroup>
|
|
<File Include="$(AspNetCoreSharedRuntimeVersionFile)" />
|
|
</ItemGroup>
|
|
<ReadLinesFromFile File="@(File)">
|
|
<Output
|
|
TaskParameter="Lines"
|
|
ItemName="AspNetCoreSharedRuntimeVersion"/>
|
|
</ReadLinesFromFile>
|
|
</Target>
|
|
|
|
<Target Name="FinalizeBuild"
|
|
Condition=" '$(HaveAllBuildsPublished)' == 'True' ">
|
|
<CopyBlobsToLatest AccountName="$(ArtifactCloudDropAccountName)"
|
|
AccountKey="$(ArtifactCloudDropAccessToken)"
|
|
ContainerName="$(ArtifactContainerName)"
|
|
NugetVersion="$(FullNugetVersion)"
|
|
Channel="$(Channel)"
|
|
CommitHash="$(CommitHash)"
|
|
Coherent="$(Coherent)" />
|
|
|
|
<CopyBlobsToLatest AccountName="$(ChecksumCloudDropAccountName)"
|
|
AccountKey="$(ChecksumCloudDropAccessToken)"
|
|
ContainerName="$(ChecksumContainerName)"
|
|
NugetVersion="$(FullNugetVersion)"
|
|
Channel="$(Channel)"
|
|
CommitHash="$(CommitHash)"
|
|
Coherent="$(Coherent)" />
|
|
|
|
<UpdateVersionsRepo BranchName="$(BranchName)"
|
|
PackagesDirectory="$(PackagesDirectory)"
|
|
GitHubPassword="$(GITHUB_PASSWORD)" />
|
|
</Target>
|
|
</Project>
|