Skip to content

Commit d7fce1f

Browse files
authored
Merge branch 'main' into trim_timezones
2 parents 2cc7c31 + cc260aa commit d7fce1f

File tree

1,879 files changed

+32702
-12263
lines changed

Some content is hidden

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

1,879 files changed

+32702
-12263
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"microsoft.dotnet.darc": {
6-
"version": "1.1.0-beta.24563.1",
6+
"version": "1.1.0-beta.25056.6",
77
"commands": [
88
"darc"
99
]

.config/tsaoptions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"instanceUrl": "https://devdiv.visualstudio.com/",
3+
"template": "TFSDEVDIV",
4+
"projectName": "DEVDIV",
5+
"areaPath": "DevDiv\\NET Tools\\SDK",
6+
"iterationPath": "DevDiv",
7+
"notificationAliases": [ "[email protected]" ],
8+
"repositoryName": "dotnet-sdk",
9+
"codebaseName": "dotnet-sdk"
10+
}

.devcontainer/vmr/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ vmr_branch=$(git -C "$sdk_dir" log --pretty=format:'%D' HEAD^ \
2525
| sed 's@origin/@@' \
2626
| sed 's@,.*@@')
2727

28-
"$workspace_dir/synchronize-vmr.sh" --branch "$vmr_branch" --debug
28+
"$workspace_dir/synchronize-vmr.sh" --branch "$vmr_branch" --ci --debug
2929

3030
cd "$vmr_dir"

.vsts-ci.yml

Lines changed: 27 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ extends:
6565
containers:
6666
alpine319WithNode:
6767
image: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.19-WithNode
68-
cblMariner20Fpm:
69-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm
7068
centosStream9:
7169
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9
7270
debian12Amd64:
@@ -75,13 +73,17 @@ extends:
7573
image: mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-39
7674
mariner20CrossArm:
7775
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm
78-
ubuntu2204DebPkg:
79-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg
8076
sdl:
8177
sourceAnalysisPool:
8278
name: $(DncEngInternalBuildPool)
8379
image: 1es-windows-2022
8480
os: windows
81+
policheck:
82+
enabled: true
83+
tsa:
84+
enabled: true
85+
binskim:
86+
enabled: true
8587
${{ if or(eq(parameters.runTestBuild, true), eq(variables['Build.Reason'], 'PullRequest')) }}:
8688
componentgovernance:
8789
# Refdoc: https://docs.opensource.microsoft.com/tools/cg/component-detection/variables/
@@ -97,14 +99,18 @@ extends:
9799
parameters:
98100
pool:
99101
name: $(DncEngInternalBuildPool)
100-
image: 1es-windows-2022
102+
image: windows.vs2022.amd64
101103
os: windows
102104
helixTargetQueue: windows.amd64.vs2022.pre
103105
oneESCompat:
104106
templateFolderName: templates-official
105107
publishTaskPrefix: 1ES.
106108
runtimeSourceProperties: /p:DotNetRuntimeSourceFeed=https://dotnetbuilds.blob.core.windows.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
107-
locBranch: release/9.0.1xx
109+
locBranch: release/9.0.2xx
110+
# WORKAROUND: BinSkim requires the folder exist prior to scanning.
111+
preSteps:
112+
- powershell: New-Item -ItemType Directory -Path $(Build.SourcesDirectory)/artifacts/bin -Force
113+
displayName: Create artifacts/bin directory
108114
${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }}:
109115
timeoutInMinutes: 90
110116
windowsJobParameterSets:
@@ -200,21 +206,20 @@ extends:
200206
runTests: false
201207
### PORTABLE ###
202208
- categoryName: Portable
203-
container: ubuntu2204DebPkg
204209
# Do not publish zips and tarballs. The linux-x64 binaries are already published by Official.
205210
publishArgument: $(_publishArgument) /p:PublishBinariesAndBadge=false
206211
officialBuildProperties: $(_officialBuildProperties)
207212
osProperties: $(linuxOsPortableProperties) /p:BuildSdkDeb=true
208213
runTests: false
209214
- categoryName: Portable
210-
container: cblMariner20Fpm
215+
container: centosStream9
211216
# Do not publish zips and tarballs. The linux-x64 binaries are already published by Official.
212217
publishArgument: $(_publishArgument) /p:PublishBinariesAndBadge=false
213218
officialBuildProperties: $(_officialBuildProperties)
214219
osProperties: $(linuxOsPortableProperties) /p:IsRPMBasedDistro=true
215220
runTests: false
216221
- categoryName: Portable
217-
container: cblMariner20Fpm
222+
container: centosStream9
218223
buildArchitecture: arm64
219224
runtimeIdentifier: linux-arm64
220225
# Do not publish zips and tarballs. The linux-arm64 binaries are already published by Official.
@@ -291,15 +296,19 @@ extends:
291296
publishArgument: $(_publishArgument)
292297
officialBuildProperties: $(_officialBuildProperties)
293298
runTests: false
294-
295-
############### SOURCE BUILD ###############
296-
- template: /eng/common/templates-official/job/source-build.yml@self
297-
parameters:
298-
platform:
299-
name: Managed
300-
container: centosStream9
301-
jobProperties:
302-
timeoutInMinutes: 30
299+
### ARM64 TESTBUILD ###
300+
- ${{ if or(eq(parameters.runTestBuild, true), eq(variables['Build.Reason'], 'PullRequest')) }}:
301+
- template: /eng/pipelines/templates/jobs/sdk-job-matrix.yml@self
302+
parameters:
303+
pool:
304+
name: Azure Pipelines
305+
vmImage: macOS-latest
306+
os: macOS
307+
helixTargetQueue: osx.13.arm64
308+
macOSJobParameterSets:
309+
- categoryName: TestBuild
310+
buildArchitecture: arm64
311+
runtimeIdentifier: osx-arm64
303312

