47da513313
* Repairing the first pass call to 'dotnet msbuild'; CLI:master (#8488) * '$ExtraParametersNoTargets', which is used on the first pass call to 'dotnet msbuild', currently is of type 'string' not 'List'1' as is '$ExtraParameters'. This results in the non-honoring of any parameter other than parameter one. Solution: Make a copy of '$ExtraParameters' to '$ExtraParametersNoTargets' of type 'List'1' and remove the targets from the list. * Swallow the boolean output from '$ExtraParametersNoTargets.Remove' * Specifically capture "/t:" or "/target:" only. * The "${arg,,}" syntax works well on dev and Jenkins OSX machines but does not work correctly on VSO build machines [likely a lower version of bash on VSO machines]. Therefore, using 'awk' to transforming to lower case. (#8497) * Orchestrated final publish; CLI:master (#8504) * Orchestrated final publish: https://github.com/dotnet/core-eng/issues/2407 * Changes per code review... * The orchestrated "PackageVersion" type variables should not be used in any of the 'proj' files of the built build tools under: "build_projects"
93 lines
4.7 KiB
XML
93 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Condition=" '$(GeneratePropsFile)' != 'true' " Project="$(NuGetPackagesDir)/microsoft.dotnet.build.tasks.feed/$(BuildTasksFeedToolVersion)/build/Microsoft.DotNet.Build.Tasks.Feed.targets" />
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/FinishBuild.targets" />
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/PublishContent.targets" />
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/PublishNupkgToBlobFeed.targets" />
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/Badge.targets" />
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/Checksum.targets" />
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/RuntimeCoherence.targets" />
|
|
|
|
<!-- PUBLISH_TO_AZURE_BLOB env variable set by CI -->
|
|
<Target Name="Publish"
|
|
Condition=" '$(PUBLISH_TO_AZURE_BLOB)' == 'true' "
|
|
DependsOnTargets="Init;
|
|
SetBadgeProps;
|
|
Package;
|
|
EvaluateRuntimeCoherence;
|
|
PublishArtifacts;
|
|
FinishBuild" />
|
|
|
|
<Target Name="PublishWithoutPackage"
|
|
Condition=" '$(PUBLISH_TO_AZURE_BLOB)' == 'true' "
|
|
DependsOnTargets="Init;
|
|
SetBadgeProps;
|
|
EvaluateRuntimeCoherence;
|
|
PublishArtifacts;
|
|
FinishBuild" />
|
|
|
|
<!-- UploadToAzure target comes from Build Tools -->
|
|
<Target Name="PublishArtifacts"
|
|
DependsOnTargets="GenerateVersionBadge;
|
|
GenerateCoherentBadge;
|
|
GatherItemsForPattern;
|
|
GenerateChecksums;
|
|
UploadArtifactsToAzure;
|
|
UploadChecksumsToAzure;
|
|
PublishNupkgToBlobFeed;
|
|
PublishCliVersionBadge" />
|
|
|
|
<Target Name="GatherItemsForPattern">
|
|
<ItemGroup>
|
|
<ForPublishing Include="@(GeneratedInstallers)"
|
|
Condition=" '$(PublishNativeInstallers)' == 'true' "/>
|
|
<ForPublishing Include="%(GenerateArchivesInputsOutputs.Outputs)"
|
|
Condition=" '$(PublishArchives)' == 'true' "/>
|
|
<ForPublishing Include="$(PackagesDirectory)/Microsoft*.nupkg"
|
|
Condition=" '$(OS)' == 'Windows_NT' And '$(Architecture)' == 'x64' "/>
|
|
<ForPublishing Include="$(PackagesDirectory)/VS.Redist.Common.Net.Core.SDK.$(Architecture).*.nupkg"
|
|
Condition=" '$(OS)' == 'Windows_NT' "/>
|
|
<ForPublishing Include="$(PackagesDirectory)/VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.*.nupkg"
|
|
Condition=" '$(OS)' == 'Windows_NT' And '$(Architecture)' == 'x64' "/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ForPublishing>
|
|
<RelativeBlobPath>$(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/'))</RelativeBlobPath>
|
|
<ManifestArtifactData>ShipInstaller=dotnetcli</ManifestArtifactData>
|
|
</ForPublishing>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<Target Name="PublishCliVersionBadge">
|
|
<Error Condition="'$(ArtifactCloudDropAccessToken)' == ''" Text="Missing property ArtifactCloudDropAccessToken." />
|
|
<Error Condition="'$(ArtifactCloudDropURL)' == ''" Text="Missing property ArtifactCloudDropURL." />
|
|
|
|
<ItemGroup>
|
|
<CliVersionBadgeToUpload Include="$(VersionBadge)" />
|
|
<CliVersionBadgeToUpload Include="$(CoherentBadge)"
|
|
Condition=" '$(Coherent)' == 'true' " />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<CliVersionBadgeToUpload>
|
|
<RelativeBlobPath>$(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/'))</RelativeBlobPath>
|
|
<ManifestArtifactData>ShipInstaller=dotnetcli</ManifestArtifactData>
|
|
</CliVersionBadgeToUpload>
|
|
</ItemGroup>
|
|
|
|
<Message Text="Publish badges to blob feed started: $(ArtifactCloudDropURL)" />
|
|
<PushToBlobFeed ExpectedFeedUrl="$(ArtifactCloudDropURL)"
|
|
AccountKey="$(ArtifactCloudDropAccessToken)"
|
|
ItemsToPush="@(CliVersionBadgeToUpload)"
|
|
ManifestBranch="$(BranchName)"
|
|
ManifestBuildId="$(FullNugetVersion)"
|
|
ManifestCommit="$(CommitHash)"
|
|
ManifestName="$(BuildName)"
|
|
ManifestBuildData="ProductVersion=$(FullNugetVersion)"
|
|
Overwrite="false"
|
|
PublishFlatContainer="true"
|
|
SkipCreateManifest="$(IsNotOrchestratedPublish)" />
|
|
</Target>
|
|
|
|
</Project>
|