Skip to content

Commit d908c78

Browse files
committed
Merge branch 'main' into wix5
2 parents 035903c + af1585c commit d908c78

File tree

489 files changed

+8719
-3408
lines changed

Some content is hidden

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

489 files changed

+8719
-3408
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.25326.2",
6+
"version": "1.1.0-beta.25358.3",
77
"commands": [
88
"darc"
99
]

.github/workflows/pr-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: PR Analysis
22
on:
33
pull_request_target:
4-
types: [opened, synchronize, labeled, unlabeled]
4+
types: [opened, synchronize, labeled, unlabeled, ready_for_review]
55
permissions:
66
contents: read
77
pull-requests: read

.github/workflows/remove-lockdown-label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ jobs:
6868
name: 'Branch Lockdown'
6969
});
7070
console.log(`Removed Branch Lockdown label from PR #${pr.number}`);
71-
}
71+
}

.vsts-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ parameters:
1818
- name: enableArm64Job
1919
displayName: Enables the ARM64 job
2020
type: boolean
21-
default: false
21+
default: true
2222

2323
variables:
2424
- template: /eng/pipelines/templates/variables/sdk-defaults.yml

Directory.Build.props

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@
9696
<MicrosoftNETCoreAppHostPackageVersion>$(MicrosoftNETCoreAppRefPackageVersion)</MicrosoftNETCoreAppHostPackageVersion>
9797
<MicrosoftNETCoreAppRuntimePackageVersion>$(MicrosoftNETCoreAppRefPackageVersion)</MicrosoftNETCoreAppRuntimePackageVersion>
9898
<MicrosoftAspNetCoreAppRuntimePackageVersion>$(MicrosoftAspNetCoreAppRefPackageVersion)</MicrosoftAspNetCoreAppRuntimePackageVersion>
99-
<MicrosoftWindowsDesktopAppRuntimePackageVersion>$(MicrosoftWindowsDesktopAppRefPackageVersion)</MicrosoftWindowsDesktopAppRuntimePackageVersion>
99+
<!-- These are set based on the runtime shared framework and internal versions. This is because windowsdesktop is not built in
100+
all VMR builds, but its version numbers are used to generate various bits of information. The VMR always aligns the version
101+
numbers of the shared frameworks. -->
102+
<MicrosoftWindowsDesktopAppRuntimePackageVersion>$(MicrosoftNETCoreAppRefPackageVersion)</MicrosoftWindowsDesktopAppRuntimePackageVersion>
103+
<MicrosoftWindowsDesktopAppRefPackageVersion>$(MicrosoftNETCoreAppRefPackageVersion)</MicrosoftWindowsDesktopAppRefPackageVersion>
104+
<MicrosoftNETSdkWindowsDesktopPackageVersion>$(MicrosoftNETCorePlatformsPackageVersion)</MicrosoftNETSdkWindowsDesktopPackageVersion>
105+
<MicrosoftWindowsDesktopAppInternalPackageVersion>$(MicrosoftNETCorePlatformsPackageVersion)</MicrosoftWindowsDesktopAppInternalPackageVersion>
100106

101107
<HostFxrVersion>$(MicrosoftNETCoreAppRuntimePackageVersion)</HostFxrVersion>
102108
<SharedHostVersion>$(MicrosoftNETCoreAppRuntimePackageVersion)</SharedHostVersion>

NuGet.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<!-- Begin: Package sources from dotnet-aspire -->
77
<!-- End: Package sources from dotnet-aspire -->
88
<!-- Begin: Package sources from dotnet-runtime -->
9+
<add key="darc-int-dotnet-runtime-3875b54" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-3875b54e/nuget/v3/index.json" />
910
<!-- End: Package sources from dotnet-runtime -->
1011
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
1112
<add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
@@ -37,6 +38,7 @@
3738
<clear />
3839
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
3940
<!-- Begin: Package sources from dotnet-runtime -->
41+
<add key="darc-int-dotnet-runtime-3875b54" value="true" />
4042
<!-- End: Package sources from dotnet-runtime -->
4143
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
4244
</disabledPackageSources>

documentation/general/dotnet-run-file.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ Command `dotnet publish file.cs` is also supported for file-based programs.
9898
Note that file-based apps have implicitly set `PublishAot=true`, so publishing uses Native AOT (and building reports AOT warnings).
9999
To opt out, use `#:property PublishAot=false` directive in your `.cs` file.
100100

101+
Command `dotnet clean file.cs` can be used to clean build artifacts of the file-based program.
102+
101103
## Entry points
102104

