Skip to content

Commit c242c38

Browse files
authored
Merge branch 'main' into copilot/fix-50641
2 parents e4c52b4 + f099c19 commit c242c38

File tree

403 files changed

+7461
-4163
lines changed

Some content is hidden

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

403 files changed

+7461
-4163
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ dotnet_diagnostic.IDE0200.severity = none
280280
dotnet_diagnostic.IDE0240.severity = warning
281281

282282
# Additional rules for template engine source code
283+
284+
# Default severity for analyzer diagnostics with category 'StyleCop.CSharp.SpacingRules'
285+
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.SpacingRules.severity = none
286+
283287
[{src,test}/**{Microsoft.TemplateEngine.*,dotnet-new?*}/**.cs]
284288
# Default analyzed API surface = 'public' (public APIs)
285289
dotnet_code_quality.api_surface = public

Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
<NetCurrent>net10.0</NetCurrent>
4949
<NetToolMinimum Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NetCurrent)</NetToolMinimum>
5050
<ToolsetTargetFramework>$(SdkTargetFramework)</ToolsetTargetFramework>
51-
<VisualStudioServiceTargetFramework>net8.0</VisualStudioServiceTargetFramework>
51+
<VisualStudioServiceTargetFramework>net9.0</VisualStudioServiceTargetFramework>
52+
<VisualStudioTargetFramework>net472</VisualStudioTargetFramework>
5253

5354
<!-- We used to have scenarios where the MSBuild host (VSMac) had an older .NET, but don't any more. -->
5455
<ResolverTargetFramework>$(SdkTargetFramework)</ResolverTargetFramework>

Directory.Build.targets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@
9696
<!-- Include SourcePackage.editorconfig in all source packages. -->
9797
<Target Name="_AddEditorConfigToSourcePackage">
9898
<ItemGroup>
99-
<TfmSpecificPackageFile Include="$(MSBuildThisFileDirectory)eng\SourcePackage.editorconfig" PackagePath="contentFiles/cs/$(TargetFramework)/.editorconfig" Condition="'$(TargetFrameworkIdentifier)' != '.NETStandard'" />
99+
<TfmSpecificPackageFile Include="$(MSBuildThisFileDirectory)eng\SourcePackage.editorconfig" PackagePath="contentFiles/cs/$(TargetFramework)/.editorconfig" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
100100
<TfmSpecificPackageFile Include="$(MSBuildThisFileDirectory)eng\SourcePackage.netstandard.editorconfig" PackagePath="contentFiles/cs/$(TargetFramework)/.editorconfig" Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'" />
101+
<TfmSpecificPackageFile Include="$(MSBuildThisFileDirectory)eng\SourcePackage.netframework.editorconfig" PackagePath="contentFiles/cs/$(TargetFramework)/.editorconfig" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" />
101102
</ItemGroup>
102103
</Target>
103104

Directory.Packages.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="$(MicrosoftExtensionsLoggingAbstractionsVersion)" />
6060
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionsLoggingConsoleVersion)" />
6161
<PackageVersion Include="Microsoft.Extensions.ObjectPool" Version="$(MicrosoftExtensionsObjectPoolPackageVersion)" />
62-
<PackageVersion Include="Microsoft.Extensions.Configuration.Ini" Version="$(MicrosoftExtensionsConfigurationIniVersion)" />
6362
<PackageVersion Include="Microsoft.FSharp.Compiler" Version="$(MicrosoftFSharpCompilerPackageVersion)" />
6463
<PackageVersion Include="Microsoft.Net.Compilers.Toolset.Framework" Version="$(MicrosoftNetCompilersToolsetFrameworkPackageVersion)" />
6564
<PackageVersion Include="Microsoft.Management.Infrastructure" Version="3.0.0" />

documentation/general/dotnet-run-file.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ We always need to re-run MSBuild if implicit build files like `Directory.Build.p
295295
from `.cs` files, the only relevant MSBuild inputs are the `#:` directives,
296296
hence we can first check the `.cs` file timestamps and for those that have changed, compare the sets of `#:` directives.
297297
If only `.cs` files change, it is enough to invoke `csc.exe` (directly or via a build server)
298-
re-using command-line arguments that the last MSBuild invocation passed to the compiler.
298+
re-using command-line arguments that the last MSBuild invocation passed to the compiler
299+
(you can opt out of this via an MSBuild property `FileBasedProgramCanSkipMSBuild=false`).
299300
If no inputs change, it is enough to start the target executable without invoking the build at all.
300301

301302
## Alternatives and future work

documentation/manpages/sdk/dotnet-nuget-locals.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
. ftr VB CB
1515
. ftr VBI CBI
1616
.\}
17-
.TH "dotnet-nuget-locals" "1" "2025-08-15" "" ".NET Documentation"
17+
.TH "dotnet-nuget-locals" "1" "2025-08-29" "" ".NET Documentation"
1818
.hy
1919
.SH dotnet nuget locals
2020
.PP

documentation/manpages/sdk/dotnet-nuget-push.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
. ftr VB CB
1515
. ftr VBI CBI
1616
.\}
17-
.TH "dotnet-nuget-push" "1" "2025-08-15" "" ".NET Documentation"
17+
.TH "dotnet-nuget-push" "1" "2025-08-29" "" ".NET Documentation"
1818
.hy
1919
.SH dotnet nuget push
2020
.PP

documentation/manpages/sdk/dotnet-nuget-sign.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
. ftr VB CB
1515
. ftr VBI CBI
1616
.\}
17-
.TH "dotnet-nuget-sign" "1" "2025-08-15" "" ".NET Documentation"
17+
.TH "dotnet-nuget-sign" "1" "2025-08-29" "" ".NET Documentation"
1818
.hy
1919
.SH dotnet nuget sign
2020
.PP

documentation/manpages/sdk/dotnet-publish.1

Lines changed: 4 additions & 6 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-publish" "1" "2025-06-13" "" ".NET Documentation"
17+
.TH "dotnet-publish" "1" "2025-08-29" "" ".NET Documentation"
1818
.hy
1919
.SH dotnet publish
2020
.PP
@@ -57,7 +57,7 @@ The application\[cq]s dependencies, which are copied from the NuGet cache into t
5757
The \f[V]dotnet publish\f[R] command\[cq]s output is ready for deployment to a hosting system (for example, a server, PC, Mac, laptop) for execution.
5858
It\[cq]s the only officially supported way to prepare the application for deployment.
5959
Depending on the type of deployment that the project specifies, the hosting system may or may not have the .NET shared runtime installed on it.
60-
For more information, see Publish .NET apps with the .NET CLI.
60+
For more information, see .NET application publishing overview.
6161
.SS Implicit restore
6262
.PP
6363
You don\[cq]t have to run \f[V]dotnet restore\f[R] because it\[cq]s run implicitly by all commands that require a restore to occur, such as \f[V]dotnet new\f[R], \f[V]dotnet build\f[R], \f[V]dotnet run\f[R], \f[V]dotnet test\f[R], \f[V]dotnet publish\f[R], and \f[V]dotnet pack\f[R].
@@ -346,7 +346,7 @@ Available since .NET 6.
346346
.PP
347347
Publishes the .NET runtime with your application so the runtime doesn\[cq]t need to be installed on the target machine.
348348
Default is \f[V]true\f[R] if a runtime identifier is specified and the project is an executable project (not a library project).
349-
For more information, see .NET application publishing and Publish .NET apps with the .NET CLI.
349+
For more information, see Self-contained deployment.
350350
.PP
351351
If this option is used without specifying \f[V]true\f[R] or \f[V]false\f[R], the default is \f[V]true\f[R].
352352
In that case, don\[cq]t put the solution or project argument immediately after \f[V]--self-contained\f[R], because \f[V]true\f[R] or \f[V]false\f[R] is expected in that position.
@@ -369,7 +369,7 @@ The URI of the NuGet package source to use during the restore operation.
369369
.PP
370370
Publishes the application for a given runtime.
371371
For a list of Runtime Identifiers (RIDs), see the RID catalog.
372-
For more information, see .NET application publishing and Publish .NET apps with the .NET CLI.
372+
For more information, see .NET application publishing overview.
373373
If you use this option, use \f[V]--self-contained\f[R] or \f[V]--no-self-contained\f[R] also.
374374
.RE
375375
.IP \[bu] 2
@@ -495,8 +495,6 @@ dotnet publish --no-dependencies
495495
.IP \[bu] 2
496496
\&.NET application publishing overview
497497
.IP \[bu] 2
498-
Publish .NET apps with the .NET CLI
499-
.IP \[bu] 2
500498
Target frameworks
501499
.IP \[bu] 2
502500
Runtime Identifier (RID) catalog

documentation/manpages/sdk/dotnet-reference-remove.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
. ftr VB CB
1515
. ftr VBI CBI
1616
.\}
17-
.TH "dotnet-reference-remove" "1" "2025-08-15" "" ".NET Documentation"
17+
.TH "dotnet-reference-remove" "1" "2025-08-29" "" ".NET Documentation"
1818
.hy
1919
.SH dotnet reference remove
2020
.PP

0 commit comments

Comments
 (0)