Skip to content

Commit ce135b0

Browse files
committed
Merge branch 'main' into 56114
2 parents 5889ae1 + 870eec2 commit ce135b0

File tree

300 files changed

+749
-701
lines changed

Some content is hidden

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

300 files changed

+749
-701
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"remoteEnv": {
3232
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
3333
"DOTNET_MULTILEVEL_LOOKUP": "0",
34-
"TARGET": "net9.0",
34+
"TARGET": "net10.0",
3535
"DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER": "true"
3636
},
3737
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.

.github/policies/resourceManagement.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ configuration:
576576
then:
577577
- removeMilestone
578578
- addMilestone:
579-
milestone: 6.0.34
579+
milestone: 6.0.36
580580
description: '[Milestone Assignments] Assign Milestone to PRs merged to release/6.0 branch'
581581
- if:
582582
- payloadType: Pull_Request
@@ -587,7 +587,7 @@ configuration:
587587
then:
588588
- removeMilestone
589589
- addMilestone:
590-
milestone: 8.0.9
590+
milestone: 8.0.11
591591
description: '[Milestone Assignments] Assign Milestone to PRs merged to release/8.0 branch'
592592
- if:
593593
- payloadType: Issues

docs/DailyBuilds.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ If you want to download the latest daily build and use it in a project, then you
3333
</configuration>
3434
```
3535

36+
## .NET 10
37+
38+
```xml
39+
<?xml version="1.0" encoding="utf-8"?>
40+
<configuration>
41+
<packageSources>
42+
<clear />
43+
<add key="dotnet10" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json" />
44+
<add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />
45+
</packageSources>
46+
</configuration>
47+
```
48+
3649
*NOTE: This NuGet.Config should be with your application unless you want nightly packages to potentially start being restored for other apps on the machine.*
3750

3851
Some features, such as new target frameworks, may require prerelease tooling builds for Visual Studio.

eng/DotNetBuild.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<GitHubRepositoryName>aspnetcore</GitHubRepositoryName>
77
<SourceBuildManagedOnly>true</SourceBuildManagedOnly>
8-
<SourceBuildTargetFrameworkFilter>netstandard2.0%3bnetstandard2.1%3bnetcoreapp2.1%3bnetcoreapp3.1%3bnet5.0%3bnet6.0%3bnet7.0%3bnet8.0%3bnet9.0</SourceBuildTargetFrameworkFilter>
8+
<SourceBuildTargetFrameworkFilter>netstandard2.0%3bnetstandard2.1%3bnetcoreapp2.1%3bnetcoreapp3.1%3bnet5.0%3bnet6.0%3bnet7.0%3bnet8.0%3bnet9.0%3bnet10.0</SourceBuildTargetFrameworkFilter>
99
</PropertyGroup>
1010

1111
<!--

eng/Version.Details.xml

Lines changed: 182 additions & 182 deletions
Large diffs are not rendered by default.

eng/Versions.props

Lines changed: 93 additions & 93 deletions
Large diffs are not rendered by default.

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

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ parameters:
1919
# publishing defaults
2020
artifacts: ''
2121
enableMicrobuild: false
22+
enableMicrobuildForMacAndLinux: false
2223
enablePublishBuildArtifacts: false
2324
enablePublishBuildAssets: false
2425
enablePublishTestResults: false
@@ -134,11 +135,26 @@ jobs:
134135
signType: $(_SignType)
135136
zipSources: false
136137
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
138+
${{ if and(eq(parameters.enableMicrobuildForMacAndLinux, 'true'), ne(variables['Agent.Os'], 'Windows_NT')) }}:
139+
azureSubscription: 'MicroBuild Signing Task (DevDiv)'
137140
env:
138141
TeamName: $(_TeamName)
139142
MicroBuildOutputFolderOverride: '$(Agent.TempDirectory)'
143+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
140144
continueOnError: ${{ parameters.continueOnError }}
141-
condition: and(succeeded(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
145+
condition: and(
146+
succeeded(),
147+
or(
148+
and(
149+
eq(variables['Agent.Os'], 'Windows_NT'),
150+
in(variables['_SignType'], 'real', 'test')
151+
),
152+
and(
153+
${{ eq(parameters.enableMicrobuildForMacAndLinux, true) }},
154+
ne(variables['Agent.Os'], 'Windows_NT'),
155+
eq(variables['_SignType'], 'real')
156+
)
157+
))
142158

143159
- ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}:
144160
- task: NuGetAuthenticate@1
@@ -171,7 +187,19 @@ jobs:
171187
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
172188
- task: MicroBuildCleanup@1
173189
displayName: Execute Microbuild cleanup tasks
174-
condition: and(always(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
190+
condition: and(
191+
always(),
192+
or(
193+
and(
194+
eq(variables['Agent.Os'], 'Windows_NT'),
195+
in(variables['_SignType'], 'real', 'test')
196+
),
197+
and(
198+
${{ eq(parameters.enableMicrobuildForMacAndLinux, true) }},
199+
ne(variables['Agent.Os'], 'Windows_NT'),
200+
eq(variables['_SignType'], 'real')
201+
)
202+
))
175203
continueOnError: ${{ parameters.continueOnError }}
176204
env:
177205
TeamName: $(_TeamName)

eng/common/cross/build-rootfs.sh

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ __UbuntuPackages+=" libcurl4-openssl-dev"
6666
__UbuntuPackages+=" libkrb5-dev"
6767
__UbuntuPackages+=" libssl-dev"
6868
__UbuntuPackages+=" zlib1g-dev"
69+
__UbuntuPackages+=" libbrotli-dev"
6970

7071
__AlpinePackages+=" curl-dev"
7172
__AlpinePackages+=" krb5-dev"
@@ -91,18 +92,18 @@ __HaikuPackages="gcc_syslibs"
9192
__HaikuPackages+=" gcc_syslibs_devel"
9293
__HaikuPackages+=" gmp"
9394
__HaikuPackages+=" gmp_devel"
94-
__HaikuPackages+=" icu66"
95-
__HaikuPackages+=" icu66_devel"
95+
__HaikuPackages+=" icu[0-9]+"
96+
__HaikuPackages+=" icu[0-9]*_devel"
9697
__HaikuPackages+=" krb5"
9798
__HaikuPackages+=" krb5_devel"
9899
__HaikuPackages+=" libiconv"
99100
__HaikuPackages+=" libiconv_devel"
100-
__HaikuPackages+=" llvm12_libunwind"
101-
__HaikuPackages+=" llvm12_libunwind_devel"
101+
__HaikuPackages+=" llvm[0-9]*_libunwind"
102+
__HaikuPackages+=" llvm[0-9]*_libunwind_devel"
102103
__HaikuPackages+=" mpfr"
103104
__HaikuPackages+=" mpfr_devel"
104-
__HaikuPackages+=" openssl"
105-
__HaikuPackages+=" openssl_devel"
105+
__HaikuPackages+=" openssl3"
106+
__HaikuPackages+=" openssl3_devel"
106107
__HaikuPackages+=" zlib"
107108
__HaikuPackages+=" zlib_devel"
108109

@@ -496,7 +497,7 @@ if [[ "$__CodeName" == "alpine" ]]; then
496497
arch="$(uname -m)"
497498

498499
ensureDownloadTool
499-
500+
500501
if [[ "$__hasWget" == 1 ]]; then
501502
wget -P "$__ApkToolsDir" "https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v$__ApkToolsVersion/$arch/apk.static"
502503
else
@@ -681,7 +682,7 @@ elif [[ "$__CodeName" == "haiku" ]]; then
681682

682683
ensureDownloadTool
683684

684-
echo "Downloading Haiku package tool"
685+
echo "Downloading Haiku package tools"
685686
git clone https://github.com/haiku/haiku-toolchains-ubuntu --depth 1 "$__RootfsDir/tmp/script"
686687
if [[ "$__hasWget" == 1 ]]; then
687688
wget -O "$__RootfsDir/tmp/download/hosttools.zip" "$("$__RootfsDir/tmp/script/fetch.sh" --hosttools)"
@@ -691,34 +692,42 @@ elif [[ "$__CodeName" == "haiku" ]]; then
691692

692693
unzip -o "$__RootfsDir/tmp/download/hosttools.zip" -d "$__RootfsDir/tmp/bin"
693694

694-
DepotBaseUrl="https://depot.haiku-os.org/__api/v2/pkg/get-pkg"
695-
HpkgBaseUrl="https://eu.hpkg.haiku-os.org/haiku/master/$__HaikuArch/current"
695+
HaikuBaseUrl="https://eu.hpkg.haiku-os.org/haiku/master/$__HaikuArch/current"
696+
HaikuPortsBaseUrl="https://eu.hpkg.haiku-os.org/haikuports/master/$__HaikuArch/current"
697+
698+
echo "Downloading HaikuPorts package repository index..."
699+
if [[ "$__hasWget" == 1 ]]; then
700+
wget -P "$__RootfsDir/tmp/download" "$HaikuPortsBaseUrl/repo"
701+
else
702+
curl -SLO --create-dirs --output-dir "$__RootfsDir/tmp/download" "$HaikuPortsBaseUrl/repo"
703+
fi
696704

697-
# Download Haiku packages
698705
echo "Downloading Haiku packages"
699706
read -ra array <<<"$__HaikuPackages"
700707
for package in "${array[@]}"; do
701708
echo "Downloading $package..."
702-
# API documented here: https://github.com/haiku/haikudepotserver/blob/master/haikudepotserver-api2/src/main/resources/api2/pkg.yaml#L60
703-
# The schema here: https://github.com/haiku/haikudepotserver/blob/master/haikudepotserver-api2/src/main/resources/api2/pkg.yaml#L598
709+
hpkgFilename="$(LD_LIBRARY_PATH="$__RootfsDir/tmp/bin" "$__RootfsDir/tmp/bin/package_repo" list -f "$__RootfsDir/tmp/download/repo" |
710+
grep -E "${package}-" | sort -V | tail -n 1 | xargs)"
711+
if [ -z "$hpkgFilename" ]; then
712+
>&2 echo "ERROR: package $package missing."
713+
exit 1
714+
fi
715+
echo "Resolved filename: $hpkgFilename..."
716+
hpkgDownloadUrl="$HaikuPortsBaseUrl/packages/$hpkgFilename"
704717
if [[ "$__hasWget" == 1 ]]; then
705-
hpkgDownloadUrl="$(wget -qO- --post-data '{"name":"'"$package"'","repositorySourceCode":"haikuports_'$__HaikuArch'","versionType":"LATEST","naturalLanguageCode":"en"}' \
706-
--header 'Content-Type:application/json' "$DepotBaseUrl" | jq -r '.result.versions[].hpkgDownloadURL')"
707718
wget -P "$__RootfsDir/tmp/download" "$hpkgDownloadUrl"
708719
else
709-
hpkgDownloadUrl="$(curl -sSL -XPOST --data '{"name":"'"$package"'","repositorySourceCode":"haikuports_'$__HaikuArch'","versionType":"LATEST","naturalLanguageCode":"en"}' \
710-
--header 'Content-Type:application/json' "$DepotBaseUrl" | jq -r '.result.versions[].hpkgDownloadURL')"
711720
curl -SLO --create-dirs --output-dir "$__RootfsDir/tmp/download" "$hpkgDownloadUrl"
712721
fi
713722
done
714723
for package in haiku haiku_devel; do
715724
echo "Downloading $package..."
716725
if [[ "$__hasWget" == 1 ]]; then
717-
hpkgVersion="$(wget -qO- "$HpkgBaseUrl" | sed -n 's/^.*version: "\([^"]*\)".*$/\1/p')"
718-
wget -P "$__RootfsDir/tmp/download" "$HpkgBaseUrl/packages/$package-$hpkgVersion-1-$__HaikuArch.hpkg"
726+
hpkgVersion="$(wget -qO- "$HaikuBaseUrl" | sed -n 's/^.*version: "\([^"]*\)".*$/\1/p')"
727+
wget -P "$__RootfsDir/tmp/download" "$HaikuBaseUrl/packages/$package-$hpkgVersion-1-$__HaikuArch.hpkg"
719728
else
720-
hpkgVersion="$(curl -sSL "$HpkgBaseUrl" | sed -n 's/^.*version: "\([^"]*\)".*$/\1/p')"
721-
curl -SLO --create-dirs --output-dir "$__RootfsDir/tmp/download" "$HpkgBaseUrl/packages/$package-$hpkgVersion-1-$__HaikuArch.hpkg"
729+
hpkgVersion="$(curl -sSL "$HaikuBaseUrl" | sed -n 's/^.*version: "\([^"]*\)".*$/\1/p')"
730+
curl -SLO --create-dirs --output-dir "$__RootfsDir/tmp/download" "$HaikuBaseUrl/packages/$package-$hpkgVersion-1-$__HaikuArch.hpkg"
722731
fi
723732
done
724733

eng/helix/helix.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<HelixCorrelationPayload Include="$(NUGET_PACKAGES)\dotnet-serve\$(DotnetServeVersion)\dotnet-serve.$(DotnetServeVersion).nupkg" />
7575

7676
<!-- Grab published `HelixTestRunner` project output. -->
77-
<HelixCorrelationPayload Include="$(ArtifactsBinDir)HelixTestRunner\$(Configuration)\net9.0\publish\"
77+
<HelixCorrelationPayload Include="$(ArtifactsBinDir)HelixTestRunner\$(Configuration)\net10.0\publish\"
7878
Destination="HelixTestRunner" />
7979
</ItemGroup>
8080

eng/testing/linker/SupportFiles/Directory.Build.targets

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@
1313
<PackageReference Include="Microsoft.DotNet.ILCompiler"
1414
Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
1515

16-
<!-- Workaround when there is no vNext SDK available; copy known packs info from 8.0. -->
17-
<KnownAppHostPack Include="@(KnownAppHostPack->WithMetadataValue('TargetFramework', 'net8.0'))"
16+
<!-- Workaround when there is no vNext SDK available; copy known packs info from 9.0. -->
17+
<KnownAppHostPack Include="@(KnownAppHostPack->WithMetadataValue('TargetFramework', 'net9.0'))"
1818
TargetFramework="$(TargetFramework)"
1919
Condition="'@(KnownAppHostPack->Count())' != '0' AND
2020
!(@(KnownAppHostPack->AnyHaveMetadataValue('TargetFramework', '$(TargetFramework)')))" />
21-
<KnownRuntimePack Include="@(KnownRuntimePack->WithMetadataValue('TargetFramework', 'net8.0'))"
21+
<KnownRuntimePack Include="@(KnownRuntimePack->WithMetadataValue('TargetFramework', 'net9.0'))"
2222
TargetFramework="$(TargetFramework)"
2323
Condition="'@(KnownRuntimePack->Count())' != '0' AND
2424
!(@(KnownRuntimePack->AnyHaveMetadataValue('TargetFramework', '$(TargetFramework)')))" />
25-
<KnownFrameworkReference Include="@(KnownFrameworkReference->WithMetadataValue('TargetFramework', 'net8.0'))"
25+
<KnownFrameworkReference Include="@(KnownFrameworkReference->WithMetadataValue('TargetFramework', 'net9.0'))"
2626
TargetFramework="$(TargetFramework)"
2727
Condition="'@(KnownFrameworkReference->Count())' != '0' AND
2828
!(@(KnownFrameworkReference->AnyHaveMetadataValue('TargetFramework', '$(TargetFramework)')))" />
29-
<KnownILLinkPack Include="@(KnownILLinkPack->WithMetadataValue('TargetFramework', 'net8.0'))"
29+
<KnownILLinkPack Include="@(KnownILLinkPack->WithMetadataValue('TargetFramework', 'net9.0'))"
3030
TargetFramework="$(TargetFramework)"
3131
Condition="'@(KnownILLinkPack->Count())' != '0' AND
3232
!(@(KnownILLinkPack->AnyHaveMetadataValue('TargetFramework', '$(TargetFramework)')))" />
33-
<KnownILCompilerPack Include="@(KnownILCompilerPack->WithMetadataValue('TargetFramework', 'net8.0'))"
33+
<KnownILCompilerPack Include="@(KnownILCompilerPack->WithMetadataValue('TargetFramework', 'net9.0'))"
3434
TargetFramework="$(TargetFramework)"
3535
Condition="'@(KnownILCompilerPack->Count())' != '0' AND
3636
!(@(KnownILCompilerPack->AnyHaveMetadataValue('TargetFramework', '$(TargetFramework)')))" />

0 commit comments

Comments
 (0)