Skip to content

Commit 1a1ae4b

Browse files
author
dotnet-automerge-bot
authored
Merge pull request #7029 from dotnet/merges/master-to-release/dev16.3
Merge master to release/dev16.3
2 parents 27d65e4 + fa5ef91 commit 1a1ae4b

50 files changed

Lines changed: 2100 additions & 262 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

eng/Version.Details.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<ProductDependencies>
44
</ProductDependencies>
55
<ToolsetDependencies>
6-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19264.13">
6+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19320.1">
77
<Uri>https://github.com/dotnet/arcade</Uri>
8-
<Sha>670f6ee1a619a2a7c84cfdfe2a1c84fbe94e1c6b</Sha>
8+
<Sha>b21c24996a73aa62b7a1ee69f546b9d2eb084f29</Sha>
99
</Dependency>
1010
</ToolsetDependencies>
1111
</Dependencies>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,4 @@
179179
<StrawberryPerl64Version>5.22.2.1</StrawberryPerl64Version>
180180
<StreamJsonRpcVersion>2.0.187</StreamJsonRpcVersion>
181181
</PropertyGroup>
182-
</Project>
182+
</Project>

eng/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,11 @@ function TestUsingNUnit() {
176176
projectname="${projectname%.*}"
177177
testlogpath="$artifacts_dir/TestResults/$configuration/${projectname}_$targetframework.xml"
178178
args="test \"$testproject\" --no-restore --no-build -c $configuration -f $targetframework --test-adapter-path . --logger \"nunit;LogFilePath=$testlogpath\""
179-
"$DOTNET_INSTALL_DIR/dotnet" $args
179+
"$DOTNET_INSTALL_DIR/dotnet" $args || {
180+
local exit_code=$?
181+
echo "dotnet test failed (exit code '$exit_code')." >&2
182+
ExitWithExitCode $exit_code
183+
}
180184
}
181185

