Skip to content

Commit 8f9e37f

Browse files
authored
Merge branch 'main' into binarydata-fromfile
2 parents c31e500 + 112ef3d commit 8f9e37f

File tree

2,066 files changed

+41622
-30901
lines changed

Some content is hidden

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

2,066 files changed

+41622
-30901
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"microsoft.dotnet.xharness.cli": {
18-
"version": "9.0.0-prerelease.24420.3",
18+
"version": "10.0.0-prerelease.24476.1",
1919
"commands": [
2020
"xharness"
2121
]

.config/tsaoptions.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
"instanceUrl": "https://devdiv.visualstudio.com/",
33
"template": "TFSDEVDIV",
44
"projectName": "DEVDIV",
5-
"areaPath": "DevDiv\\NET Libraries",
5+
"areaPath": "DevDiv\\NET Runtime",
66
"iterationPath": "DevDiv",
77
"notificationAliases": [ "[email protected]" ],
88
"repositoryName": "Runtime",
9-
"codebaseName": "Runtime"
10-
}
9+
"codebaseName": "Runtime",
10+
"serviceTreeId": "1dc8dedc-8f5f-4b94-b182-ec3bdfb207b0"
11+
}

.github/policies/resourceManagement.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ configuration:
177177
label: area-Infrastructure-libraries
178178
- labelAdded:
179179
label: area-Infrastructure-mono
180+
- labelAdded:
181+
label: area-Interop-coreclr
180182
- labelAdded:
181183
label: area-Meta
182184
- labelAdded:
@@ -946,9 +948,8 @@ configuration:
946948
then:
947949
- mentionUsers:
948950
mentionees:
949-
- davoudeshtehari
951+
- cheenamalhotra
950952
- david-engel
951-
- jrahnama
952953
replyTemplate: >-
953954
Tagging subscribers to this area: ${mentionees}
954955
@@ -1410,6 +1411,18 @@ configuration:
14101411
See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed.
14111412
assignMentionees: False
14121413
- if:
1414+
- hasLabel:
1415+
label: area-Interop-coreclr
1416+
then:
1417+
- mentionUsers:
1418+
mentionees:
1419+
- dotnet/interop-contrib
1420+
replyTemplate: >-
1421+
Tagging subscribers to this area: ${mentionees}
1422+
1423+
See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed.
1424+
assignMentionees: False
1425+
- if:
14131426
- hasLabel:
14141427
label: area-System.Runtime.Intrinsics
14151428
then:

Directory.Build.props

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<Project>
2+
23
<PropertyGroup>
34
<!-- For non-SDK projects that import this file and then import Microsoft.Common.props,
45
tell Microsoft.Common.props not to import Directory.Build.props again. -->
@@ -86,18 +87,16 @@
8687

8788
<!-- The TFMs to build and test against. -->
8889
<PropertyGroup>
89-
<NetCoreAppCurrentVersion>9.0</NetCoreAppCurrentVersion>
90+
<NetCoreAppCurrentVersion>10.0</NetCoreAppCurrentVersion>
9091
<NetCoreAppCurrentIdentifier>.NETCoreApp</NetCoreAppCurrentIdentifier>
9192
<NetCoreAppCurrentTargetFrameworkMoniker>$(NetCoreAppCurrentIdentifier),Version=v$(NetCoreAppCurrentVersion)</NetCoreAppCurrentTargetFrameworkMoniker>
9293
<MicrosoftNetCoreAppFrameworkName>Microsoft.NETCore.App</MicrosoftNetCoreAppFrameworkName>
9394
<NetCoreAppCurrentBrandName>.NET $(NetCoreAppCurrentVersion)</NetCoreAppCurrentBrandName>
9495
<NetCoreAppCurrent>net$(NetCoreAppCurrentVersion)</NetCoreAppCurrent>
9596

