2016-07-08 23:02:03 +00: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 19:25:06 +00:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/FinishBuild.targets" />
|
2016-08-09 13:28:23 +00:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/PublishContent.targets" />
|
2017-11-30 18:35:51 +00:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/PublishNupkgToBlobFeed.targets" />
|
2017-02-14 23:42:13 +00:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/Badge.targets" />
|
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/Checksum.targets" />
|
2017-07-06 16:21:59 +00:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/RuntimeCoherence.targets" />
|
2017-09-15 18:30:42 +00:00
|
|
|
|
2016-07-08 23:02:03 +00:00
|
|
|
<!-- PUBLISH_TO_AZURE_BLOB env variable set by CI -->
|
|
|
|
<Target Name="Publish"
|
2017-11-08 17:26:32 +00:00
|
|
|
Condition=" '$(PUBLISH_TO_AZURE_BLOB)' == 'true' "
|
2016-07-15 20:44:11 +00:00
|
|
|
DependsOnTargets="Init;
|
2017-09-15 18:30:42 +00:00
|
|
|
SetBadgeProps;
|
2016-07-08 23:02:03 +00:00
|
|
|
Package;
|
2017-07-06 18:11:07 +00:00
|
|
|
EvaluateRuntimeCoherence;
|
2016-07-08 23:02:03 +00:00
|
|
|
PublishArtifacts;
|
2016-07-15 20:44:11 +00:00
|
|
|
FinishBuild" />
|
|
|
|
|
2017-09-15 18:30:42 +00:00
|
|
|
<Target Name="PublishWithoutPackage"
|
2017-11-08 17:26:32 +00:00
|
|
|
Condition=" '$(PUBLISH_TO_AZURE_BLOB)' == 'true' "
|
2016-07-15 20:44:11 +00:00
|
|
|
DependsOnTargets="Init;
|
2017-09-15 00:07:19 +00:00
|
|
|
SetBadgeProps;
|
2017-07-06 18:11:07 +00:00
|
|
|
EvaluateRuntimeCoherence;
|
2016-07-08 23:02:03 +00:00
|
|
|
PublishArtifacts;
|
2016-07-15 20:44:11 +00:00
|
|
|
FinishBuild" />
|
|
|
|
|
|
|
|
<!-- UploadToAzure target comes from Build Tools -->
|
2016-07-22 23:01:32 +00:00
|
|
|
<Target Name="PublishArtifacts"
|
2017-06-30 19:17:20 +00:00
|
|
|
DependsOnTargets="GenerateVersionBadge;
|
|
|
|
GenerateCoherentBadge;
|
|
|
|
GatherItemsForPattern;
|
|
|
|
GenerateChecksums;
|
|
|
|
UploadArtifactsToAzure;
|
|
|
|
UploadChecksumsToAzure;
|
2017-11-30 18:35:51 +00:00
|
|
|
PublishNupkgToBlobFeed;
|
2017-07-03 21:34:04 +00:00
|
|
|
PublishCliVersionBadge" />
|
2017-08-30 23:16:08 +00:00
|
|
|
|
2018-01-16 22:16:56 +00:00
|
|
|
<Target Name="GatherItemsForPattern">
|
2016-07-08 23:02:03 +00:00
|
|
|
<ItemGroup>
|
2017-06-15 22:36:41 +00:00
|
|
|
<ForPublishing Include="@(GeneratedInstallers)"
|
2017-09-29 20:58:08 +00:00
|
|
|
Condition=" '$(PublishNativeInstallers)' == 'true' "/>
|
2017-06-15 22:36:41 +00:00
|
|
|
<ForPublishing Include="%(GenerateArchivesInputsOutputs.Outputs)"
|
2017-09-29 20:58:08 +00:00
|
|
|
Condition=" '$(PublishArchives)' == 'true' "/>
|
2018-03-13 15:19:15 +00: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 16:08:35 +00: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 16:08:35 +00: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 15:19:15 +00:00
|
|
|
<ForPublishing Include="$(PackagesDirectory)/VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.swr"
|
2018-06-06 23:08:38 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' And '$(Architecture)' == 'x64' "/>
|
|
|
|
<ForPublishing Include="$(PackagesDirectory)/nuGetPackagesArchive.lzma"
|
2018-01-12 22:27:46 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' And '$(Architecture)' == 'x64' "/>
|
2016-07-08 23:02:03 +00: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 23:02:03 +00:00
|
|
|
</ForPublishing>
|
|
|
|
</ItemGroup>
|
2016-07-22 23:01:32 +00:00
|
|
|
</Target>
|
2016-07-08 23:02:03 +00: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 23:02:03 +00:00
|
|
|
<ItemGroup>
|
|
|
|
<CliVersionBadgeToUpload Include="$(VersionBadge)" />
|
2017-07-03 21:34:04 +00:00
|
|
|
<CliVersionBadgeToUpload Include="$(CoherentBadge)"
|
2018-03-15 02:04:25 +00:00
|
|
|
Condition=" '$(Coherent)' == 'true' And !$(Architecture.StartsWith('arm')) " />
|
2016-07-08 23:02:03 +00: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 23:02:03 +00: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 23:22:32 +00:00
|
|
|
ManifestBuildData="ProductVersion=$(FullNugetVersion)"
|
2018-01-17 02:36:50 +00:00
|
|
|
Overwrite="false"
|
|
|
|
PublishFlatContainer="true"
|
|
|
|
SkipCreateManifest="$(IsNotOrchestratedPublish)" />
|
2016-07-08 23:02:03 +00:00
|
|
|
</Target>
|
2018-01-17 02:36:50 +00:00
|
|
|
|
2017-09-29 20:58:08 +00:00
|
|
|
</Project>
|