Skip to content

Commit 203d11f

Browse files
authored
Merge pull request #8762 from dotnet/darc-main-0b91fd41-3be2-4e1e-81e0-c48d3d238f51
[main] Update dependencies from dotnet/arcade
2 parents de8d791 + 3908bc0 commit 203d11f

File tree

14 files changed

+51
-35
lines changed

14 files changed

+51
-35
lines changed

azure-pipelines-compiler.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ stages:
191191
- job: Linux
192192
pool:
193193
${{ if or(ne(variables['System.TeamProject'], 'internal'), in(variables['Build.Reason'], 'Manual', 'PullRequest', 'Schedule')) }}:
194-
vmImage: ubuntu-latest
194+
name: NetCore-Public
195+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
195196
${{ if and(eq(variables['System.TeamProject'], 'internal'), notin(variables['Build.Reason'], 'Manual', 'PullRequest', 'Schedule')) }}:
196197
name: NetCore1ESPool-Internal
197198
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64

azure-pipelines.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,12 @@ stages:
358358

359359
- job: Linux
360360
container:
361-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7
361+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8
362362
options: --init # This ensures all the stray defunct processes are reaped.
363363
pool:
364364
${{ if eq(variables['System.TeamProject'], 'public') }}:
365-
vmImage: ubuntu-latest
365+
name: NetCore-Public
366+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
366367
${{ if eq(variables['System.TeamProject'], 'internal') }}:
367368
name: $(DncEngInternalBuildPool)
368369
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64

build.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off
22
setlocal
33

4-
set _args=-restore -build /p:TreatWarningsAsErrors=true %*
4+
set _args=-restore -build /p:_SelfContainedWasSpecified=true %*
55
if "%~1"=="-?" set _args=-help
66

77
powershell -ExecutionPolicy ByPass -NoProfile -Command "& '%~dp0eng\common\build.ps1'" %_args%

eng/AfterSigning.targets

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
<Delete Files="%(LanguageServiceBinary.ZipFile)" />
4040

4141
<!-- Build a .zip file from each platform's directory and write it to 'artifacts' -->
42-
<Exec Command="$(_DotNetPath) pwsh -NonInteractive -command &quot;&amp;{ Write-Host &quot;Writing %(LanguageServiceBinary.ZipFile)...&quot; ; Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::CreateFromDirectory('%(LanguageServiceBinary.SourceDir)', '%(LanguageServiceBinary.ZipFile)') }&quot;"
43-
WorkingDirectory="$(MSBuildThisFileDirectory)..\" />
42+
<ZipDirectory SourceDirectory="%(LanguageServiceBinary.SourceDir)" DestinationFile="%(LanguageServiceBinary.ZipFile)" />
4443
</Target>
4544
</Project>

eng/Version.Details.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,19 @@
9494
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-runtime</Uri>
9595
<Sha>3a25a7f1cc446b60678ed25c9d829420d6321eba</Sha>
9696
</Dependency>
97-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23269.2">
97+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23320.3">
9898
<Uri>https://github.com/dotnet/arcade</Uri>
99-
<Sha>792c346a52b2388152c2fad6f626b88ed8736d6f</Sha>
99+
<Sha>06d73ccc1f421af06c2794741a9913f474f66b3d</Sha>
100100
<SourceBuild RepoName="arcade" ManagedOnly="true" />
101101
</Dependency>
102-
<Dependency Name="Microsoft.SourceLink.GitHub" Version="8.0.0-beta.23252.2" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
102+
<Dependency Name="Microsoft.SourceLink.GitHub" Version="8.0.0-beta.23314.2" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
103103
<Uri>https://github.com/dotnet/sourcelink</Uri>
104-
<Sha>54eb3b811c57f5e94617d31a102fc9cb664ccdd5</Sha>
104+
<Sha>4d2c8bf58e8cb7900ec2d9077c155572e2d3cd88</Sha>
105105
<SourceBuild RepoName="sourcelink" ManagedOnly="true" />
106106
</Dependency>
107-
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.23266.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
107+
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.23312.2" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
108108
<Uri>https://github.com/dotnet/xliff-tasks</Uri>
109-
<Sha>9e7fbcab4e5275f63c0cd37553ba426de9194309</Sha>
109+
<Sha>4234ffac87e305da80597cb46dc0d4a87fc4f7c2</Sha>
110110
<SourceBuild RepoName="xliff-tasks" ManagedOnly="true" />
111111
</Dependency>
112112
<!-- Necessary for source-build. This allows Microsoft.Extensions.ObjectPool and System.Collections.Immutable packages

