зеркало из https://github.com/dotnet/aspnetcore.git
67 строки
4.0 KiB
XML
67 строки
4.0 KiB
XML
<Project>
|
|
<PropertyGroup>
|
|
<!-- The one use of ArtifactsDir in Publish.proj adds an additional slash, confusing itself. -->
|
|
<ArtifactsDir Condition=" HasTrailingSlash('$(ArtifactsDir)') ">$(ArtifactsDir.Substring(0, $([MSBuild]::Subtract($(ArtifactsDir.Length), 1))))</ArtifactsDir>
|
|
|
|
<PublishDependsOnTargets>$(PublishDependsOnTargets);_PublishInstallersAndChecksums</PublishDependsOnTargets>
|
|
|
|
<_UploadPathRoot>aspnetcore</_UploadPathRoot>
|
|
</PropertyGroup>
|
|
|
|
<!-- $(InstallersOutputPath), $(SymbolsOutputPath), and $(ChecksumExtensions) are not defined. Root Directory.Build.props is not imported. -->
|
|
<ItemGroup>
|
|
<!-- Include our "loose" PDBs when publishing symbols. -->
|
|
<FilesToPublishToSymbolServer Include="$(ArtifactsDir)\symbols\**\*.pdb" />
|
|
|
|
<!-- Prepare for _PublishInstallersAndChecksums target. -->
|
|
<_InstallersToPublish Remove="@(_InstallersToPublish)" />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\packages\**\*.jar" UploadPathSegment="jar" />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\packages\**\*.pom" UploadPathSegment="jar" />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\packages\**\*.tgz" UploadPathSegment="npm" />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\installers\**\*.deb" UploadPathSegment="Runtime" />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\installers\**\*.exe" UploadPathSegment="Runtime" />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\installers\**\*.msi" UploadPathSegment="Runtime" />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\installers\**\*.rpm" UploadPathSegment="Runtime" />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\installers\**\*.tar.gz" UploadPathSegment="Runtime" />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\installers\**\*.version" UploadPathSegment="Runtime"
|
|
Condition=" '$(PublishInstallerBaseVersion)' == 'true' " />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\installers\**\*.wixlib" UploadPathSegment="Runtime" />
|
|
<_InstallersToPublish Include="$(ArtifactsDir)\installers\**\*.zip" UploadPathSegment="Runtime" />
|
|
<_ChecksumsToPublish Include="$(ArtifactsDir)\**\*.sha512" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="_PublishInstallersAndChecksums">
|
|
<!--
|
|
This target is defined in eng/targets/Packaging.targets and included in every C# and F# project.
|
|
We use Microsoft.AspNetCore.DeveloperCertificates.XPlat because it is a nonshipping package, and we need a non-stable version string to use as our publish location.
|
|
If Microsoft.AspNetCore.DeveloperCertificates.XPlat ever becomes a shipping package, this logic will break, so be careful
|
|
-->
|
|
<MSBuild Projects="$(RepoRoot)src\Tools\FirstRunCertGenerator\src\Microsoft.AspNetCore.DeveloperCertificates.XPlat.csproj"
|
|
Targets="_GetPackageVersionInfo"
|
|
SkipNonexistentProjects="false">
|
|
<Output TaskParameter="TargetOutputs" ItemName="_ResolvedPackageVersionInfo" />
|
|
</MSBuild>
|
|
|
|
<PropertyGroup>
|
|
<_PackageVersion>@(_ResolvedPackageVersionInfo->'%(PackageVersion)')</_PackageVersion>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Do not push .nupkg files from Linux and macOS builds. They'll be packed up separately and signed on Windows. -->
|
|
<ItemsToPushToBlobFeed Remove="@(ItemsToPushToBlobFeed)" Condition="'$(OS)' != 'Windows_NT'" />
|
|
|
|
<ItemsToPushToBlobFeed Include="@(_ChecksumsToPublish)">
|
|
<PublishFlatContainer>true</PublishFlatContainer>
|
|
<RelativeBlobPath>$(_UploadPathRoot)/Runtime/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath>
|
|
</ItemsToPushToBlobFeed>
|
|
|
|
<ItemsToPushToBlobFeed Include="@(_InstallersToPublish)">
|
|
<IsShipping>true</IsShipping>
|
|
<ManifestArtifactData>ShipInstaller=dotnetcli</ManifestArtifactData>
|
|
<PublishFlatContainer>true</PublishFlatContainer>
|
|
<RelativeBlobPath>$(_UploadPathRoot)/%(_InstallersToPublish.UploadPathSegment)/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath>
|
|
</ItemsToPushToBlobFeed>
|
|
</ItemGroup>
|
|
</Target>
|
|
</Project>
|