9697
<!-- The previous supported .NET version. -->
97-
<NetCoreAppPreviousVersion>8.0</NetCoreAppPreviousVersion>
98-
<!-- For the .NET 9 release, set NetCoreAppPrevious to empty as NuGet has issues
99-
with duplicate TFMs (when using both NetCoreAppPrevious and NetCoreAppMinimum). -->
100-
<NetCoreAppPrevious />
98+
<NetCoreAppPrevious>net9.0</NetCoreAppPrevious>
99+
<NetCoreAppPrevious Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NetCoreAppCurrent)</NetCoreAppPrevious>
101100

102101
<!-- The minimum supported .NET version. -->
103102
<NetCoreAppMinimum>net8.0</NetCoreAppMinimum>
@@ -122,8 +121,9 @@
122121
<NetFrameworkCurrent Condition="'$(DotNetBuildSourceOnly)' == 'true'" />
123122

124123
<!-- Important: Set this to the GA version (or a close approximation) during servicing and adjust the TFM property below. -->
125-
<ApiCompatNetCoreAppBaselineVersion>8.0.0</ApiCompatNetCoreAppBaselineVersion>
126-
<ApiCompatNetCoreAppBaselineTFM>net8.0</ApiCompatNetCoreAppBaselineTFM>
124+
<!-- TODO: Update to 9.0.0 when .NET 9 is generally available. https://github.com/dotnet/runtime/issues/106598 -->
125+
<ApiCompatNetCoreAppBaselineVersion>9.0.0-preview.7.24405.7</ApiCompatNetCoreAppBaselineVersion>
126+
<ApiCompatNetCoreAppBaselineTFM>net9.0</ApiCompatNetCoreAppBaselineTFM>
127127
</PropertyGroup>
128128

129129
<PropertyGroup Label="CalculateConfiguration">
@@ -473,6 +473,8 @@
473473
<PropertyGroup Condition="'$(IsTestProject)' == 'true' or '$(IsTestSupportProject)' == 'true' or '$(IsTrimmingTestProject)' == 'true'">
474474
<!-- we need to re-enable BinaryFormatter within test projects since some tests exercise these code paths to ensure compat -->
475475
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
476+
<!-- For DotNetBuildSourceOnly, only the bundled BinaryFormatter is built which does not support serialization. -->
477+
<EnableUnsafeBinaryFormatterSerialization Condition="'$(DotNetBuildSourceOnly)' == 'true'">false</EnableUnsafeBinaryFormatterSerialization>
476478
<!-- don't warn on usage of BinaryFormatter or legacy serialization infrastructure from test projects -->
477479
<NoWarn>$(NoWarn);SYSLIB0011;SYSLIB0050;SYSLIB0051</NoWarn>
478480
<!-- don't warn about unnecessary trim warning suppressions. can be removed with preview 6. -->

Directory.Build.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
Define this here (not just in Versions.props) because the SDK resets it
4040
unconditionally in Microsoft.NETCoreSdk.BundledVersions.props.
4141
-->
42-
<NETCoreAppMaximumVersion>$(MajorVersion).$(MinorVersion)</NETCoreAppMaximumVersion>
42+
<NETCoreAppMaximumVersion>$(NetCoreAppCurrentVersion)</NETCoreAppMaximumVersion>
4343
<!-- SDK sets product to assembly but we want it to be our product name -->
4444
<Product>Microsoft%AE .NET</Product>
4545
<!-- Use the .NET product branding version for informational version description -->
@@ -143,12 +143,12 @@
143143
<Target Name="FilterTransitiveProjectReferences"
144144
AfterTargets="IncludeTransitiveProjectReferences"
145145
Condition="'$(DisableTransitiveProjectReferences)' != 'true' and
146-
'@(DefaultReferenceExclusion)' != ''">
146+
('@(DefaultReferenceExclusion)' != '' or '@(ProjectReferenceExclusion)' != '')">
147147
<ItemGroup>
148148
<_transitiveProjectReferenceWithProjectName Include="@(ProjectReference->Metadata('NuGetPackageId'))"
149149
OriginalIdentity="%(Identity)" />
150150
<_transitiveIncludedProjectReferenceWithProjectName Include="@(_transitiveProjectReferenceWithProjectName)"
151-
Exclude="@(DefaultReferenceExclusion)" />
151+
Exclude="@(DefaultReferenceExclusion);@(ProjectReferenceExclusion)" />
152152
<_transitiveExcludedProjectReferenceWithProjectName Include="@(_transitiveProjectReferenceWithProjectName)"
153153
Exclude="@(_transitiveIncludedProjectReferenceWithProjectName)" />
154154
<ProjectReference Remove="@(_transitiveExcludedProjectReferenceWithProjectName->Metadata('OriginalIdentity'))" />

