2016-07-08 16:02:03 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2018-01-17 02:36:50 +00:00
|
|
|
<Import Condition=" '$(GeneratePropsFile)' != 'true' " Project="$(NuGetPackagesDir)/microsoft.dotnet.build.tasks.feed/$(BuildTasksFeedToolVersion)/build/Microsoft.DotNet.Build.Tasks.Feed.targets" />
|
2016-10-12 14:25:06 -05:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/FinishBuild.targets" />
|
2016-08-09 08:28:23 -05:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/PublishContent.targets" />
|
2017-11-30 10:35:51 -08:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/PublishNupkgToBlobFeed.targets" />
|
2017-02-14 15:42:13 -08:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/Badge.targets" />
|
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/Checksum.targets" />
|
2017-07-06 09:21:59 -07:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/RuntimeCoherence.targets" />
|
2017-09-15 11:30:42 -07:00
|
|
|
|
2016-07-08 16:02:03 -07:00
|
|
|
<!-- PUBLISH_TO_AZURE_BLOB env variable set by CI -->
|
|
|
|
<Target Name="Publish"
|
2017-11-08 09:26:32 -08:00
|
|
|
Condition=" '$(PUBLISH_TO_AZURE_BLOB)' == 'true' "
|
2016-07-15 13:44:11 -07:00
|
|
|
DependsOnTargets="Init;
|
2017-09-15 11:30:42 -07:00
|
|
|
SetBadgeProps;
|
2016-07-08 16:02:03 -07:00
|
|
|
Package;
|
2017-07-06 11:11:07 -07:00
|
|
|
EvaluateRuntimeCoherence;
|
2016-07-08 16:02:03 -07:00
|
|
|
PublishArtifacts;
|
2016-07-15 13:44:11 -07:00
|
|
|
FinishBuild" />
|
|
|
|
|
2017-09-15 11:30:42 -07:00
|
|
|
<Target Name="PublishWithoutPackage"
|
2017-11-08 09:26:32 -08:00
|
|
|
Condition=" '$(PUBLISH_TO_AZURE_BLOB)' == 'true' "
|
2016-07-15 13:44:11 -07:00
|
|
|
DependsOnTargets="Init;
|
2017-09-14 17:07:19 -07:00
|
|
|
SetBadgeProps;
|
2017-07-06 11:11:07 -07:00
|
|
|
EvaluateRuntimeCoherence;
|
2016-07-08 16:02:03 -07:00
|
|
|
PublishArtifacts;
|
2016-07-15 13:44:11 -07:00
|
|
|
FinishBuild" />
|
|
|
|
|
|
|
|
<!-- UploadToAzure target comes from Build Tools -->
|
2016-07-22 19:01:32 -04:00
|
|
|
<Target Name="PublishArtifacts"
|
2017-06-30 12:17:20 -07:00
|
|
|
DependsOnTargets="GenerateVersionBadge;
|
|
|
|
GenerateCoherentBadge;
|
|
|
|
GatherItemsForPattern;
|
|
|
|
GenerateChecksums;
|
|
|
|
UploadArtifactsToAzure;
|
|
|
|
UploadChecksumsToAzure;
|
2017-11-30 10:35:51 -08:00
|
|
|
PublishNupkgToBlobFeed;
|
2017-07-03 14:34:04 -07:00
|
|
|
PublishCliVersionBadge" />
|
2017-08-30 16:16:08 -07:00
|
|
|
|
2018-01-16 22:16:56 +00:00
|
|
|
<Target Name="GatherItemsForPattern">
|
2016-07-08 16:02:03 -07:00
|
|
|
<ItemGroup>
|
2017-06-15 22:36:41 +00:00
|
|
|
<ForPublishing Include="@(GeneratedInstallers)"
|
2017-09-29 13:58:08 -07:00
|
|
|
Condition=" '$(PublishNativeInstallers)' == 'true' "/>
|
2017-06-15 22:36:41 +00:00
|
|
|
<ForPublishing Include="%(GenerateArchivesInputsOutputs.Outputs)"
|
2017-09-29 13:58:08 -07:00
|
|
|
Condition=" '$(PublishArchives)' == 'true' "/>
|
2018-03-13 08:19:15 -07:00
|
|
|
<ForPublishing Include="$(PackagesDirectory)/Microsoft.DotNet.Cli.Utils.*.nupkg"
|
|
|
|
Condition=" '$(OS)' == 'Windows_NT' And '$(Architecture)' == 'x64' " />
|
|
|
|
<ForPublishing Include="$(PackagesDirectory)/Microsoft.DotNet.MSBuildSdkResolver.*.nupkg"
|
|
|
|
Condition=" '$(OS)' == 'Windows_NT' And '$(Architecture)' == 'x64' " />
|
|
|
|
<ForPublishing Include="$(PackagesDirectory)/runtime.*.Microsoft.DotNet.SDK.*.symbols.nupkg" />
|
2017-10-17 09:08:35 -07:00
|
|
|
<ForPublishing Include="$(PackagesDirectory)/VS.Redist.Common.Net.Core.SDK.$(Architecture).*.nupkg"
|
2018-01-12 22:27:46 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' "/>
|
2017-10-17 09:08:35 -07:00
|
|
|
<ForPublishing Include="$(PackagesDirectory)/VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.*.nupkg"
|
2018-01-12 22:27:46 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' And '$(Architecture)' == 'x64' "/>
|
2018-03-13 08:19:15 -07:00
|
|
|
<ForPublishing Include="$(PackagesDirectory)/VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.swr"
|
2018-01-12 22:27:46 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' And '$(Architecture)' == 'x64' "/>
|
2016-07-08 16:02:03 -07:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<ForPublishing>
|
2018-01-17 20:08:12 +00:00
|
|
|
<RelativeBlobPath>$(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/'))</RelativeBlobPath>
|
2018-01-17 16:37:33 +00:00
|
|
|
<ManifestArtifactData>ShipInstaller=dotnetcli</ManifestArtifactData>
|
2016-07-08 16:02:03 -07:00
|
|
|
</ForPublishing>
|
|
|
|
</ItemGroup>
|
2016-07-22 19:01:32 -04:00
|
|
|
</Target>
|
2016-07-08 16:02:03 -07:00
|
|
|
|
2018-01-16 22:16:56 +00:00
|
|
|
<Target Name="PublishCliVersionBadge">
|
|
|
|
<Error Condition="'$(ArtifactCloudDropAccessToken)' == ''" Text="Missing property ArtifactCloudDropAccessToken." />
|
|
|
|
<Error Condition="'$(ArtifactCloudDropURL)' == ''" Text="Missing property ArtifactCloudDropURL." />
|
|
|
|
|
2016-07-08 16:02:03 -07:00
|
|
|
<ItemGroup>
|
|
|
|
<CliVersionBadgeToUpload Include="$(VersionBadge)" />
|
2017-07-03 14:34:04 -07:00
|
|
|
<CliVersionBadgeToUpload Include="$(CoherentBadge)"
|
2018-03-14 19:04:25 -07:00
|
|
|
Condition=" '$(Coherent)' == 'true' And !$(Architecture.StartsWith('arm')) " />
|
2016-07-08 16:02:03 -07:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<CliVersionBadgeToUpload>
|
2018-01-17 20:08:12 +00:00
|
|
|
<RelativeBlobPath>$(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/'))</RelativeBlobPath>
|
2018-01-17 16:37:33 +00:00
|
|
|
<ManifestArtifactData>ShipInstaller=dotnetcli</ManifestArtifactData>
|
2016-07-08 16:02:03 -07:00
|
|
|
</CliVersionBadgeToUpload>
|
|
|
|
</ItemGroup>
|
|
|
|
|
2018-01-17 02:36:50 +00:00
|
|
|
<Message Text="Publish badges to blob feed started: $(ArtifactCloudDropURL)" />
|
|
|
|
<PushToBlobFeed ExpectedFeedUrl="$(ArtifactCloudDropURL)"
|
|
|
|
AccountKey="$(ArtifactCloudDropAccessToken)"
|
2018-01-16 22:16:56 +00:00
|
|
|
ItemsToPush="@(CliVersionBadgeToUpload)"
|
2018-01-17 02:36:50 +00:00
|
|
|
ManifestBranch="$(BranchName)"
|
|
|
|
ManifestBuildId="$(FullNugetVersion)"
|
|
|
|
ManifestCommit="$(CommitHash)"
|
|
|
|
ManifestName="$(BuildName)"
|
2018-01-30 15:22:32 -08:00
|
|
|
ManifestBuildData="ProductVersion=$(FullNugetVersion)"
|
2018-01-17 02:36:50 +00:00
|
|
|
Overwrite="false"
|
|
|
|
PublishFlatContainer="true"
|
|
|
|
SkipCreateManifest="$(IsNotOrchestratedPublish)" />
|
2016-07-08 16:02:03 -07:00
|
|
|
</Target>
|
2018-01-17 02:36:50 +00:00
|
|
|
|
2017-09-29 13:58:08 -07:00
|
|
|
</Project>
|