eng/Versions.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
<MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>4.7.0-3.23314.5</MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>
7272
<MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>4.7.0-3.23314.5</MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>
7373
<MicrosoftVisualStudioLanguageServicesPackageVersion>4.7.0-3.23314.5</MicrosoftVisualStudioLanguageServicesPackageVersion>
74-
<MicrosoftSourceLinkGitHubPackageVersion>8.0.0-beta.23252.2</MicrosoftSourceLinkGitHubPackageVersion>
75-
<MicrosoftDotNetXliffTasksPackageVersion>1.0.0-beta.23266.1</MicrosoftDotNetXliffTasksPackageVersion>
74+
<MicrosoftSourceLinkGitHubPackageVersion>8.0.0-beta.23314.2</MicrosoftSourceLinkGitHubPackageVersion>
75+
<MicrosoftDotNetXliffTasksPackageVersion>1.0.0-beta.23312.2</MicrosoftDotNetXliffTasksPackageVersion>
7676
<!--
7777
Exception - Microsoft.Extensions.ObjectPool and System.Collections.Immutable packages are not updated by automation,
7878
but are present in Version.Details.xml for source-build PVP flow. See the comment in Version.Details.xml for more information.

eng/common/dotnet-install.sh

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ cpuname=$(uname -m)
5454
case $cpuname in
5555
arm64|aarch64)
5656
buildarch=arm64
57+
if [ "$(getconf LONG_BIT)" -lt 64 ]; then
58+
# This is 32-bit OS running on 64-bit CPU (for example Raspberry Pi OS)
59+
buildarch=arm
60+
fi
5761
;;
5862
loongarch64)
5963
buildarch=loongarch64

