File tree Expand file tree Collapse file tree 4 files changed +24
-13
lines changed
src/Installer/redist-installer Expand file tree Collapse file tree 4 files changed +24
-13
lines changed Original file line number Diff line number Diff line change 19
19
<ItemGroup Condition =" '$(EnableDefaultArtifacts)' == 'true'" >
20
20
<Artifact Include =" $(NuGetPackageRoot)\microsoft.fsharp.compiler\$(MicrosoftFSharpCompilerPackageVersion)\contentFiles\$(FSharpCorePath)\FSharp.Core.*.nupkg;
21
21
$(NuGetPackageRoot)\microsoft.fsharp.compiler\$(MicrosoftFSharpCompilerPackageVersion)\contentFiles\$(FSharpCorePath)\FSharp.Compiler.Service.*.nupkg"
22
- PublishFlatContainer = " false " />
22
+ Kind = " Package " />
23
23
</ItemGroup >
24
24
25
25
<!-- The PGO sdk should always have External visibility, even if someone changes the default artifact visibility -->
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/Installer/redist-installer/redist-installer.proj"
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.Kind)' == 'Blob' 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
85
84
<Artifact Include =" $(ArtifactsPackagesDir)**\VS.Tools.*.nupkg;
86
85
$(ArtifactsPackagesDir)**\VS.Redist.*.nupkg"
87
86
IsShipping =" $([System.String]::Copy('%(RecursiveDir)').StartsWith('Shipping'))"
88
- PublishFlatContainer = " false " />
87
+ Kind = " Package " />
89
88
</ItemGroup >
90
89
91
90
<!-- Only publish this file from win-x64 so that we don't end up with duplicates. -->
115
114
</ItemGroup >
116
115
117
116
<ItemGroup >
118
- <Artifact Include =" @(SdkArtifact)"
119
- RelativeBlobPath =" $(RelativeBlobPathParent)/%(Filename)%(Extension)" >
117
+ <Artifact Include =" @(SdkArtifact)" Kind =" Blob" >
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 20
20
<PackageReference Include =" Microsoft.DotNet.Build.Tasks.Installers" />
21
21
</ItemGroup >
22
22
23
+ <Target Name =" ReturnProductVersion" Returns =" $(FullNugetVersion)" />
24
+
23
25
</Project >
You can’t perform that action at this time.
0 commit comments