NuGet.config

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@
1616
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
1717
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
1818
<add key="dotnet-libraries" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json" />
19-
<!-- Required for System.CommandLine SB intermediate -->
2019
<add key="dotnet-libraries-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries-transport/nuget/v3/index.json" />
20+
<!-- TODO: Remove dotnet9 feeds when all dependencies moved to the dotnet10 feeds. https://github.com/dotnet/runtime/issues/106593 -->
2121
<add key="dotnet9" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" />
2222
<add key="dotnet9-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" />
2323
<add key="dotnet10" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json" />
2424
<add key="dotnet10-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10-transport/nuget/v3/index.json" />
2525
</packageSources>
26+
<auditSources>
27+
<clear />
28+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
29+
</auditSources>
2630
<disabledPackageSources>
2731
<clear />
2832
</disabledPackageSources>

THIRD-PARTY-NOTICES.TXT

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,27 @@ written authorization of the copyright holder.
6969
License notice for zlib-ng
7070
-----------------------
7171

72-
https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md
72+
https://github.com/zlib-ng/zlib-ng/blob/d54e3769be0c522015b784eca2af258b1c026107/LICENSE.md
7373

7474
(C) 1995-2024 Jean-loup Gailly and Mark Adler
7575

76-
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
76+
This software is provided 'as-is', without any express or implied
77+
warranty. In no event will the authors be held liable for any damages
78+
arising from the use of this software.
7779

78-
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
80+
Permission is granted to anyone to use this software for any purpose,
81+
including commercial applications, and to alter it and redistribute it
82+
freely, subject to the following restrictions:
7983

80-
The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
84+
1. The origin of this software must not be misrepresented; you must not
85+
claim that you wrote the original software. If you use this software
86+
in a product, an acknowledgment in the product documentation would be
87+
appreciated but is not required.
8188

82-
Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
89+
2. Altered source versions must be plainly marked as such, and must not be
90+
misrepresented as being the original software.
8391

84-
This notice may not be removed or altered from any source distribution.
92+
3. This notice may not be removed or altered from any source distribution.
8593

8694
License notice for LinuxTracepoints
8795
-----------------------------------

