|
1 | 1 | <Project>
|
2 |
| - <PropertyGroup> |
3 |
| - <PublishingVersion>3</PublishingVersion> |
4 |
| - <ProducesDotNetReleaseShippingAssets>true</ProducesDotNetReleaseShippingAssets> |
5 |
| - </PropertyGroup> |
6 | 2 |
|
7 | 3 | <PropertyGroup>
|
8 |
| - <PublishDependsOnTargets>$(PublishDependsOnTargets);_PublishInstallersAndChecksumsAndProductVersion</PublishDependsOnTargets> |
9 |
| - |
| 4 | + <ProducesDotNetReleaseShippingAssets>true</ProducesDotNetReleaseShippingAssets> |
10 | 5 | <_UploadPathRoot>aspnetcore</_UploadPathRoot>
|
11 | 6 | <ProductVersionFileName>productVersion.txt</ProductVersionFileName>
|
12 | 7 | <RepoProductVersionFileName>$(_UploadPathRoot)-$(ProductVersionFileName)</RepoProductVersionFileName>
|
13 | 8 | <ProductVersionFileLocation>$(ArtifactsShippingPackagesDir)$(ProductVersionFileName)</ProductVersionFileLocation>
|
14 | 9 | <RepoProductVersionFileLocation>$(ArtifactsShippingPackagesDir)$(RepoProductVersionFileName)</RepoProductVersionFileLocation>
|
| 10 | + |
| 11 | + <!-- Do not push .nupkg files from Linux and macOS builds. They'll be packed up separately and signed on Windows. |
| 12 | + Do not remove if post build sign is true, as we avoid the xplat codesign jobs, and need to have |
| 13 | + the nupkgs pushed. Do not do this if building from source, since we want the source build intermediate package |
| 14 | + to be published. Use DotNetBuildRepo is only set in the internal source build, |
| 15 | + and Build.proj is invoked from the wrapper build. --> |
| 16 | + <EnableDefaultPublishItems Condition="'$(OS)' != 'Windows_NT' and |
| 17 | + '$(PostBuildSign)' != 'true' and |
| 18 | + '$(DotNetBuildRepo)' != 'true'">false</EnableDefaultPublishItems> |
| 19 | + |
| 20 | + <PublishInstallerBaseVersion Condition="'$(PublishInstallerBaseVersion)' == '' and '$(EnableDefaultPublishItems)' == 'true'">true</PublishInstallerBaseVersion> |
| 21 | + <!-- This avoids creating VS.*.symbols.nupkg packages that are identical to the original package. --> |
| 22 | + <AutoGenerateSymbolPackages>false</AutoGenerateSymbolPackages> |
15 | 23 | </PropertyGroup>
|
16 | 24 |
|
17 | 25 | <!-- $(InstallersOutputPath), $(SymbolsOutputPath), and $(ChecksumExtensions) are not defined. Root Directory.Build.props is not imported. -->
|
|
31 | 39 | <_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.msi" UploadPathSegment="Runtime" />
|
32 | 40 | <_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.rpm" UploadPathSegment="Runtime" />
|
33 | 41 | <_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.tar.gz" UploadPathSegment="Runtime" />
|
34 |
| - <_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.version" UploadPathSegment="Runtime" |
35 |
| - Condition=" '$(PublishInstallerBaseVersion)' == 'true' or '$(DotNetBuildRepo)' == 'true'" /> |
| 42 | + <_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.version" UploadPathSegment="Runtime" Condition="'$(PublishInstallerBaseVersion)' == 'true'" /> |
36 | 43 | <_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.wixlib" UploadPathSegment="Runtime" />
|
37 | 44 | <_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.zip" UploadPathSegment="Runtime" />
|
38 | 45 | <!-- Remove wixpacks if not doing post-build signing, since they are not needed -->
|
|
42 | 49 |
|
43 | 50 | <Target
|
44 | 51 | Name="_PublishInstallersAndChecksumsAndProductVersion"
|
45 |
| - DependsOnTargets="_WriteProductVersionFile"> |
| 52 | + DependsOnTargets="_WriteProductVersionFile" |
| 53 | + BeforeTargets="PublishToAzureDevOpsArtifacts"> |
46 | 54 | <!--
|
47 | 55 | This target is defined in eng/targets/Packaging.targets and Npm.Common.targets and included in every C#, F#,
|
48 | 56 | and npm project. We use Microsoft.AspNetCore.InternalTesting.csproj because it is non-shipping (we need a non-stable
|
|
59 | 67 | </PropertyGroup>
|
60 | 68 |
|
61 | 69 | <ItemGroup>
|
62 |
| - <!-- Do not push .nupkg files from Linux and macOS builds. They'll be packed up separately and signed on Windows. |
63 |
| - Do not remove if post build sign is true, as we avoid the xplat codesign jobs, and need to have |
64 |
| - the nupkgs pushed. Do not do this if building from source, since we want the source build intermediate package |
65 |
| - to be published. Use DotNetBuildRepo is only set in the internal source build, |
66 |
| - and Build.proj is invoked from the wrapper build. --> |
67 |
| - <ItemsToPushToBlobFeed Remove="@(ItemsToPushToBlobFeed)" Condition="'$(OS)' != 'Windows_NT' and '$(PostBuildSign)' != 'true' and '$(DotNetBuildRepo)' != 'true'" /> |
68 |
| - |
69 |
| - <ItemsToPushToBlobFeed Include="@(_ChecksumsToPublish)"> |
70 |
| - <ManifestArtifactData>NonShipping=true</ManifestArtifactData> |
71 |
| - <PublishFlatContainer>true</PublishFlatContainer> |
72 |
| - <RelativeBlobPath>$(_UploadPathRoot)/Runtime/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath> |
73 |
| - </ItemsToPushToBlobFeed> |
| 70 | + <ItemsToPushToBlobFeed Include="@(_ChecksumsToPublish)" |
| 71 | + IsShipping="false" |
| 72 | + PublishFlatContainer="true" |
| 73 | + RelativeBlobPath="$(_UploadPathRoot)/Runtime/$(_PackageVersion)/%(Filename)%(Extension)" /> |
74 | 74 |
|
75 |
| - <ItemsToPushToBlobFeed Include="@(_InstallersToPublish)" Condition="! $([System.String]::Copy('%(Filename)').ToLower().Contains('internal'))"> |
76 |
| - <ManifestArtifactData>NonShipping=false</ManifestArtifactData> |
77 |
| - <PublishFlatContainer>true</PublishFlatContainer> |
78 |
| - <RelativeBlobPath>$(_UploadPathRoot)/%(_InstallersToPublish.UploadPathSegment)/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath> |
79 |
| - </ItemsToPushToBlobFeed> |
| 75 | + <ItemsToPushToBlobFeed Include="@(_InstallersToPublish)" |
| 76 | + IsShipping="!$([System.String]::Copy('%(Filename)').ToLower().Contains('internal'))" |
| 77 | + PublishFlatContainer="true" |
| 78 | + RelativeBlobPath="$(_UploadPathRoot)/%(_InstallersToPublish.UploadPathSegment)/$(_PackageVersion)/%(Filename)%(Extension)" /> |
80 | 79 |
|
81 |
| - <ItemsToPushToBlobFeed Include="@(_InstallersToPublish)" Condition="$([System.String]::Copy('%(Filename)').ToLower().Contains('internal'))"> |
82 |
| - <ManifestArtifactData>NonShipping=true</ManifestArtifactData> |
83 |
| - <PublishFlatContainer>true</PublishFlatContainer> |
84 |
| - <RelativeBlobPath>$(_UploadPathRoot)/%(_InstallersToPublish.UploadPathSegment)/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath> |
85 |
| - </ItemsToPushToBlobFeed> |
| 80 | + <ItemsToPushToBlobFeed Include="$(ProductVersionFileLocation)" |
| 81 | + Condition="'$(PublishInstallerBaseVersion)' == 'true'" |
| 82 | + IsShipping="false" |
| 83 | + PublishFlatContainer="true" |
| 84 | + RelativeBlobPath="$(_UploadPathRoot)/Runtime/$(_PackageVersion)/$(ProductVersionFileName)" /> |
86 | 85 |
|
87 |
| - <ItemsToPushToBlobFeed Include="$(ProductVersionFileLocation)" Condition=" '$(PublishInstallerBaseVersion)' == 'true'"> |
88 |
| - <ManifestArtifactData>NonShipping=true</ManifestArtifactData> |
89 |
| - <PublishFlatContainer>true</PublishFlatContainer> |
90 |
| - <RelativeBlobPath>$(_UploadPathRoot)/Runtime/$(_PackageVersion)/$(ProductVersionFileName)</RelativeBlobPath> |
91 |
| - </ItemsToPushToBlobFeed> |
92 |
| - |
93 |
| - <ItemsToPushToBlobFeed Include="$(RepoProductVersionFileLocation)" Condition=" '$(PublishInstallerBaseVersion)' == 'true'"> |
94 |
| - <ManifestArtifactData>NonShipping=true</ManifestArtifactData> |
95 |
| - <PublishFlatContainer>true</PublishFlatContainer> |
96 |
| - <RelativeBlobPath>$(_UploadPathRoot)/Runtime/$(_PackageVersion)/$(RepoProductVersionFileName)</RelativeBlobPath> |
97 |
| - </ItemsToPushToBlobFeed> |
| 86 | + <ItemsToPushToBlobFeed Include="$(RepoProductVersionFileLocation)" |
| 87 | + Condition="'$(PublishInstallerBaseVersion)' == 'true'" |
| 88 | + IsShipping="false" |
| 89 | + PublishFlatContainer="true" |
| 90 | + RelativeBlobPath="$(_UploadPathRoot)/Runtime/$(_PackageVersion)/$(RepoProductVersionFileName)" /> |
98 | 91 | </ItemGroup>
|
99 | 92 | </Target>
|
100 | 93 |
|
101 | 94 | <Target
|
102 | 95 | Name="_WriteProductVersionFile"
|
103 |
| - Condition=" '$(PublishInstallerBaseVersion)' == 'true'"> |
| 96 | + Condition="'$(PublishInstallerBaseVersion)' == 'true'"> |
104 | 97 | <!--
|
105 | 98 | This target is defined in eng/targets/Packaging.targets and Npm.Common.targets and included in every C#, F#,
|
106 | 99 | and npm project. We use Microsoft.AspNetCore.InternalTesting.csproj because it is non-shipping (we need a non-stable
|
|
128 | 121 | Overwrite="true"
|
129 | 122 | Encoding="ASCII" />
|
130 | 123 | </Target>
|
| 124 | + |
131 | 125 | </Project>
|
0 commit comments