From 669af35dae5bb8565d532664978b4ec3a063a220 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Tue, 28 Jul 2026 02:04:30 +0000 Subject: [PATCH 1/3] Backflow from https://github.com/dotnet/dotnet / e0c9b3f build 324500 Diff: https://github.com/dotnet/dotnet/compare/b63fd14d0c0dc26a52814d3f8debb67ba806f1f0..e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d From: https://github.com/dotnet/dotnet/commit/b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 To: https://github.com/dotnet/dotnet/commit/e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d [[ commit created by automation ]] --- NuGet.config | 4 ++++ eng/Analyzer.props | 3 --- eng/Versions.props | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NuGet.config b/NuGet.config index 9339987c45f..3985937395a 100644 --- a/NuGet.config +++ b/NuGet.config @@ -74,4 +74,8 @@ + + + + diff --git a/eng/Analyzer.props b/eng/Analyzer.props index 70b3e8b59fc..6f857d78005 100644 --- a/eng/Analyzer.props +++ b/eng/Analyzer.props @@ -3,9 +3,6 @@ false - - $(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904 - true servicing From 30c84bf681a123ea877faaae60d3b0cb36e10fe0 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Tue, 28 Jul 2026 02:04:30 +0000 Subject: [PATCH 2/3] Update dependencies from build 324500 Updated Dependencies: Microsoft.DotNet.Arcade.Sdk, Microsoft.DotNet.Build.Tasks.Templating, Microsoft.DotNet.CMake.Sdk, Microsoft.DotNet.GenFacades, Microsoft.DotNet.Helix.Sdk, Microsoft.DotNet.RemoteExecutor, Microsoft.DotNet.XUnitV3Extensions (Version 10.0.0-beta.26361.102 -> 10.0.0-beta.26376.103) Microsoft.NET.Sdk.IL, Microsoft.NETCore.App.Ref, Microsoft.NETCore.ILAsm, Microsoft.NETCore.ILDAsm, Microsoft.Win32.SystemEvents, runtime.win-x64.Microsoft.NETCore.ILAsm, System.CodeDom, System.Configuration.ConfigurationManager, System.Formats.Nrbf, System.IO.Hashing, System.Reflection.MetadataLoadContext, System.Resources.Extensions, System.Runtime.Serialization.Formatters, System.Text.Encodings.Web, System.Text.Json, System.Windows.Extensions, runtime.win-x86.Microsoft.NETCore.ILAsm (Version 10.0.10 -> 10.0.12) Microsoft.NETCore.Platforms (Version 10.0.10-servicing.26361.102 -> 10.0.12-servicing.26376.103) [[ commit created by automation ]] --- NuGet.config | 2 +- eng/Version.Details.props | 50 ++++----- eng/Version.Details.xml | 102 +++++++++--------- eng/common/build.ps1 | 2 + eng/common/build.sh | 6 ++ eng/common/core-templates/job/onelocbuild.yml | 20 +++- .../job/publish-build-assets.yml | 3 - .../core-templates/post-build/post-build.yml | 2 - eng/common/tools.ps1 | 10 +- eng/common/tools.sh | 12 ++- global.json | 12 +-- 11 files changed, 129 insertions(+), 92 deletions(-) diff --git a/NuGet.config b/NuGet.config index 3985937395a..5aaa803a73b 100644 --- a/NuGet.config +++ b/NuGet.config @@ -4,7 +4,7 @@ - + diff --git a/eng/Version.Details.props b/eng/Version.Details.props index 18eb4e00bad..a72132782e4 100644 --- a/eng/Version.Details.props +++ b/eng/Version.Details.props @@ -6,31 +6,31 @@ This file should be imported by eng/Versions.props - 10.0.0-beta.26361.102 - 10.0.0-beta.26361.102 - 10.0.0-beta.26361.102 - 10.0.0-beta.26361.102 - 10.0.0-beta.26361.102 - 10.0.0-beta.26361.102 - 10.0.0-beta.26361.102 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10-servicing.26361.102 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 - 10.0.10 + 10.0.0-beta.26376.103 + 10.0.0-beta.26376.103 + 10.0.0-beta.26376.103 + 10.0.0-beta.26376.103 + 10.0.0-beta.26376.103 + 10.0.0-beta.26376.103 + 10.0.0-beta.26376.103 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12-servicing.26376.103 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 6fda271c464..0f37821e6bc 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -6,110 +6,110 @@ Note: if the Uri is a new place, you will need to add a subscription from that p And you can check these with "darc get-dependencies target-repo "winforms" --> - + - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d - + https://github.com/dotnet/dotnet - b63fd14d0c0dc26a52814d3f8debb67ba806f1f0 + e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d diff --git a/eng/common/build.ps1 b/eng/common/build.ps1 index 8cfee107e7a..18397a60eb8 100644 --- a/eng/common/build.ps1 +++ b/eng/common/build.ps1 @@ -6,6 +6,7 @@ Param( [string][Alias('v')]$verbosity = "minimal", [string] $msbuildEngine = $null, [bool] $warnAsError = $true, + [string] $warnNotAsError = '', [bool] $nodeReuse = $true, [switch] $buildCheck = $false, [switch][Alias('r')]$restore, @@ -70,6 +71,7 @@ function Print-Usage() { Write-Host " -excludeCIBinarylog Don't output binary log (short: -nobl)" Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build" Write-Host " -warnAsError Sets warnaserror msbuild parameter ('true' or 'false')" + Write-Host " -warnNotAsError Sets a semi-colon delimited list of warning codes that should not be treated as errors" Write-Host " -msbuildEngine Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)." Write-Host " -excludePrereleaseVS Set to exclude build engines in prerelease versions of Visual Studio" Write-Host " -nativeToolsOnMachine Sets the native tools on machine environment variable (indicating that the script should use native tools on machine)" diff --git a/eng/common/build.sh b/eng/common/build.sh index 9767bb411a4..c8bea7cbc2d 100755 --- a/eng/common/build.sh +++ b/eng/common/build.sh @@ -42,6 +42,7 @@ usage() echo " --prepareMachine Prepare machine for CI run, clean up processes after build" echo " --nodeReuse Sets nodereuse msbuild parameter ('true' or 'false')" echo " --warnAsError Sets warnaserror msbuild parameter ('true' or 'false')" + echo " --warnNotAsError Sets a semi-colon delimited list of warning codes that should not be treated as errors" echo " --buildCheck Sets /check msbuild parameter" echo " --fromVMR Set when building from within the VMR" echo "" @@ -78,6 +79,7 @@ ci=false clean=false warn_as_error=true +warn_not_as_error='' node_reuse=true build_check=false binary_log=false @@ -176,6 +178,10 @@ while [[ $# > 0 ]]; do warn_as_error=$2 shift ;; + -warnnotaserror) + warn_not_as_error=$2 + shift + ;; -nodereuse) node_reuse=$2 shift diff --git a/eng/common/core-templates/job/onelocbuild.yml b/eng/common/core-templates/job/onelocbuild.yml index eefed3b667a..12d7e55a94b 100644 --- a/eng/common/core-templates/job/onelocbuild.yml +++ b/eng/common/core-templates/job/onelocbuild.yml @@ -8,6 +8,12 @@ parameters: CeapexPat: $(dn-bot-ceapex-package-r) # PAT for the loc AzDO instance https://dev.azure.com/ceapex GithubPat: $(BotAccount-dotnet-bot-repo-PAT) + # Service connection for WIF-based Entra authentication to ceapex feeds (replaces CeapexPat). + # When set, dnceng/internal builds acquire a federated Entra token instead of using a PAT. + # All other projects (e.g. DevDiv, public), where this dnceng-scoped service connection does not + # exist, and any pipeline that sets this to '' fall back to PAT-based auth via the CeapexPat parameter. + CeapexServiceConnection: 'dnceng-onelocbuild-ceapex' + SourcesDirectory: $(System.DefaultWorkingDirectory) CreatePr: true AutoCompletePr: false @@ -73,6 +79,15 @@ jobs: displayName: Generate LocProject.json condition: ${{ parameters.condition }} + # Acquire an Entra token for ceapex feed access via WIF (dnceng/internal only). + # All other projects use PAT-based auth, since the ceapex service connection is scoped to dnceng/internal. + - ${{ if and(ne(parameters.CeapexServiceConnection, ''), eq(variables['System.TeamProject'], 'internal')) }}: + - template: /eng/common/templates/steps/get-federated-access-token.yml + parameters: + federatedServiceConnection: ${{ parameters.CeapexServiceConnection }} + outputVariableName: 'CeapexEntraToken' + condition: ${{ parameters.condition }} + - task: OneLocBuild@2 displayName: OneLocBuild env: @@ -88,7 +103,10 @@ jobs: isUseLfLineEndingsSelected: ${{ parameters.UseLfLineEndings }} isShouldReusePrSelected: ${{ parameters.ReusePr }} packageSourceAuth: patAuth - patVariable: ${{ parameters.CeapexPat }} + ${{ if and(ne(parameters.CeapexServiceConnection, ''), eq(variables['System.TeamProject'], 'internal')) }}: + patVariable: $(CeapexEntraToken) + ${{ if or(eq(parameters.CeapexServiceConnection, ''), ne(variables['System.TeamProject'], 'internal')) }}: + patVariable: ${{ parameters.CeapexPat }} ${{ if eq(parameters.RepoType, 'gitHub') }}: repoType: ${{ parameters.RepoType }} gitHubPatVariable: "${{ parameters.GithubPat }}" diff --git a/eng/common/core-templates/job/publish-build-assets.yml b/eng/common/core-templates/job/publish-build-assets.yml index 06f2eed0323..53af522d6d4 100644 --- a/eng/common/core-templates/job/publish-build-assets.yml +++ b/eng/common/core-templates/job/publish-build-assets.yml @@ -122,9 +122,6 @@ jobs: # Populate internal runtime variables. - template: /eng/common/templates/steps/enable-internal-sources.yml - ${{ if eq(variables['System.TeamProject'], 'DevDiv') }}: - parameters: - legacyCredential: $(dn-bot-dnceng-artifact-feeds-rw) - template: /eng/common/templates/steps/enable-internal-runtimes.yml diff --git a/eng/common/core-templates/post-build/post-build.yml b/eng/common/core-templates/post-build/post-build.yml index 905a6315e2d..135fc9a5051 100644 --- a/eng/common/core-templates/post-build/post-build.yml +++ b/eng/common/core-templates/post-build/post-build.yml @@ -352,8 +352,6 @@ stages: # Populate internal runtime variables. - template: /eng/common/templates/steps/enable-internal-sources.yml - parameters: - legacyCredential: $(dn-bot-dnceng-artifact-feeds-rw) - template: /eng/common/templates/steps/enable-internal-runtimes.yml diff --git a/eng/common/tools.ps1 b/eng/common/tools.ps1 index 977a2d4b103..bde220ad85b 100644 --- a/eng/common/tools.ps1 +++ b/eng/common/tools.ps1 @@ -34,6 +34,9 @@ # Configures warning treatment in msbuild. [bool]$warnAsError = if (Test-Path variable:warnAsError) { $warnAsError } else { $true } +# Specifies semi-colon delimited list of warning codes that should not be treated as errors. +[string]$warnNotAsError = if (Test-Path variable:warnNotAsError) { $warnNotAsError } else { '' } + # Specifies which msbuild engine to use for build: 'vs', 'dotnet' or unspecified (determined based on presence of tools.vs in global.json). [string]$msbuildEngine = if (Test-Path variable:msbuildEngine) { $msbuildEngine } else { $null } @@ -732,7 +735,7 @@ function InitializeToolset() { '' | Set-Content $proj - MSBuild-Core $proj $bl /t:__WriteToolsetLocation /clp:ErrorsOnly`;NoSummary /p:__ToolsetLocationOutputFile=$toolsetLocationFile + MSBuild-Core $proj $bl /t:__WriteToolsetLocation /clp:ErrorsOnly`;NoSummary /p:__ToolsetLocationOutputFile=$toolsetLocationFile /p:RestoreIgnoreFailedSources=true $path = Get-Content $toolsetLocationFile -Encoding UTF8 -TotalCount 1 if (!(Test-Path $path)) { @@ -836,6 +839,11 @@ function MSBuild-Core() { $cmdArgs += ' /p:TreatWarningsAsErrors=false' } + if ($warnAsError -and $warnNotAsError) { + $escapedWarnNotAsError = $warnNotAsError -replace ';', '%3B' + $cmdArgs += " /warnnotaserror:$warnNotAsError /p:AdditionalWarningsNotAsErrors=$escapedWarnNotAsError" + } + foreach ($arg in $args) { if ($null -ne $arg -and $arg.Trim() -ne "") { if ($arg.EndsWith('\')) { diff --git a/eng/common/tools.sh b/eng/common/tools.sh index 1b296f646c2..df76f062a76 100755 --- a/eng/common/tools.sh +++ b/eng/common/tools.sh @@ -52,6 +52,9 @@ fi # Configures warning treatment in msbuild. warn_as_error=${warn_as_error:-true} +# Specifies semi-colon delimited list of warning codes that should not be treated as errors. +warn_not_as_error=${warn_not_as_error:-''} + # True to attempt using .NET Core already that meets requirements specified in global.json # installed on the machine instead of downloading one. use_installed_dotnet_cli=${use_installed_dotnet_cli:-true} @@ -430,7 +433,7 @@ function InitializeToolset { fi echo '' > "$proj" - MSBuild-Core "$proj" $bl /t:__WriteToolsetLocation /clp:ErrorsOnly\;NoSummary /p:__ToolsetLocationOutputFile="$toolset_location_file" + MSBuild-Core "$proj" $bl /t:__WriteToolsetLocation /clp:ErrorsOnly\;NoSummary /p:__ToolsetLocationOutputFile="$toolset_location_file" /p:RestoreIgnoreFailedSources=true local toolset_build_proj=`cat "$toolset_location_file"` @@ -532,7 +535,12 @@ function MSBuild-Core { mt_switch="-mt" fi - RunBuildTool "$_InitializeBuildToolCommand" /m /nologo /clp:Summary /v:$verbosity /nr:$node_reuse $warnaserror_switch $mt_switch /p:TreatWarningsAsErrors=$warn_as_error /p:ContinuousIntegrationBuild=$ci "$@" + local warnnotaserror_switch="" + if [[ -n "$warn_not_as_error" && "$warn_as_error" == true ]]; then + warnnotaserror_switch="/warnnotaserror:$warn_not_as_error /p:AdditionalWarningsNotAsErrors=${warn_not_as_error//;/%3B}" + fi + + RunBuildTool "$_InitializeBuildToolCommand" /m /nologo /clp:Summary /v:$verbosity /nr:$node_reuse $warnaserror_switch $mt_switch $warnnotaserror_switch /p:TreatWarningsAsErrors=$warn_as_error /p:ContinuousIntegrationBuild=$ci "$@" } function GetDarc { diff --git a/global.json b/global.json index efcccdc02d8..64be9688d98 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "10.0.109", + "version": "10.0.110", "allowPrerelease": true, "rollForward": "latestFeature", "paths": [ @@ -10,7 +10,7 @@ "errorMessage": "The required .NET SDK wasn't found. Please run ./eng/common/dotnet.cmd/sh to install it." }, "tools": { - "dotnet": "10.0.109", + "dotnet": "10.0.110", "runtimes": { "dotnet/x64": [ "$(MicrosoftNETCorePlatformsPackageVersion)" @@ -21,11 +21,11 @@ } }, "msbuild-sdks": { - "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.26361.102", - "Microsoft.DotNet.CMake.Sdk": "10.0.0-beta.26361.102", - "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.26361.102", + "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.26376.103", + "Microsoft.DotNet.CMake.Sdk": "10.0.0-beta.26376.103", + "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.26376.103", "FIX-85B6-MERGE-9C38-CONFLICT": "1.0.0", - "Microsoft.NET.Sdk.IL": "10.0.10" + "Microsoft.NET.Sdk.IL": "10.0.12" }, "native-tools": { "cmake": "latest" From f9016f198b4dc605b983c979cdcf795dacfab514 Mon Sep 17 00:00:00 2001 From: Leaf Shi <132890443+LeafShi1@users.noreply.github.com> Date: Mon, 27 Jul 2026 19:24:43 -0700 Subject: [PATCH 3/3] Update package source key in NuGet.config --- NuGet.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NuGet.config b/NuGet.config index 5aaa803a73b..5f3fec8bf8b 100644 --- a/NuGet.config +++ b/NuGet.config @@ -21,7 +21,7 @@ - +