eng/common/sdk-task.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ try {
6464
$GlobalJson.tools | Add-Member -Name "vs" -Value (ConvertFrom-Json "{ `"version`": `"16.5`" }") -MemberType NoteProperty
6565
}
6666
if( -not ($GlobalJson.tools.PSObject.Properties.Name -match "xcopy-msbuild" )) {
67-
$GlobalJson.tools | Add-Member -Name "xcopy-msbuild" -Value "17.4.1" -MemberType NoteProperty
67+
$GlobalJson.tools | Add-Member -Name "xcopy-msbuild" -Value "17.6.0-2" -MemberType NoteProperty
6868
}
6969
if ($GlobalJson.tools."xcopy-msbuild".Trim() -ine "none") {
7070
$xcopyMSBuildToolsFolder = InitializeXCopyMSBuild $GlobalJson.tools."xcopy-msbuild" -install $true

eng/common/templates/job/job.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ jobs:
7575
- ${{ if eq(parameters.enableRichCodeNavigation, 'true') }}:
7676
- name: EnableRichCodeNavigation
7777
value: 'true'
78+
# Retry signature validation up to three times, waiting 2 seconds between attempts.
79+
# See https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu3028#retry-untrusted-root-failures
80+
- name: NUGET_EXPERIMENTAL_CHAIN_BUILD_RETRY_POLICY
81+
value: 3,2000
7882
- ${{ each variable in parameters.variables }}:
7983
# handle name-value variable syntax
8084
# example:
@@ -83,7 +87,7 @@ jobs:
8387
- ${{ if ne(variable.name, '') }}:
8488
- name: ${{ variable.name }}
8589
value: ${{ variable.value }}
86-
90+
8791
# handle variable groups
8892
- ${{ if ne(variable.group, '') }}:
8993
- group: ${{ variable.group }}
@@ -169,7 +173,7 @@ jobs:
169173
- ${{ if eq(parameters.enableMicrobuild, 'true') }}:
170174
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
171175
- task: MicroBuildCleanup@1
172-
displayName: Execute Microbuild cleanup tasks
176+
displayName: Execute Microbuild cleanup tasks
173177
condition: and(always(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
174178
continueOnError: ${{ parameters.continueOnError }}
175179
env:
@@ -219,7 +223,7 @@ jobs:
219223
displayName: Publish XUnit Test Results
220224
inputs:
221225
testResultsFormat: 'xUnit'
222-
testResultsFiles: '*.xml'
226+
testResultsFiles: '*.xml'
223227
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
224228
testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-xunit
225229
mergeTestResults: ${{ parameters.mergeTestResults }}
@@ -230,7 +234,7 @@ jobs:
230234
displayName: Publish TRX Test Results
231235
inputs:
232236
testResultsFormat: 'VSTest'
233-
testResultsFiles: '*.trx'
237+
testResultsFiles: '*.trx'
234238
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
235239
testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-trx
236240
mergeTestResults: ${{ parameters.mergeTestResults }}

eng/common/templates/steps/source-build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ steps:
6868
runtimeOsArgs='/p:RuntimeOS=${{ parameters.platform.runtimeOS }}'
6969
fi
7070
71+
baseOsArgs=
72+
if [ '${{ parameters.platform.baseOS }}' != '' ]; then
73+
baseOsArgs='/p:BaseOS=${{ parameters.platform.baseOS }}'
74+
fi
75+
7176
publishArgs=
7277
if [ '${{ parameters.platform.skipPublishValidation }}' != 'true' ]; then
7378
publishArgs='--publish'
@@ -86,6 +91,7 @@ steps:
8691
$internalRestoreArgs \
8792
$targetRidArgs \
8893
$runtimeOsArgs \
94+
$baseOsArgs \
8995
/p:SourceBuildNonPortable=${{ parameters.platform.nonPortable }} \
9096
/p:ArcadeBuildFromSource=true \
9197
/p:AssetManifestFileName=$assetManifestFileName

eng/common/tools.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,13 @@ function InitializeVisualStudioMSBuild([bool]$install, [object]$vsRequirements =
379379
}
380380

381381
# Minimum VS version to require.
382-
$vsMinVersionReqdStr = '16.8'
382+
$vsMinVersionReqdStr = '17.6'
383383
$vsMinVersionReqd = [Version]::new($vsMinVersionReqdStr)
384384

385385
# If the version of msbuild is going to be xcopied,
386386
# use this version. Version matches a package here:
387-
# https://dev.azure.com/dnceng/public/_packaging?_a=package&feed=dotnet-eng&package=RoslynTools.MSBuild&protocolType=NuGet&version=17.4.1&view=overview
388-
$defaultXCopyMSBuildVersion = '17.4.1'
387+
# https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-eng/NuGet/RoslynTools.MSBuild/versions/17.6.0-2
388+
$defaultXCopyMSBuildVersion = '17.6.0-2'
389389

390390
if (!$vsRequirements) {
391391
if (Get-Member -InputObject $GlobalJson.tools -Name 'vs') {

global.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"tools": {
3-
"dotnet": "8.0.100-preview.3.23178.7",
3+
"dotnet": "8.0.100-preview.5.23303.2",
44
"runtimes": {
55
"dotnet": [
66
"2.1.30",
@@ -16,12 +16,12 @@
1616
}
1717
},
1818
"sdk": {
19-
"version": "8.0.100-preview.3.23178.7",
19+
"version": "8.0.100-preview.5.23303.2",
2020
"allowPrerelease": false,
2121
"rollForward": "latestPatch"
2222
},
2323
"msbuild-sdks": {
24-
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23269.2",
24+
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23320.3",
2525
"Yarn.MSBuild": "1.22.10"
2626
}
2727
}

src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/RazorTests.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.AspNetCore.Razor.Microbenchmarks.Generator;
77

88
public class RazorTests
99
{
10-
[Fact]
10+
[Fact(Skip = "https://github.com/dotnet/razor/issues/7982")]
1111
public void Project_Load_Cold()
1212
{
1313
// arrange
@@ -31,7 +31,7 @@ public void Project_Load_Cold()
3131
Assert.Throws<NullReferenceException>(() => project.GeneratorDriver.GetRunResult());
3232
}
3333

34-
[Fact]
34+
[Fact(Skip = "https://github.com/dotnet/razor/issues/7982")]
3535
public void Project_Load_Warm()
3636
{
3737
// arrange
@@ -49,7 +49,7 @@ public void Project_Load_Warm()
4949
Assert.Equal(110, results.GeneratedTrees.Length);
5050
}
5151

52-
[Fact]
52+
[Fact(Skip = "https://github.com/dotnet/razor/issues/7982")]
5353
public void Razor_Add_Independent()
5454
{
5555
// arrange
@@ -66,7 +66,7 @@ public void Razor_Add_Independent()
6666
Assert.Equal("Independent_razor.g.cs", results.Results[0].GeneratedSources.Last().HintName);
6767
}
6868

69-
[Fact]
69+
[Fact(Skip = "https://github.com/dotnet/razor/issues/7982")]
7070
public void Razor_Edit_Independent()
7171
{
7272
// arrange
@@ -86,7 +86,7 @@ public void Razor_Edit_Independent()
8686
Assert.Contains("<h1>Independent file</h1>", results.Results[0].GeneratedSources.Single(r => r.HintName == "Pages_Generated_0_razor.g.cs").SourceText.ToString());
8787
}
8888

89-
[Fact]
89+
[Fact(Skip = "https://github.com/dotnet/razor/issues/7982")]
9090
public void Razor_Remove_Independent()
9191
{
9292
// arrange
@@ -102,7 +102,7 @@ public void Razor_Remove_Independent()
102102
Assert.Equal(109, results.GeneratedTrees.Length);
103103
}
104104

105-
[Fact]
105+
[Fact(Skip = "https://github.com/dotnet/razor/issues/7982")]
106106
public void Razor_Edit_DependentIgnorable()
107107
{
108108
// arrange
@@ -122,7 +122,7 @@ public void Razor_Edit_DependentIgnorable()
122122
Assert.Contains("<h1>Counter edited</h1>", results.Results[0].GeneratedSources.Single(r => r.HintName == "Pages_Counter_razor.g.cs").SourceText.ToString());
123123
}
124124

125-
[Fact]
125+
[Fact(Skip = "https://github.com/dotnet/razor/issues/7982")]
126126
public void Razor_Edit_Dependent()
127127
{
128128
// arrange
@@ -144,7 +144,7 @@ public void Razor_Edit_Dependent()
144144
Assert.Contains("__builder.AddAttribute(6, \"IncrementAmount\", (object)(\"5\"));", results.Results[0].GeneratedSources.Single(r => r.HintName == "Pages_Index_razor.g.cs").SourceText.ToString());
145145
}
146146

147-
[Fact]
147+
[Fact(Skip = "https://github.com/dotnet/razor/issues/7982")]
148148
public void Razor_Remove_Dependent()
149149
{
150150
// arrange

src/Razor/src/rzls/rzls.csproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<OutputType>Exe</OutputType>
77
<Description>Razor is a markup syntax for adding server-side logic to web pages. This package contains a Razor language server.</Description>
88
<EnableApiCheck>false</EnableApiCheck>
9+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
910
<RuntimeIdentifiers Condition="$([MSBuild]::IsOSPlatform('Windows'))">win-x64;win-x86;win-arm64</RuntimeIdentifiers>
1011
<RuntimeIdentifiers Condition="$([MSBuild]::IsOSPlatform('Linux'))">linux-x64;linux-musl-x64;linux-arm64;linux-musl-arm64</RuntimeIdentifiers>
1112
<RuntimeIdentifiers Condition="$([MSBuild]::IsOSPlatform('OSX'))">osx-x64;osx-arm64</RuntimeIdentifiers>
@@ -58,11 +59,11 @@
5859

5960
<!-- Transform RuntimeIdentifierForPublish items to project items to pass to MSBuild task -->
6061
<ProjectToPublish Include="@(RuntimeIdentifierForPublish->'$(MSBuildProjectFullPath)')">
61-
<AdditionalProperties>RuntimeIdentifier=%(RuntimeIdentifierForPublish.Identity);PublishDir=$(RidsPublishDir)%(RuntimeIdentifierForPublish.Identity)\;TargetFramework=$(PublishTargetFramework)</AdditionalProperties>
62+
<AdditionalProperties>RuntimeIdentifier=%(RuntimeIdentifierForPublish.Identity);PublishDir=$(RidsPublishDir)%(RuntimeIdentifierForPublish.Identity)\;TargetFramework=$(PublishTargetFramework);SelfContained=true</AdditionalProperties>
6263
</ProjectToPublish>
6364

6465
<ProjectToPublish_PlatformAgnostic Include="$(MSBuildProjectFullPath)">
65-
<AdditionalProperties>PublishDir=$(RidsPublishDir)\PlatformAgnostic\;UseAppHost=false;TargetFramework=$(PublishTargetFramework)</AdditionalProperties>
66+
<AdditionalProperties>PublishDir=$(RidsPublishDir)\PlatformAgnostic\;UseAppHost=false;TargetFramework=$(PublishTargetFramework);</AdditionalProperties>
6667
</ProjectToPublish_PlatformAgnostic>
6768
</ItemGroup>
6869

0 commit comments

Comments
 (0)