Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 47da513

Browse files
authored
Infrastructure updates: CLI:master -> release/2.1.3xx (#8541)
* Repairing the first pass call to 'dotnet msbuild'; CLI:master (#8488) * '$ExtraParametersNoTargets', which is used on the first pass call to 'dotnet msbuild', currently is of type 'string' not 'List'1' as is '$ExtraParameters'. This results in the non-honoring of any parameter other than parameter one. Solution: Make a copy of '$ExtraParameters' to '$ExtraParametersNoTargets' of type 'List'1' and remove the targets from the list. * Swallow the boolean output from '$ExtraParametersNoTargets.Remove' * Specifically capture "/t:" or "/target:" only. * The "${arg,,}" syntax works well on dev and Jenkins OSX machines but does not work correctly on VSO build machines [likely a lower version of bash on VSO machines]. Therefore, using 'awk' to transforming to lower case. (#8497) * Orchestrated final publish; CLI:master (#8504) * Orchestrated final publish: https://github.com/dotnet/core-eng/issues/2407 * Changes per code review... * The orchestrated "PackageVersion" type variables should not be used in any of the 'proj' files of the built build tools under: "build_projects"
1 parent e260e79 commit 47da513

File tree

8 files changed

+16
-10
lines changed

8 files changed

+16
-10
lines changed

build/AzureInfo.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<PropertyGroup>
3+
<Product>Sdk</Product>
34
<IsNotOrchestratedPublish>true</IsNotOrchestratedPublish>
45
<IsNotOrchestratedPublish Condition="'$(PB_PublishBlobFeedUrl)' != ''">false</IsNotOrchestratedPublish>
5-
<BlobStoragePartialRelativePath>Sdk</BlobStoragePartialRelativePath>
6-
<BlobStoragePartialRelativePath Condition="'$(IsNotOrchestratedPublish)' == 'false'">assets/$(BlobStoragePartialRelativePath)</BlobStoragePartialRelativePath>
6+
<BlobStoragePartialRelativePath>$(Product)</BlobStoragePartialRelativePath>
7+
<BlobStoragePartialRelativePath Condition="'$(IsNotOrchestratedPublish)' == 'false'">assets/$(Product)</BlobStoragePartialRelativePath>
78

89
<!-- Values related to the download of assets from blob storage -->
910
<DefaultCoreSetupBlobRootUrl>https://dotnetcli.azureedge.net/dotnet/</DefaultCoreSetupBlobRootUrl>

build/DependencyVersions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<PropertyGroup>
6969
<VersionToolsVersion>2.1.0-prerelease-02411-04</VersionToolsVersion>
7070
<DotnetDebToolVersion>2.0.0-preview2-25331-01</DotnetDebToolVersion>
71-
<BuildTasksFeedToolVersion>2.1.0-prerelease-02411-04</BuildTasksFeedToolVersion>
71+
<BuildTasksFeedToolVersion>2.1.0-prerelease-02430-04</BuildTasksFeedToolVersion>
7272
</PropertyGroup>
7373

7474
</Project>

build/Publish.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
ManifestBuildId="$(FullNugetVersion)"
8585
ManifestCommit="$(CommitHash)"
8686
ManifestName="$(BuildName)"
87+
ManifestBuildData="ProductVersion=$(FullNugetVersion)"
8788
Overwrite="false"
8889
PublishFlatContainer="true"
8990
SkipCreateManifest="$(IsNotOrchestratedPublish)" />

build/publish/PublishContent.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
ManifestBuildId="$(FullNugetVersion)"
3434
ManifestCommit="$(CommitHash)"
3535
ManifestName="$(BuildName)"
36+
ManifestBuildData="ProductVersion=$(FullNugetVersion)"
3637
Overwrite="$(OverwriteOnPublish)"
3738
PublishFlatContainer="true"
3839
SkipCreateManifest="$(IsNotOrchestratedPublish)" />
@@ -51,6 +52,7 @@
5152
ManifestBuildId="$(FullNugetVersion)"
5253
ManifestCommit="$(CommitHash)"
5354
ManifestName="$(BuildName)"
55+
ManifestBuildData="ProductVersion=$(FullNugetVersion)"
5456
Overwrite="$(OverwriteOnPublish)"
5557
PublishFlatContainer="true"
5658
SkipCreateManifest="$(IsNotOrchestratedPublish)" />

build/publish/PublishNupkgToBlobFeed.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
ManifestBuildId="$(FullNugetVersion)"
1818
ManifestCommit="$(CommitHash)"
1919
ManifestName="$(BuildName)"
20+
ManifestBuildData="ProductVersion=$(FullNugetVersion)"
2021
Overwrite="true"
2122
PublishFlatContainer="false"
2223
SkipCreateManifest="$(IsNotOrchestratedPublish)" />

build_projects/dotnet-cli-build/dotnet-cli-build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.NETCore.App" Version="$(MicrosoftNETCoreAppPackageVersion)" />
17+
<PackageReference Include="Microsoft.NETCore.App" Version="2.1.0-preview1-26116-04" />
1818
<PackageReference Include="Microsoft.Build" Version="15.4.8" />
1919
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.4.8" />
2020
<PackageReference Include="Microsoft.CSharp" Version="4.0.1" />

run-build.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ if($Help)
2929

3030
# The first 'pass' call to "dotnet msbuild build.proj" has a hard-coded "WriteDynamicPropsToStaticPropsFiles" target
3131
# therefore, this call should not have other targets defined. Remove all targets passed in as 'extra parameters'.
32-
$ExtraParametersNoTargets = ""
3332
if ($ExtraParameters)
3433
{
35-
foreach ($param in $ExtraParameters.split())
34+
$ExtraParametersNoTargets = $ExtraParameters.GetRange(0,$ExtraParameters.Count)
35+
foreach ($param in $ExtraParameters)
3636
{
37-
if((-not $param.StartsWith("/t")) -and (-not $param.StartsWith("/T")))
37+
if(($param.StartsWith("/t:", [StringComparison]::OrdinalIgnoreCase)) -or ($param.StartsWith("/target:", [StringComparison]::OrdinalIgnoreCase)))
3838
{
39-
$ExtraParametersNoTargets += "{0} " -f $param
39+
$ExtraParametersNoTargets.Remove("$param") | Out-Null
4040
}
4141
}
4242
}

run-build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ done
130130
argsnotargets=( )
131131
for arg in ${args[@]}
132132
do
133-
if [[ $arg != '/t'* ]] && [[ $arg != '/T'* ]]; then
134-
argsnotargets+=($arg)
133+
arglower="$(echo $arg | awk '{print tolower($0)}')"
134+
if [[ $arglower != '/t:'* ]] && [[ $arglower != '/target:'* ]]; then
135+
argsnotargets+=($arg)
135136
fi
136137
done
137138

0 commit comments

Comments
 (0)