docs/area-owners.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ Note: Editing this file doesn't update the mapping used by `@msftbot` for area-s
7474
| area-System.Composition | @ericstj | @dotnet/area-system-composition | |
7575
| area-System.Configuration | @ericstj | @dotnet/area-system-configuration | |
7676
| area-System.Console | @jeffhandley | @dotnet/area-system-console | |
77-
| area-System.Data | @sammonort | @ajcvickers @davoudeshtehari @david-engel @roji | <ul><li>Odbc, OleDb - @saurabh500</li></ul> |
77+
| area-System.Data | @sammonort | @ajcvickers @roji | <ul><li>Odbc, OleDb - @saurabh500</li></ul> |
7878
| area-System.Data.Odbc | @sammonort | @ajcvickers @roji | |
7979
| area-System.Data.OleDB | @sammonort | @ajcvickers @roji | |
80-
| area-System.Data.SqlClient | @David-Engel | @davoudeshtehari @david-engel @jrahnama | Archived component - limited churn/contributions (see https://devblogs.microsoft.com/dotnet/introducing-the-new-microsoftdatasqlclient/) |
80+
| area-System.Data.SqlClient | @David-Engel | @cheenamalhotra @david-engel | Archived component - limited churn/contributions (see https://devblogs.microsoft.com/dotnet/introducing-the-new-microsoftdatasqlclient/) |
8181
| area-System.DateTime | @ericstj | @dotnet/area-system-datetime | System namespace APIs related to dates and times, including DateOnly, DateTime, DateTimeKind, DateTimeOffset, DayOfWeek, TimeOnly, TimeSpan, TimeZone, and TimeZoneInfo |
8282
| area-System.Diagnostics | @tommcdon | @dotnet/area-system-diagnostics | |
8383
| area-System.Diagnostics-coreclr | @tommcdon | @dotnet/area-system-diagnostics-coreclr | |

docs/coding-guidelines/adding-api-guidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ the implementation without compat concerns in future releases.
2424

2525
### Determine target framework
2626

27-
`net9.0` is the target framework version currently under development and the new apis
28-
should be added to `net9.0`. [More Information on TargetFrameworks](https://learn.microsoft.com/dotnet/standard/frameworks)
27+
`net10.0` is the target framework version currently under development and the new apis
28+
should be added to `net10.0`. [More Information on TargetFrameworks](https://learn.microsoft.com/dotnet/standard/frameworks)
2929

3030
## Making the changes in repo
3131

docs/coding-guidelines/libraries-packaging.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ In order to mitigate design-time/build-time performance issues with source gener
150150
### NETStandard Compatibility Error infrastructure
151151
For libraries that support .NETStandard, the _.NETStandard Compatibility packaging infrastructure_ makes sure that out-of-support target frameworks like _netcoreapp3.1_ or _net461_ are unsupported by the produced package. That enables library authors to support .NETStandard but explicitly not support unsupported .NETStandard compatible target frameworks.
152152

153-
The infrastructure generates a targets file that throws a user readable Error when msbuild invokes a project with an unsupported target framework. In addition to the targets file, placeholder files `_._` are placed into the minimum supported .NETStandard compatible target framework's package folder (as time of writing `net6.0` and `net462`), so that the generated targets files don't apply for that and any newer/compatible target framework. Example:
153+
The infrastructure generates a targets file that throws a user readable Error when msbuild invokes a project with an unsupported target framework. In addition to the targets file, placeholder files `_._` are placed into the minimum supported .NETStandard compatible target framework's package folder (as time of writing `net8.0` and `net462`), so that the generated targets files don't apply for that and any newer/compatible target framework. Example:
154154

155155
```
156156
buildTransitive\net461\Microsoft.Extensions.Configuration.UserSecrets.targets <- This file is generated and throws an Error
157157
buildTransitive\net462\_._
158158
buildTransitive\netcoreapp2.0\Microsoft.Extensions.Configuration.UserSecrets.targets <- This file is generated and throws an Error
159-
buildTransitive\net6.0\_._
159+
buildTransitive\net8.0\_._
160160
```
161161

162162
Whenever a library wants to author their own set of props and targets files (i.e. for source generators) and the above mentioned infrastructure kicks in (because the library targets .NETStandard), such files **must be included not only for the .NETStandard target framework but also for the specific minimum supported target frameworks**. The _.NETStandard Compatibility packaging infrastructure_ then omits the otherwise necessary placeholder files. Example:
@@ -166,7 +166,7 @@ buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.ta
166166
buildTransitive\net461\Microsoft.Extensions.Configuration.UserSecrets.targets <- This file is generated and throws an Error
167167
buildTransitive\net462\Microsoft.Extensions.Configuration.UserSecrets.targets <- This file is hand authored and doesn't throw an error
168168
buildTransitive\netcoreapp2.0\Microsoft.Extensions.Configuration.UserSecrets.targets <- This file is generated and throws an Error
169-
buildTransitive\net6.0\Microsoft.Extensions.Configuration.UserSecrets.targets <- This file is hand authored and doesn't throw an error
169+
buildTransitive\net8.0\Microsoft.Extensions.Configuration.UserSecrets.targets <- This file is hand authored and doesn't throw an error
170170
```
171171

172172
The above layout is achieved via the following item declaration in the project file. In that case, the hand authored msbuild props and/or targets files are located in a buildTransitive folder in the project tree. Note that the trailing directory separators are required.

0 commit comments

Comments
 (0)