File tree Expand file tree Collapse file tree 4 files changed +22
-11
lines changed
Installer/redist-installer Expand file tree Collapse file tree 4 files changed +22
-11
lines changed Original file line number Diff line number Diff line change 26
26
<ItemGroup >
27
27
<Artifact Update =" $(ArtifactsShippingPackagesDir)dotnet-sdk-pgo-*" Visibility =" External" />
28
28
</ItemGroup >
29
+
30
+ <Target Name =" GetNonStableProductVersion" >
31
+ <!-- Retrieve the non-stable product version. -->
32
+ <MSBuild Projects =" $(RepoRoot)src/Layout/redist/redist.csproj"
33
+ Targets =" ReturnProductVersion" >
34
+ <Output TaskParameter =" TargetOutputs" PropertyName =" NonStableProductVersion" />
35
+ </MSBuild >
36
+ </Target >
37
+
38
+ <Target Name =" AddRelativeBlobPathToBlobArtifacts"
39
+ DependsOnTargets =" GetNonStableProductVersion"
40
+ BeforeTargets =" PublishToAzureDevOpsArtifacts"
41
+ AfterTargets =" GenerateChecksumsFromArtifacts" >
42
+ <ItemGroup >
43
+ <Artifact Condition =" '%(Artifact.PublishFlatContainer)' == 'true' and '%(Artifact.RelativeBlobPath)' == ''"
44
+ RelativeBlobPath =" Sdk/$(NonStableProductVersion)/%(Filename)%(Extension)" />
45
+ </ItemGroup >
46
+ </Target >
47
+
29
48
</Project >
Original file line number Diff line number Diff line change 1
1
<Project >
2
2
3
3
<PropertyGroup >
4
- <RelativeBlobPathParent >Sdk/$([System.IO.File]::ReadAllText('$(ArtifactsTmpDir)FullNugetVersion.version').Trim())</RelativeBlobPathParent >
5
4
<PublishBinariesAndBadge Condition =" '$(PublishBinariesAndBadge)' == ''" >true</PublishBinariesAndBadge >
6
5
</PropertyGroup >
7
6
115
114
</ItemGroup >
116
115
117
116
<ItemGroup >
118
- <Artifact Include =" @(SdkArtifact)"
119
- RelativeBlobPath =" $(RelativeBlobPathParent)/%(Filename)%(Extension)" >
117
+ <Artifact Include =" @(SdkArtifact)" >
120
118
<ChecksumPath Condition =" $([System.String]::Copy('%(Filename)%(Extension)').EndsWith('.wixpack.zip')) != 'true'" >%(FullPath).sha512</ChecksumPath >
121
119
</Artifact >
122
120
</ItemGroup >
Original file line number Diff line number Diff line change 28
28
<ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk >dotnet-sdk$(PgoTerm)-$(Version)-$(ProductMonikerRid)</ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk >
29
29
</PropertyGroup >
30
30
31
- <!-- This is a hack to make the full nuget version available during the publishing step -->
32
- <Target Name =" GenerateFullNugetVersionFile"
33
- BeforeTargets =" Build" >
34
- <WriteLinesToFile File =" $(ArtifactsTmpDir)FullNugetVersion.version"
35
- Lines =" $(FullNugetVersion)"
36
- Overwrite =" true" />
37
- </Target >
38
-
39
31
<Import Project =" $(RepoRoot)src\Tasks\sdk-tasks\sdk-tasks.InTree.targets" />
40
32
41
33
<Import Project =" targets\RestoreLayout.targets" />
Original file line number Diff line number Diff line change 103
103
</ItemGroup >
104
104
</Target >
105
105
106
+ <Target Name =" ReturnProductVersion" Returns =" $(FullNugetVersion)" />
107
+
106
108
</Project >
You can’t perform that action at this time.
0 commit comments