103105
If a file is given to `dotnet run`, it has to be an *entry-point file*, otherwise an error is reported.
@@ -123,6 +125,10 @@ Similarly, implicit build files like `Directory.Build.props` or `Directory.Packa
123125
> [!CAUTION]
124126
> Multi-file support is postponed for .NET 11.
125127
> In .NET 10, only the single file passed as the command-line argument to `dotnet run` is part of the compilation.
128+
> Specifically, the virtual project has properties `EnableDefaultCompileItems=false` and `EnableDefaultEmbeddedResourceItems=false`
129+
> (which can be customized via `#:property` directives), and a `Compile` item for the entry point file.
130+
> During [conversion](#grow-up), any `Content`, `None`, `Compile`, and `EmbeddedResource` items that do not have metadata `ExcludeFromFileBasedAppConversion=true`
131+
> and that are files inside the entry point file's directory tree are copied to the converted directory.
126132
127133
### Nested files
128134

@@ -364,9 +370,8 @@ or as the first argument if it makes sense for them.
364370
We could also add `dotnet compile` command that would be the equivalent of `dotnet build` but for file-based programs
365371
(because "compiling" might make more sense for file-based programs than "building").
366372

367-
`dotnet clean` could be extended to support cleaning [the output directory](#build-outputs),
368-
e.g., via `dotnet clean --file-based-program <path-to-entry-point>`
369-
or `dotnet clean --all-file-based-programs`.
373+
`dotnet clean` could be extended to support cleaning all file-based app outputs,
374+
e.g., `dotnet clean --all-file-based-apps`.
370375

371376
Adding references via `dotnet package add`/`dotnet reference add` could be supported for file-based programs as well,
372377
i.e., the command would add a `#:package`/`#:project` directive to the top of a `.cs` file.

documentation/manpages/sdk/dotnet-restore.1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
. ftr VB CB
1515
. ftr VBI CBI
1616
.\}
17-
.TH "dotnet-restore" "1" "2025-06-13" "" ".NET Documentation"
17+
.TH "dotnet-restore" "1" "2025-06-30" "" ".NET Documentation"
1818
.hy
1919
.SH dotnet restore
2020
.PP
@@ -387,8 +387,8 @@ You can configure the level at which auditing will fail by setting the \f[V]<NuG
387387
Possible values are \f[V]low\f[R], \f[V]moderate\f[R], \f[V]high\f[R], and \f[V]critical\f[R].
388388
For example if you only want to see moderate, high, and critical advisories, you can set the property to \f[V]moderate\f[R].
389389
.PP
390-
Starting in .NET 9, NuGet audits both \f[I]direct\f[R] and \f[I]transitive\f[R] package references, by default.
391-
In .NET 8, only \f[I]direct\f[R] package references are audited.
390+
In .NET 8 and .NET 9, only \f[I]direct\f[R] package references are audited by default.
391+
Starting in .NET 10, NuGet audits both \f[I]direct\f[R] and \f[I]transitive\f[R] package references by default.
392392
You can change the mode by setting the \f[V]<NuGetAuditMode>\f[R] MSBuild property to \f[V]direct\f[R] or \f[V]all\f[R].
393393
.PP
394394
For more information, see Auditing package dependencies for security vulnerabilities.

documentation/manpages/sdk/dotnet-tool-update.1

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
. ftr VB CB
1515
. ftr VBI CBI
1616
.\}
17-
.TH "dotnet-tool-update" "1" "2025-06-13" "" ".NET Documentation"
17+
.TH "dotnet-tool-update" "1" "2025-06-30" "" ".NET Documentation"
1818
.hy
1919
.SH dotnet tool update
2020
.PP
@@ -27,23 +27,23 @@ dotnet-tool-update - Updates the specified .NET tool on your machine.
2727
.nf
2828
\f[C]
2929
dotnet tool update <PACKAGE_ID> -g|--global
30-
[--add-source <SOURCE>] [--allow-downgrade]
30+
[--add-source <SOURCE>] [--all] [--allow-downgrade]
3131
[--configfile <FILE>]
3232
[--disable-parallel] [--framework <FRAMEWORK>]
3333
[--ignore-failed-sources] [--interactive]
3434
[--no-cache] [--prerelease]
3535
[-v|--verbosity <LEVEL>] [--version <VERSION>]
3636

3737
dotnet tool update <PACKAGE_ID> --tool-path <PATH>
38-
[--add-source <SOURCE>] [--allow-downgrade]
38+
[--add-source <SOURCE>] [--all] [--allow-downgrade]
3939
[--configfile <FILE>]
4040
[--disable-parallel] [--framework <FRAMEWORK>]
4141
[--ignore-failed-sources] [--interactive]
4242
[--no-cache] [--prerelease]
4343
[-v|--verbosity <LEVEL>] [--version <VERSION>]
4444

4545
dotnet tool update <PACKAGE_ID> --local
46-
[--add-source <SOURCE>] [--allow-downgrade]
46+
[--add-source <SOURCE>] [--all] [--allow-downgrade]
4747
[--configfile <FILE>]
4848
[--disable-parallel] [--framework <FRAMEWORK>]
4949
[--ignore-failed-sources] [--interactive]
@@ -84,6 +84,12 @@ If the same package and version is in multiple feeds, the fastest feed wins.
8484
For more information, see What happens when a NuGet package is installed?.
8585
.RE
8686
.IP \[bu] 2
87+
\f[B]\f[VB]--all\f[B]\f[R]
88+
.RS 2
89+
.PP
90+
Update all tools.
91+
.RE
92+
.IP \[bu] 2
8793
\f[B]\f[VB]--allow-downgrade\f[B]\f[R]
8894
.RS 2
8995
.PP

documentation/project-docs/developer-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In order to build and test the .NET Core Command-line Interface (CLI), you need
88
### For Windows
99

1010
1. git (available from the [Git Website](http://www.git-scm.com/)) on the PATH.
11-
2. MSVC, C++ CMake Tools, and C++ ATL through the Visual Studio Installer.
11+
2. MSVC, C++ CMake Tools, and C++ ATL through the Visual Studio Installer via the "Desktop development with C++" workload.
1212

1313
### For Linux
1414

0 commit comments

Comments
 (0)