182186
function BuildSolution {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@{
2+
IncludeRules=@('PSAvoidUsingCmdletAliases',
3+
'PSAvoidUsingWMICmdlet',
4+
'PSAvoidUsingPositionalParameters',
5+
'PSAvoidUsingInvokeExpression',
6+
'PSUseDeclaredVarsMoreThanAssignments',
7+
'PSUseCmdletCorrectly',
8+
'PSStandardDSCFunctionsInResource',
9+
'PSUseIdenticalMandatoryParametersForDSC',
10+
'PSUseIdenticalParametersForDSC')
11+
}

eng/common/PublishToPackageFeed.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'WINDOWSDESKTOP'">https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/index.json</TargetStaticFeed>
5555
<TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'NUGETCLIENT'">https://dotnetfeed.blob.core.windows.net/nuget-nugetclient/index.json</TargetStaticFeed>
5656
<TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'ASPNETENTITYFRAMEWORK6'">https://dotnetfeed.blob.core.windows.net/aspnet-entityframework6/index.json</TargetStaticFeed>
57+
<TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'ASPNETBLAZOR'">https://dotnetfeed.blob.core.windows.net/aspnet-blazor/index.json</TargetStaticFeed>
5758
</PropertyGroup>
5859

5960
<Error

eng/common/build.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[CmdletBinding(PositionalBinding=$false)]
22
Param(
33
[string][Alias('c')]$configuration = "Debug",
4+
[string]$platform = $null,
45
[string] $projects,
56
[string][Alias('v')]$verbosity = "minimal",
67
[string] $msbuildEngine = $null,
@@ -29,6 +30,7 @@ Param(
2930
function Print-Usage() {
3031
Write-Host "Common settings:"
3132
Write-Host " -configuration <value> Build configuration: 'Debug' or 'Release' (short: -c)"
33+
Write-Host " -platform <value> Platform configuration: 'x86', 'x64' or any valid Platform value to pass to msbuild"
3234
Write-Host " -verbosity <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic] (short: -v)"
3335
Write-Host " -binaryLog Output binary log (short: -bl)"
3436
Write-Host " -help Print help and exit"
@@ -77,6 +79,7 @@ function Build {
7779
InitializeCustomToolset
7880

7981
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "Build.binlog") } else { "" }
82+
$platformArg = if ($platform) { "/p:Platform=$platform" } else { "" }
8083

8184
if ($projects) {
8285
# Re-assign properties to a new variable because PowerShell doesn't let us append properties directly for unclear reasons.
@@ -88,6 +91,7 @@ function Build {
8891

8992
MSBuild $toolsetBuildProj `
9093
$bl `
94+
$platformArg `
9195
/p:Configuration=$configuration `
9296
/p:RepoRoot=$RepoRoot `
9397
/p:Restore=$restore `
@@ -129,9 +133,8 @@ try {
129133
Build
130134
}
131135
catch {
132-
Write-Host $_
133-
Write-Host $_.Exception
134136
Write-Host $_.ScriptStackTrace
137+
Write-PipelineTelemetryError -Category "InitializeToolset" -Message $_
135138
ExitWithExitCode 1
136139
}
137140

eng/common/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ ci=false
6666
warn_as_error=true
6767
node_reuse=true
6868
binary_log=false
69+
pipelines_log=false
6970

7071
projects=''
7172
configuration='Debug'
@@ -92,6 +93,9 @@ while [[ $# > 0 ]]; do
9293
-binarylog|-bl)
9394
binary_log=true
9495
;;
96+
-pipelineslog|-pl)
97+
pipelines_log=true
98+
;;
9599
-restore|-r)
96100
restore=true
97101
;;
@@ -146,6 +150,7 @@ while [[ $# > 0 ]]; do
146150
done
147151

148152
if [[ "$ci" == true ]]; then
153+
pipelines_log=true
149154
binary_log=true
150155
node_reuse=false
151156
fi

eng/common/cross/armel/tizen-fetch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,15 @@ fetch_tizen_pkgs()
157157
Inform "Initialize arm base"
158158
fetch_tizen_pkgs_init standard base
159159
Inform "fetch common packages"
160-
fetch_tizen_pkgs armv7l gcc glibc glibc-devel libicu libicu-devel
160+
fetch_tizen_pkgs armv7l gcc glibc glibc-devel libicu libicu-devel libatomic
161161
fetch_tizen_pkgs noarch linux-glibc-devel
162162
Inform "fetch coreclr packages"
163-
fetch_tizen_pkgs armv7l lldb lldb-devel libgcc libstdc++ libstdc++-devel libunwind libunwind-devel tizen-release lttng-ust-devel lttng-ust userspace-rcu-devel userspace-rcu
163+
fetch_tizen_pkgs armv7l lldb lldb-devel libgcc libstdc++ libstdc++-devel libunwind libunwind-devel lttng-ust-devel lttng-ust userspace-rcu-devel userspace-rcu
164164
Inform "fetch corefx packages"
165165
fetch_tizen_pkgs armv7l libcom_err libcom_err-devel zlib zlib-devel libopenssl libopenssl-devel krb5 krb5-devel libcurl libcurl-devel
166166

167167
Inform "Initialize standard unified"
168168
fetch_tizen_pkgs_init standard unified
169169
Inform "fetch corefx packages"
170-
fetch_tizen_pkgs armv7l gssdp gssdp-devel
170+
fetch_tizen_pkgs armv7l gssdp gssdp-devel tizen-release
171171

eng/common/cross/build-rootfs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ if [ -z "$__RootfsDir" ] && [ ! -z "$ROOTFS_DIR" ]; then
181181
fi
182182

183183
if [ -z "$__RootfsDir" ]; then
184-
__RootfsDir="$__CrossDir/rootfs/$__BuildArch"
184+
__RootfsDir="$__CrossDir/../../../.tools/rootfs/$__BuildArch"
185185
fi
186186

187187
if [ -d "$__RootfsDir" ]; then

eng/common/darc-init.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ function InstallDarcCli ($darcVersion) {
1111

1212
$dotnetRoot = InitializeDotNetCli -install:$true
1313
$dotnet = "$dotnetRoot\dotnet.exe"
14-
$toolList = Invoke-Expression "& `"$dotnet`" tool list -g"
14+
$toolList = & "$dotnet" tool list -g
1515

1616
if ($toolList -like "*$darcCliPackageName*") {
17-
Invoke-Expression "& `"$dotnet`" tool uninstall $darcCliPackageName -g"
17+
& "$dotnet" tool uninstall $darcCliPackageName -g
1818
}
1919

2020
# If the user didn't explicitly specify the darc version,
2121
# query the Maestro API for the correct version of darc to install.
2222
if (-not $darcVersion) {
2323
$darcVersion = $(Invoke-WebRequest -Uri $versionEndpoint -UseBasicParsing).Content
2424
}
25-
25+
2626
$arcadeServicesSource = 'https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json'
2727

2828
Write-Host "Installing Darc CLI version $darcVersion..."
2929
Write-Host "You may need to restart your command window if this is the first dotnet tool you have installed."
30-
Invoke-Expression "& `"$dotnet`" tool install $darcCliPackageName --version $darcVersion --add-source '$arcadeServicesSource' -v $verbosity -g"
30+
& "$dotnet" tool install $darcCliPackageName --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity -g
3131
}
3232

3333
InstallDarcCli $darcVersion

0 commit comments

Comments
 (0)