304313
############### DOTNET-FORMAT ###############
305314
- ${{ if or(eq(parameters.runTestBuild, true), eq(variables['Build.Reason'], 'PullRequest')) }}:
@@ -323,26 +332,3 @@ extends:
323332
name: $(DncEngInternalBuildPool)
324333
image: 1es-windows-2022
325334
os: windows
326-
327-
############### POST-BUILD STAGE ###############
328-
- template: /eng/common/templates-official/post-build/post-build.yml@self
329-
parameters:
330-
publishingInfraVersion: 3
331-
enableSymbolValidation: false
332-
enableSigningValidation: false
333-
enableNugetValidation: false
334-
enableSourceLinkValidation: false
335-
publishInstallersAndChecksums: true
336-
publishAssetsImmediately: true
337-
SDLValidationParameters:
338-
enable: false
339-
params: ' -SourceToolsList @("policheck","credscan")
340-
-TsaInstanceURL $(_TsaInstanceURL)
341-
-TsaProjectName $(_TsaProjectName)
342-
-TsaNotificationEmail $(_TsaNotificationEmail)
343-
-TsaCodebaseAdmin $(_TsaCodebaseAdmin)
344-
-TsaBugAreaPath $(_TsaBugAreaPath)
345-
-TsaIterationPath $(_TsaIterationPath)
346-
-TsaRepositoryName "dotnet-sdk"
347-
-TsaCodebaseName "dotnet-sdk"
348-
-TsaPublish $True'

.vsts-pr.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ stages:
4444
name: $(DncEngPublicBuildPool)
4545
demands: ImageOverride -equals windows.vs2022.amd64.open
4646
os: windows
47-
helixTargetQueue: windows.amd64.vs2022.pre.open
47+
helixTargetQueue: windows.amd64.vs2022.pre.scout.open
4848

4949
############### LINUX ###############
5050
- template: /eng/pipelines/templates/jobs/sdk-job-matrix.yml
@@ -63,15 +63,18 @@ stages:
6363
vmImage: macOS-latest
6464
os: macOS
6565
helixTargetQueue: osx.13.amd64.open
66-
67-
############### SOURCE BUILD ###############
68-
- template: /eng/common/templates/job/source-build.yml@self
66+
### ARM64 ###
67+
- template: /eng/pipelines/templates/jobs/sdk-job-matrix.yml
6968
parameters:
70-
platform:
71-
name: Managed
72-
container: centosStream9
73-
jobProperties:
74-
timeoutInMinutes: 30
69+
pool:
70+
name: Azure Pipelines
71+
vmImage: macOS-latest
72+
os: macOS
73+
helixTargetQueue: osx.13.arm64.open
74+
macOSJobParameterSets:
75+
- categoryName: TestBuild
76+
buildArchitecture: arm64
77+
runtimeIdentifier: osx-arm64
7578

7679
############### DOTNET-FORMAT ###############
7780
- template: /eng/dotnet-format/dotnet-format-integration.yml

CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
/src/Cli/dotnet/commands/dotnet-vstest @dotnet/dotnet-testing-admin
5151
/test/dotnet-test.Tests @dotnet/dotnet-testing-admin
5252
/test/dotnet-vstest.Tests @dotnet/dotnet-testing-admin
53+
/test/dotnet-new.Tests @dotnet/dotnet-testing-admin
54+
/template_feed/Microsoft.DotNet.Common.*/content/MSTest* @dotnet/dotnet-testing-admin
55+
/template_feed/Microsoft.DotNet.Common.*/content/NUnit* @dotnet/dotnet-testing-admin
56+
/template_feed/Microsoft.DotNet.Common.*/content/XUnit* @dotnet/dotnet-testing-admin
5357

5458
# Area-Templates
5559
/src/Cli/dotnet/commands/dotnet-new @dotnet/templating-engine-maintainers

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
Note: The redist-installer project does use Architecture. The Arcade SDK does not use either BuildArchitecture or Architecture.
1717
-->
1818
<Platform Condition="'$(SetPlatformFromArchitecture)' == 'true' And ('$(Platform)' == '' Or '$(Platform)' == 'AnyCPU')">$(Architecture)</Platform>
19+
<Nullable>enable</Nullable>
1920
</PropertyGroup>
2021

2122
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />

Directory.Build.targets

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the MIT license. See License.txt in the project root for full license information. -->
33
<Project>
4+
<PropertyGroup>
5+
<!--
6+
Disable nullable warnings when targeting anything other than our supported .NET core version(s).
7+
This condition will be evaluated multiple times in multi-targeted projects hence need to be careful
8+
to only set in the inner builds, not the outer build where only $(TargetFrameworks) is defined.
9+
We still check $(TargetFrameworks) for empty though, because for single-targeted builds we want to
10+
allow nullable warnings regardless of target framework.
11+
-->
12+
<NoWarn Condition="'$(DisableNullableWarnings)' == '' AND '$(TargetFrameworks)' != '' AND '$(TargetFramework)' != '' AND '$(TargetFrameworkIdentifier)' != '.NETCoreApp'">$(NoWarn);Nullable</NoWarn>
13+
</PropertyGroup>
414

515
<ItemGroup>
616
<SupportedPlatform Remove="Android" />
@@ -52,8 +62,7 @@
5262
<!-- Update KnownFrameworkReferences to target the right version of the runtime -->
5363
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'
5464
and $(MicrosoftNETCoreAppRefPackageVersion.StartsWith('$(_TargetFrameworkVersionWithoutV)'))
55-
and '$(MSBuildProjectName)' != 'toolset-tasks'
56-
and '$(MSBuildProjectName)' != 'core-sdk-tasks'">
65+
and '$(MSBuildProjectName)' != 'sdk-tasks'">
5766
<FrameworkReference
5867
Update="Microsoft.NETCore.App"
5968
TargetingPackVersion="$(MicrosoftNETCoreAppRefPackageVersion)"

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<PackageVersion Include="Microsoft.TestPlatform.CLI" Version="$(MicrosoftTestPlatformCLIPackageVersion)" />
7070
<PackageVersion Include="Microsoft.VisualStudio.Composition" Version="17.4.16" />
7171
<PackageVersion Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="$(MicrosoftVisualStudioSetupConfigurationInteropVersion)" />
72-
<PackageVersion Include="Microsoft.VisualStudio.SolutionPersistence" Version="1.0.23" />
72+
<PackageVersion Include="Microsoft.VisualStudio.SolutionPersistence" Version="1.0.28" />
7373
<PackageVersion Include="Microsoft.Web.Deployment" Version="$(WebDeploymentPackageVersion)" />
7474
<PackageVersion Include="Microsoft.Web.Xdt" Version="$(MicrosoftWebXdtPackageVersion)" />
7575
<PackageVersion Include="Microsoft.Win32.SystemEvents" Version="$(MicrosoftWin32SystemEventsPackageVersion)" />
@@ -120,7 +120,7 @@
120120
<PackageVersion Include="System.Text.Encoding.CodePages" Version="$(SystemTextEncodingCodePagesPackageVersion)" />
121121
<PackageVersion Include="System.Text.Json" Version="$(SystemTextJsonPackageVersion)" />
122122
<PackageVersion Include="System.Windows.Extensions" Version="$(SystemWindowsExtensionsPackageVersion)" />
123-
<PackageVersion Include="Valleysoft.DockerCredsProvider" Version="2.2.1" />
123+
<PackageVersion Include="Valleysoft.DockerCredsProvider" Version="2.2.4" />
124124
<PackageVersion Include="xunit" Version="$(XUnitVersion)" />
125125
<PackageVersion Include="Xunit.Combinatorial" Version="$(XunitCombinatorialVersion)" />
126126
<PackageVersion Include="xunit.console" Version="$(XUnitVersion)" />

build/RunTestsOnHelix.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ export MicrosoftNETBuildExtensionsTargets=$HELIX_CORRELATION_PAYLOAD/ex/msbuildE
99
export DOTNET_ROOT=$HELIX_CORRELATION_PAYLOAD/d
1010
export PATH=$DOTNET_ROOT:$PATH
1111

12-
export TestExecutionDirectory=$(pwd)/testExecutionDirectory
13-
mkdir $TestExecutionDirectory
12+
export TestExecutionDirectory=$(realpath "$(mktemp -d "${TMPDIR:-/tmp}"/dotnetSdkTests.XXXXXXXX)")
1413
export DOTNET_CLI_HOME=$TestExecutionDirectory/.dotnet
1514
cp -a $HELIX_CORRELATION_PAYLOAD/t/TestExecutionDirectoryFiles/. $TestExecutionDirectory/
1615

@@ -36,4 +35,4 @@ dotnet nuget remove source dotnet-libraries-transport --configfile $TestExecutio
3635
dotnet nuget remove source dotnet-tools-transport --configfile $TestExecutionDirectory/NuGet.config
3736
dotnet nuget remove source dotnet-libraries --configfile $TestExecutionDirectory/NuGet.config
3837
dotnet nuget remove source dotnet-eng --configfile $TestExecutionDirectory/NuGet.config
39-
dotnet nuget list source --configfile $TestExecutionDirectory/NuGet.config
38+
dotnet nuget list source --configfile $TestExecutionDirectory/NuGet.config

0 commit comments

Comments
 (0)