Skip to content

Commit 72f83ac

Browse files
[release/10.0.3xx] Source code updates from dotnet/dotnet (#1729)
[release/10.0.3xx] Source code updates from dotnet/dotnet
1 parent 60310a5 commit 72f83ac

23 files changed

Lines changed: 406 additions & 162 deletions

NuGet.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@
1818
<!-- End: Package sources from dotnet-dotnet -->
1919
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
2020
</disabledPackageSources>
21+
<auditSources>
22+
<clear />
23+
<add key="nuget.org" value="https://data.nuget.org/v3/index.json" />
24+
</auditSources>
2125
</configuration>

eng/Version.Details.props

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ This file should be imported by eng/Versions.props
66
<Project>
77
<PropertyGroup>
88
<!-- dotnet-dotnet dependencies -->
9-
<MicrosoftDotNetArcadeSdkPackageVersion>10.0.0-beta.26315.104</MicrosoftDotNetArcadeSdkPackageVersion>
10-
<SystemCommandLinePackageVersion>2.0.9</SystemCommandLinePackageVersion>
11-
<SystemIOHashingPackageVersion>10.0.9</SystemIOHashingPackageVersion>
9+
<MicrosoftDotNetArcadeSdkPackageVersion>10.0.0-beta.26378.113</MicrosoftDotNetArcadeSdkPackageVersion>
10+
<SystemCommandLinePackageVersion>2.0.10</SystemCommandLinePackageVersion>
11+
<SystemIOHashingPackageVersion>10.0.10</SystemIOHashingPackageVersion>
12+
<SystemSecurityCryptographyXmlPackageVersion>10.0.10</SystemSecurityCryptographyXmlPackageVersion>
13+
<SystemTextJsonPackageVersion>10.0.10</SystemTextJsonPackageVersion>
1214
</PropertyGroup>
1315
<!--Property group for alternate package version names-->
1416
<PropertyGroup>
1517
<!-- dotnet-dotnet dependencies -->
1618
<MicrosoftDotNetArcadeSdkVersion>$(MicrosoftDotNetArcadeSdkPackageVersion)</MicrosoftDotNetArcadeSdkVersion>
1719
<SystemCommandLineVersion>$(SystemCommandLinePackageVersion)</SystemCommandLineVersion>
1820
<SystemIOHashingVersion>$(SystemIOHashingPackageVersion)</SystemIOHashingVersion>
21+
<SystemSecurityCryptographyXmlVersion>$(SystemSecurityCryptographyXmlPackageVersion)</SystemSecurityCryptographyXmlVersion>
22+
<SystemTextJsonVersion>$(SystemTextJsonPackageVersion)</SystemTextJsonVersion>
1923
</PropertyGroup>
2024
</Project>

eng/Version.Details.xml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Dependencies>
3-
<Source Uri="https://github.com/dotnet/dotnet" Mapping="sourcelink" Sha="5ef850130ff4fc29043271f51ca415a885b39d41" BarId="318769" />
3+
<Source Uri="https://github.com/dotnet/dotnet" Mapping="sourcelink" Sha="44eb40611be3c94e8b5f2584367a4a129ceb8dfa" BarId="324781" />
44
<ProductDependencies>
5-
<Dependency Name="System.CommandLine" Version="2.0.9">
5+
<Dependency Name="System.CommandLine" Version="2.0.10">
66
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet</Uri>
7-
<Sha>901ca941248413c79832d2fdbd709da0c4386353</Sha>
7+
<Sha>f7d90799ce4ef09a0bb257852a57248d2a8fb8dd</Sha>
88
</Dependency>
9-
<Dependency Name="System.IO.Hashing" Version="10.0.9">
9+
<Dependency Name="System.IO.Hashing" Version="10.0.10">
1010
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet</Uri>
11-
<Sha>901ca941248413c79832d2fdbd709da0c4386353</Sha>
11+
<Sha>f7d90799ce4ef09a0bb257852a57248d2a8fb8dd</Sha>
12+
</Dependency>
13+
<Dependency Name="System.Security.Cryptography.Xml" Version="10.0.10">
14+
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet</Uri>
15+
<Sha>f7d90799ce4ef09a0bb257852a57248d2a8fb8dd</Sha>
16+
</Dependency>
17+
<Dependency Name="System.Text.Json" Version="10.0.10">
18+
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet</Uri>
19+
<Sha>f7d90799ce4ef09a0bb257852a57248d2a8fb8dd</Sha>
1220
</Dependency>
1321
</ProductDependencies>
1422
<ToolsetDependencies>
15-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.26315.104">
23+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.26378.113">
1624
<Uri>https://github.com/dotnet/dotnet</Uri>
17-
<Sha>5ef850130ff4fc29043271f51ca415a885b39d41</Sha>
25+
<Sha>44eb40611be3c94e8b5f2584367a4a129ceb8dfa</Sha>
1826
</Dependency>
1927
</ToolsetDependencies>
2028
</Dependencies>

eng/Versions.props

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="Version.Details.props" />
44

55
<PropertyGroup>
6-
<VersionPrefix>10.0.301</VersionPrefix>
6+
<VersionPrefix>10.0.304</VersionPrefix>
77
<PreReleaseVersionLabel>servicing</PreReleaseVersionLabel>
88
<PreReleaseVersionIteration></PreReleaseVersionIteration>
99
<!-- Allowed values: '', 'prerelease', 'release'. Set to 'release' when stabilizing. -->
@@ -19,8 +19,6 @@
1919
<MicrosoftBuildTasksCoreVersion>17.11.48</MicrosoftBuildTasksCoreVersion>
2020
<!-- nuget -->
2121
<NuGetVersioningVersion>6.12.1</NuGetVersioningVersion>
22-
<!-- runtime -->
23-
<SystemTextJsonVersion>8.0.5</SystemTextJsonVersion>
2422
</PropertyGroup>
2523

2624
</Project>

eng/common/build.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Param(
66
[string][Alias('v')]$verbosity = "minimal",
77
[string] $msbuildEngine = $null,
88
[bool] $warnAsError = $true,
9+
[string] $warnNotAsError = '',
910
[bool] $nodeReuse = $true,
1011
[switch] $buildCheck = $false,
1112
[switch][Alias('r')]$restore,
@@ -70,6 +71,7 @@ function Print-Usage() {
7071
Write-Host " -excludeCIBinarylog Don't output binary log (short: -nobl)"
7172
Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build"
7273
Write-Host " -warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
74+
Write-Host " -warnNotAsError <value> Sets a semi-colon delimited list of warning codes that should not be treated as errors"
7375
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
7476
Write-Host " -excludePrereleaseVS Set to exclude build engines in prerelease versions of Visual Studio"
7577
Write-Host " -nativeToolsOnMachine Sets the native tools on machine environment variable (indicating that the script should use native tools on machine)"

eng/common/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ usage()
4242
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
4343
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
4444
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
45+
echo " --warnNotAsError <value> Sets a semi-colon delimited list of warning codes that should not be treated as errors"
4546
echo " --buildCheck <value> Sets /check msbuild parameter"
4647
echo " --fromVMR Set when building from within the VMR"
4748
echo ""
@@ -78,6 +79,7 @@ ci=false
7879
clean=false
7980

8081
warn_as_error=true
82+
warn_not_as_error=''
8183
node_reuse=true
8284
build_check=false
8385
binary_log=false
@@ -176,6 +178,10 @@ while [[ $# > 0 ]]; do
176178
warn_as_error=$2
177179
shift
178180
;;
181+
-warnnotaserror)
182+
warn_not_as_error=$2
183+
shift
184+
;;
179185
-nodereuse)
180186
node_reuse=$2
181187
shift

eng/common/core-templates/job/onelocbuild.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ parameters:
88
CeapexPat: $(dn-bot-ceapex-package-r) # PAT for the loc AzDO instance https://dev.azure.com/ceapex
99
GithubPat: $(BotAccount-dotnet-bot-repo-PAT)
1010

11+
# Service connection for WIF-based Entra authentication to ceapex feeds (replaces CeapexPat).
12+
# When set, dnceng/internal builds acquire a federated Entra token instead of using a PAT.
13+
# All other projects (e.g. DevDiv, public), where this dnceng-scoped service connection does not
14+
# exist, and any pipeline that sets this to '' fall back to PAT-based auth via the CeapexPat parameter.
15+
CeapexServiceConnection: 'dnceng-onelocbuild-ceapex'
16+
1117
SourcesDirectory: $(System.DefaultWorkingDirectory)
1218
CreatePr: true
1319
AutoCompletePr: false
@@ -73,6 +79,15 @@ jobs:
7379
displayName: Generate LocProject.json
7480
condition: ${{ parameters.condition }}
7581

82+
# Acquire an Entra token for ceapex feed access via WIF (dnceng/internal only).
83+
# All other projects use PAT-based auth, since the ceapex service connection is scoped to dnceng/internal.
84+
- ${{ if and(ne(parameters.CeapexServiceConnection, ''), eq(variables['System.TeamProject'], 'internal')) }}:
85+
- template: /eng/common/templates/steps/get-federated-access-token.yml
86+
parameters:
87+
federatedServiceConnection: ${{ parameters.CeapexServiceConnection }}
88+
outputVariableName: 'CeapexEntraToken'
89+
condition: ${{ parameters.condition }}
90+
7691
- task: OneLocBuild@2
7792
displayName: OneLocBuild
7893
env:
@@ -88,7 +103,10 @@ jobs:
88103
isUseLfLineEndingsSelected: ${{ parameters.UseLfLineEndings }}
89104
isShouldReusePrSelected: ${{ parameters.ReusePr }}
90105
packageSourceAuth: patAuth
91-
patVariable: ${{ parameters.CeapexPat }}
106+
${{ if and(ne(parameters.CeapexServiceConnection, ''), eq(variables['System.TeamProject'], 'internal')) }}:
107+
patVariable: $(CeapexEntraToken)
108+
${{ if or(eq(parameters.CeapexServiceConnection, ''), ne(variables['System.TeamProject'], 'internal')) }}:
109+
patVariable: ${{ parameters.CeapexPat }}
92110
${{ if eq(parameters.RepoType, 'gitHub') }}:
93111
repoType: ${{ parameters.RepoType }}
94112
gitHubPatVariable: "${{ parameters.GithubPat }}"

eng/common/core-templates/job/publish-build-assets.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ jobs:
122122

123123
# Populate internal runtime variables.
124124
- template: /eng/common/templates/steps/enable-internal-sources.yml
125-
${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:
126-
parameters:
127-
legacyCredential: $(dn-bot-dnceng-artifact-feeds-rw)
128125

129126
- template: /eng/common/templates/steps/enable-internal-runtimes.yml
130127

eng/common/core-templates/post-build/post-build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,6 @@ stages:
352352

353353
# Populate internal runtime variables.
354354
- template: /eng/common/templates/steps/enable-internal-sources.yml
355-
parameters:
356-
legacyCredential: $(dn-bot-dnceng-artifact-feeds-rw)
357355

358356
- template: /eng/common/templates/steps/enable-internal-runtimes.yml
359357

0 commit comments

Comments
 (0)