|
44 | 44 | <!-- Remove wixpacks if not doing post-build signing, since they are not needed -->
|
45 | 45 | <_InstallersToPublish Remove="$(ArtifactsDir)installers\**\*.wixpack.zip" Condition="'$(PostBuildSign)' != 'true'" />
|
46 | 46 |
|
47 |
| - <Artifact Include="@(_InstallersToPublish)" |
48 |
| - PublishFlatContainer="true"> |
| 47 | + <Artifact Include="@(_InstallersToPublish)"> |
49 | 48 | <!-- Working around msbuild not being able to negate the result of Contains() outside of targets -->
|
50 | 49 | <IsShipping Condition="$([System.String]::Copy('%(Filename)').ToLowerInvariant().Contains('internal')) == 'True'">false</IsShipping>
|
51 | 50 | <IsShipping Condition="$([System.String]::Copy('%(Filename)').ToLowerInvariant().Contains('internal')) != 'True'">true</IsShipping>
|
52 | 51 | </Artifact>
|
53 | 52 | </ItemGroup>
|
54 | 53 |
|
55 |
| - <Target Name="GetProductVersion"> |
| 54 | + <Target Name="GetNonStableProductVersion"> |
56 | 55 | <!--
|
57 | 56 | This target is defined in eng/targets/Packaging.targets and Npm.Common.targets and included in every C#, F#,
|
58 | 57 | and npm project. We use Microsoft.AspNetCore.InternalTesting.csproj because it is non-shipping (we need a non-stable
|
|
65 | 64 | </MSBuild>
|
66 | 65 |
|
67 | 66 | <PropertyGroup>
|
68 |
| - <ProductVersion>%(_ResolvedPackageVersionInfo.PackageVersion)</ProductVersion> |
| 67 | + <NonStableProductVersion>%(_ResolvedPackageVersionInfo.PackageVersion)</NonStableProductVersion> |
69 | 68 | </PropertyGroup>
|
70 | 69 | </Target>
|
71 | 70 |
|
72 | 71 | <Target Name="GenerateProductVersionFiles"
|
73 | 72 | BeforeTargets="PublishToAzureDevOpsArtifacts"
|
74 |
| - DependsOnTargets="GetProductVersion" |
| 73 | + DependsOnTargets="GetNonStableProductVersion" |
75 | 74 | Condition="'$(PublishInstallerBaseVersion)' == 'true'">
|
| 75 | + <MSBuild Projects="$(RepoRoot)src\Testing\src\Microsoft.AspNetCore.InternalTesting.csproj" |
| 76 | + Properties="ExcludeFromBuild=false;IsShipping=true" |
| 77 | + Targets="_GetPackageVersionInfo"> |
| 78 | + <Output TaskParameter="TargetOutputs" ItemName="_ResolvedPackageVersionInfo" /> |
| 79 | + </MSBuild> |
| 80 | + |
| 81 | + <PropertyGroup> |
| 82 | + <ProductVersion>%(_ResolvedPackageVersionInfo.PackageVersion)</ProductVersion> |
| 83 | + </PropertyGroup> |
| 84 | + |
76 | 85 | <ItemGroup>
|
77 | 86 | <ProductVersionFile Include="$(ArtifactsShippingPackagesDir)productVersion.txt" />
|
78 | 87 | <ProductVersionFile Include="$(ArtifactsShippingPackagesDir)aspnetcore-productVersion.txt" />
|
|
86 | 95 |
|
87 | 96 | <ItemGroup>
|
88 | 97 | <Artifact Include="@(ProductVersionFile)"
|
89 |
| - PublishFlatContainer="true" |
90 |
| - RelativeBlobPath="aspnetcore/Runtime/$(ProductVersion)/%(Filename)%(Extension)" /> |
| 98 | + RelativeBlobPath="aspnetcore/Runtime/$(NonStableProductVersion)/%(Filename)%(Extension)" /> |
91 | 99 | </ItemGroup>
|
92 | 100 | </Target>
|
93 | 101 |
|
94 | 102 | <Target Name="AddRelativeBlobPathToInstallerArtifacts"
|
95 | 103 | BeforeTargets="PublishToAzureDevOpsArtifacts"
|
96 | 104 | AfterTargets="GenerateChecksumsFromArtifacts"
|
97 |
| - DependsOnTargets="GetProductVersion"> |
| 105 | + DependsOnTargets="GetNonStableProductVersion"> |
98 | 106 | <ItemGroup>
|
99 | 107 | <Artifact Condition="'%(Artifact.PublishFlatContainer)' == 'true' and '%(Artifact.UploadPathSegment)' != ''"
|
100 |
| - RelativeBlobPath="aspnetcore/%(Artifact.UploadPathSegment)/$(ProductVersion)/%(Filename)%(Extension)" /> |
| 108 | + RelativeBlobPath="aspnetcore/%(Artifact.UploadPathSegment)/$(NonStableProductVersion)/%(Filename)%(Extension)" /> |
101 | 109 | </ItemGroup>
|
102 | 110 | </Target>
|
103 | 111 |
|
|
0 commit comments