I'm using .NET v8.0.202, and the help of dotnet publish --help states:
-c, --configuration <CONFIGURATION> The configuration to publish for. The default is 'Release' for NET 8.0 projects and
above, but 'Debug' for older projects.
which should be true because when I don't specify the configuration, it creates the Release folder:
$ dotnet publish
MSBuild version 17.9.6+a4ecab324 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
CLI -> X:\src\route53-ddns-updater-dotnet\CLI\bin\Release\net8.0\CLI.dll
CLI -> X:\src\route53-ddns-updater-dotnet\CLI\bin\Release\net8.0\publish\
Because I am new to the .Net ecosystem and I am not sure if it is me or the docs who got something wrong, I point this out first rather than create a PR.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: 6feb46a5-46de-a4ec-3549-3d4df790de03
Version Independent ID: 5851a635-12ab-af94-2139-f217a63fd36a
Describe the issue or suggestion
I'm using .NET v8.0.202, and the help of
dotnet publish --help
states:which should be true because when I don't specify the configuration, it creates the
Release
folder:Contrast to this, the documentation in
docs/core/tutorials/publishing-with-visual-studio-code.md
states: https://github.com/dotnet/docs/blob/0dd37de7264abac2c869eceb977fdba77edbaa23/docs/core/tutorials/publishing-with-visual-studio-code.md?plain=1#L31C4-L36C1Because I am new to the .Net ecosystem and I am not sure if it is me or the docs who got something wrong, I point this out first rather than create a PR.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
Associated WorkItem - 307292