diff --git a/NuGet.config b/NuGet.config
index 0815f41ac8a4..c9ce85ce0ea4 100644
--- a/NuGet.config
+++ b/NuGet.config
@@ -6,6 +6,7 @@
+
diff --git a/documentation/manpages/sdk/dotnet-add-package.1 b/documentation/manpages/sdk/dotnet-add-package.1
index d9f7108b8a38..8dd9f4cc931b 100644
--- a/documentation/manpages/sdk/dotnet-add-package.1
+++ b/documentation/manpages/sdk/dotnet-add-package.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-add-package" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-add-package" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet add package
.PP
diff --git a/documentation/manpages/sdk/dotnet-add-reference.1 b/documentation/manpages/sdk/dotnet-add-reference.1
index 258c82842081..f104749c4d79 100644
--- a/documentation/manpages/sdk/dotnet-add-reference.1
+++ b/documentation/manpages/sdk/dotnet-add-reference.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-add-reference" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-add-reference" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet add reference
.PP
diff --git a/documentation/manpages/sdk/dotnet-build-server.1 b/documentation/manpages/sdk/dotnet-build-server.1
index 52fd466840e8..323c2855a2ff 100644
--- a/documentation/manpages/sdk/dotnet-build-server.1
+++ b/documentation/manpages/sdk/dotnet-build-server.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-build-server" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-build-server" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet build-server
.PP
diff --git a/documentation/manpages/sdk/dotnet-build.1 b/documentation/manpages/sdk/dotnet-build.1
index 1d2056f0106c..20ad8124e925 100644
--- a/documentation/manpages/sdk/dotnet-build.1
+++ b/documentation/manpages/sdk/dotnet-build.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-build" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-build" "1" "2022-10-21" "" ".NET Documentation"
.hy
.SH dotnet build
.PP
@@ -31,7 +31,7 @@ dotnet build [|] [-a|--arch ]
[--force] [--interactive] [--no-dependencies] [--no-incremental]
[--no-restore] [--nologo] [--no-self-contained] [--os ]
[-o|--output ] [-r|--runtime ]
- [--self-contained [true|false]] [--source ]
+ [--self-contained [true|false]] [--source ] [--use-current-runtime, --ucr [true|false]]
[-v|--verbosity ] [--version-suffix ]
dotnet build -h|--help
@@ -140,6 +140,7 @@ The default for most projects is \f[V]Debug\f[R], but you can override the build
.PP
Compiles for a specific framework.
The framework must be defined in the project file.
+Examples: \f[V]net7.0\f[R], \f[V]net462\f[R].
.RE
.IP \[bu] 2
\f[B]\f[VB]--force\f[B]\f[R]
@@ -220,6 +221,7 @@ Available since .NET 6.
Specifies the target runtime.
For a list of Runtime Identifiers (RIDs), see the RID catalog.
If you use this option with .NET 6 SDK, use \f[V]--self-contained\f[R] or \f[V]--no-self-contained\f[R] also.
+If not specified, the default is to build for the current OS and architecture.
.RE
.IP \[bu] 2
\f[B]\f[VB]--self-contained [true|false]\f[B]\f[R]
@@ -245,6 +247,14 @@ The default is \f[V]minimal\f[R].
For more information, see .
.RE
.IP \[bu] 2
+\f[B]\f[VB]--use-current-runtime, --ucr [true|false]\f[B]\f[R]
+.RS 2
+.PP
+Sets the \f[V]RuntimeIdentifier\f[R] to a platform portable \f[V]RuntimeIdentifier\f[R] based on the one of your machine.
+This happens implicitly with properties that require a \f[V]RuntimeIdentifier\f[R], such as \f[V]SelfContained\f[R], \f[V]PublishAot\f[R], \f[V]PublishSelfContained\f[R], \f[V]PublishSingleFile\f[R], and \f[V]PublishReadyToRun\f[R].
+If the property is set to false, that implicit resolution will no longer occur.
+.RE
+.IP \[bu] 2
\f[B]\f[VB]--version-suffix \f[B]\f[R]
.RS 2
.PP
diff --git a/documentation/manpages/sdk/dotnet-clean.1 b/documentation/manpages/sdk/dotnet-clean.1
index 74ace385b2c6..cc1000e3a901 100644
--- a/documentation/manpages/sdk/dotnet-clean.1
+++ b/documentation/manpages/sdk/dotnet-clean.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-clean" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-clean" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet clean
.PP
diff --git a/documentation/manpages/sdk/dotnet-dev-certs.1 b/documentation/manpages/sdk/dotnet-dev-certs.1
new file mode 100644
index 000000000000..26af672b66b3
--- /dev/null
+++ b/documentation/manpages/sdk/dotnet-dev-certs.1
@@ -0,0 +1,320 @@
+'\" t
+.\" Automatically generated by Pandoc 2.18
+.\"
+.\" Define V font for inline verbatim, using C font in formats
+.\" that render this, and otherwise B font.
+.ie "\f[CB]x\f[]"x" \{\
+. ftr V B
+. ftr VI BI
+. ftr VB B
+. ftr VBI BI
+.\}
+.el \{\
+. ftr V CR
+. ftr VI CI
+. ftr VB CB
+. ftr VBI CBI
+.\}
+.TH "dotnet-dev-certs" "1" "2022-10-10" "" ".NET Documentation"
+.hy
+.SH dotnet dev-certs
+.PP
+\f[B]This article applies to:\f[R] \[u2714]\[uFE0F] .NET Core 3.1 SDK and later versions
+.SH NAME
+.PP
+dotnet-dev-certs - Generates a self-signed certificate to enable HTTPS use in development.
+.SH SYNOPSIS
+.IP
+.nf
+\f[C]
+dotnet dev-certs https
+ [-c|--check] [--clean] [-ep|--export-path ]
+ [--format] [-i|--import] [-np|--no-password]
+ [-p|--password] [-q|--quiet] [-t|--trust]
+ [-v|--verbose] [--version]
+
+dotnet dev-certs https -h|--help
+\f[R]
+.fi
+.SH DESCRIPTION
+.PP
+The \f[V]dotnet dev-certs\f[R] command manages a self-signed certificate to enable HTTPS use in local web app development.
+Its main functions are:
+.IP \[bu] 2
+Generating a certificate for use with HTTPS endpoints during development.
+.IP \[bu] 2
+Trusting the generated certificate on the local machine.
+.IP \[bu] 2
+Removing the generated certificate from the local machine.
+.IP \[bu] 2
+Exporting a certificate in various formats so that it can be used by other tools.
+.IP \[bu] 2
+Importing an existing certificate generated by the tool into the local machine.
+.SS Commands
+.IP \[bu] 2
+\f[B]\f[VB]https\f[B]\f[R]
+.RS 2
+.PP
+\f[V]dotnet dev-certs\f[R] has only one command: \f[V]https\f[R].
+The \f[V]dotnet dev-certs https\f[R] command with no options checks if a development certificate is present in the current user\[cq]s certificate store on the machine.
+If the command finds a development certificate, it displays a message like the following example:
+.IP
+.nf
+\f[C]
+A valid HTTPS certificate is already present.
+\f[R]
+.fi
+.PP
+If the command doesn\[cq]t find a development certificate, it creates one in the current user\[cq]s certificate store, the store named \f[V]My\f[R] in the location \f[V]CurrentUser\f[R].
+The physical location of the certificate is an implementation detail of the .NET runtime that could change at any time.
+On macOS in .NET 7.0, the certificate is stored in the user key chain and as a PFX file: \f[I]\[ti]/.aspnet/https-aspnetcore-localhost-.pfx\f[R].
+.PP
+After creating a certificate, the command displays a message like the following example:
+.IP
+.nf
+\f[C]
+The HTTPS developer certificate was generated successfully.
+\f[R]
+.fi
+.PP
+By default, the newly created certificate is not trusted.
+To trust the certificate, use the \f[V]--trust\f[R] option.
+.PP
+To create a file that you can use with other tools, use the \f[V]--export-path\f[R] option.
+.RE
+.SH OPTIONS
+.IP \[bu] 2
+\f[B]\f[VB]-c|--check\f[B]\f[R]
+.RS 2
+.PP
+Checks for the existence of the development certificate but doesn\[cq]t perform any action.
+Use this option with the \f[V]--trust\f[R] option to check if the certificate is not only valid but also trusted.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]--clean\f[B]\f[R]
+.RS 2
+.PP
+Removes all HTTPS development certificates from the certificate store by using the .NET certificate store API.
+Doesn\[cq]t remove any physical files that were created by using the \f[V]--export-path\f[R] option.
+On macOS in .NET 7.0, the \f[V]dotnet dev-certs\f[R] command creates the certificate on a path on disk, and the clean operation removes that certificate file.
+.PP
+If there\[cq]s at least one certificate in the certificate store, the command displays a message like the following example:
+.IP
+.nf
+\f[C]
+Cleaning HTTPS development certificates
+from the machine.
+A prompt might get displayed to confirm
+the removal of some of the certificates.
+
+HTTPS development certificates
+successfully removed from the machine.
+\f[R]
+.fi
+.PP
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-ep|--export-path \f[B]\f[R]
+.RS 2
+.PP
+Exports the certificate to a file so that it can be used by other tools.
+Specify the full path to the exported certificate file, including the file name.
+The type of certificate files that are created depends on which options are used with \f[V]--export-path\f[R]:
+.PP
+.TS
+tab(@);
+l l.
+T{
+Options
+T}@T{
+What is exported
+T}
+_
+T{
+\f[V]--export-path\f[R]
+T}@T{
+The public part of the certificate as a PFX file.
+T}
+T{
+\f[V]--export-path --format PEM\f[R]
+T}@T{
+The public part of the certificate in PEM format.
+No separate \f[I].key\f[R] file is created.
+T}
+T{
+\f[V]--export-path --password\f[R]
+T}@T{
+The public and private parts of the certificate as a PFX file.
+T}
+T{
+\f[V]--export-path --password --format PEM\f[R]
+T}@T{
+The public and private parts of the certificate as a pair of files in PEM format.
+The key file has the \f[I].key\f[R] extension and is protected by the given password.
+T}
+T{
+\f[V]--export-path --no-password --format PEM\f[R]
+T}@T{
+The public and private parts of the certificate as a pair of files in PEM format.
+The key file has the \f[I].key\f[R] extension and is exported in plain text.
+The \f[V]--no-password\f[R] option is intended for internal testing use only.
+T}
+.TE
+.IP \[bu] 2
+\f[B]\f[VB]--format\f[B]\f[R]
+.PP
+When used with \f[V]--export-path\f[R], specifies the format of the exported certificate file.
+Valid values are \f[V]PFX\f[R] and \f[V]PEM\f[R], case-insensitive.
+\f[V]PFX\f[R] is the default.
+.PP
+The file format is independent of the file name extension.
+For example, if you specify \f[V]--format pfx\f[R] and \f[V]--export-path ./cert.pem\f[R], you\[cq]ll get a file named \f[I]cert.pem\f[R] in \f[V]PFX\f[R] format.
+.PP
+For information about the effect of this option when used with \f[V]--password\f[R], \f[V]--no-password\f[R], or without either of those options, see \[en]export-path earlier in this article.
+.IP \[bu] 2
+\f[B]\f[VB]-i|--import \f[B]\f[R]
+.PP
+Imports the provided HTTPS development certificate into the local machine.
+Requires that you also specify the \f[V]--clean\f[R] option, which clears out any existing HTTPS developer certificates.
+.PP
+\f[V]PATH\f[R] specifies a path to a PFX certificate file.
+Provide the password with the \f[V]--password\f[R] option.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-np|--no-password\f[B]\f[R]
+.RS 2
+.PP
+Doesn\[cq]t use a password for the key when exporting a certificate to PEM format files.
+The key file is exported in plain text.
+This option is not applicable to PFX files and is intended for internal testing use only.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-p|--password\f[B]\f[R]
+.RS 2
+.PP
+Specifies the password to use:
+.IP \[bu] 2
+When exporting the development certificate to a PFX or PEM file.
+.IP \[bu] 2
+When importing a PFX file.
+.PP
+When exporting with \f[V]--format PEM\f[R], the public and private parts of the certificate are exported as a pair of files in PEM format.
+The key file has the \f[I].key\f[R] extension and is protected by the given password.
+In addition to the file name specified for the \f[V]--export-path\f[R] option, the command creates another file in the same directory with the same name but a \f[I].key\f[R] extension.
+For example, the following command will generate a file named \f[I]localhost.pem\f[R] and a file named \f[I]localhost.key\f[R] in the \f[I]/home/user\f[R] directory:
+.IP
+.nf
+\f[C]
+dotnet dev-certs https --format pem -ep /home/user/localhost.pem -p $CREDENTIAL_PLACEHOLDER$
+\f[R]
+.fi
+.PP
+In the example, \f[V]$CREDENTIAL_PLACEHOLDER$\f[R] represents a password.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-q|--quiet\f[B]\f[R]
+.RS 2
+.PP
+Display warnings and errors only.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-t|--trust\f[B]\f[R]
+.RS 2
+.PP
+Trusts the certificate on the local machine.
+.PP
+If this option isn\[cq]t specified, the certificate is added to the certificate store but not to a trusted list.
+.PP
+When combined with the \f[V]--check\f[R] option, validates that the certificate is trusted.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-v|--verbose\f[B]\f[R]
+.RS 2
+.PP
+Display debug information.
+.RE
+.SH EXAMPLES
+.IP \[bu] 2
+Check for the presence of a development certificate, and create one in the default certificate store if one doesn\[cq]t exist yet.
+But don\[cq]t trust the certificate.
+.RS 2
+.IP
+.nf
+\f[C]
+dotnet dev-certs https
+\f[R]
+.fi
+.RE
+.IP \[bu] 2
+Remove any development certificates that already exist on the local machine.
+.RS 2
+.IP
+.nf
+\f[C]
+dotnet dev-certs https --clean
+\f[R]
+.fi
+.RE
+.IP \[bu] 2
+Import a PFX file.
+.RS 2
+.IP
+.nf
+\f[C]
+dotnet dev-certs https --clean --import ./certificate.pfx -p $CREDENTIAL_PLACEHOLDER$
+\f[R]
+.fi
+.PP
+In the preceding example, \f[V]$CREDENTIAL_PLACEHOLDER$\f[R] represents a password.
+.RE
+.IP \[bu] 2
+Check if a trusted development certificate is present on the local machine.
+.RS 2
+.IP
+.nf
+\f[C]
+dotnet dev-certs https --check --trust
+\f[R]
+.fi
+.RE
+.IP \[bu] 2
+Create a certificate, trust it, and export it to a PFX file.
+.RS 2
+.IP
+.nf
+\f[C]
+dotnet dev-certs https -ep ./certificate.pfx -p $CREDENTIAL_PLACEHOLDER$ --trust
+\f[R]
+.fi
+.RE
+.IP \[bu] 2
+Create a certificate, trust it, and export it to a PEM file.
+.RS 2
+.IP
+.nf
+\f[C]
+dotnet dev-certs https -ep ./certificate.crt --trust --format PEM
+\f[R]
+.fi
+.RE
+.IP \[bu] 2
+Create a certificate, trust it, and export it to a PEM file including the private key:
+.RS 2
+.IP
+.nf
+\f[C]
+dotnet dev-certs https -ep ./certificate.crt -p $CREDENTIAL_PLACEHOLDER$ --trust --format PEM
+\f[R]
+.fi
+.RE
+.SH SEE ALSO
+.IP \[bu] 2
+Generate self-signed certificates with the .NET CLI
+.IP \[bu] 2
+Enforce HTTPS in ASP.NET Core
+.IP \[bu] 2
+Troubleshoot certificate problems such as certificate not trusted
+.IP \[bu] 2
+Hosting ASP.NET Core images with Docker over HTTPS
+.IP \[bu] 2
+Hosting ASP.NET Core images with Docker Compose over HTTPS
diff --git a/documentation/manpages/sdk/dotnet-environment-variables.7 b/documentation/manpages/sdk/dotnet-environment-variables.7
index 172451e860ca..36d82d36ec8e 100644
--- a/documentation/manpages/sdk/dotnet-environment-variables.7
+++ b/documentation/manpages/sdk/dotnet-environment-variables.7
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-environment-variables" "7" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-environment-variables" "7" "2022-09-19" "" ".NET Documentation"
.hy
.SH NAME
.PP
@@ -139,7 +139,7 @@ This setting can make performance worse if there is expensive work that will end
Test to make sure this setting helps performance.
.RE
.PP
-Using TechEmpower benchmarks that generate a lot of small socket reads and writes under a very high load, a single socket engine is capable of keeping busy up to thirty x64 and eight ARM64 CPU cores.
+Using TechEmpower benchmarks that generate a lot of small socket reads and writes under a very high load, a single socket engine is capable of keeping busy up to thirty x64 and eight Arm64 CPU cores.
The vast majority of real-life scenarios will never generate such a huge load (hundreds of thousands of requests per second), and having a single producer is almost always enough.
However, to be sure that extreme loads can be handled, you can use \f[V]DOTNET_SYSTEM_NET_SOCKETS_THREAD_COUNT\f[R] to override the calculated value.
When not overridden, the following value is used:
@@ -149,7 +149,7 @@ When \f[V]DOTNET_SYSTEM_NET_SOCKETS_INLINE_COMPLETIONS\f[R] is \f[V]1\f[R], the
When \f[V]DOTNET_SYSTEM_NET_SOCKETS_INLINE_COMPLETIONS\f[R] is not \f[V]1\f[R], is evaluated:
.RS 2
.IP \[bu] 2
-When ARM or ARM64 the cores per engine value is set to \f[V]8\f[R], otherwise \f[V]30\f[R].
+When Arm or Arm64 the cores per engine value is set to \f[V]8\f[R], otherwise \f[V]30\f[R].
.RE
.IP \[bu] 2
Using the determined cores per engine, the maximum value of either \f[V]1\f[R] or over the cores per engine.
@@ -211,7 +211,7 @@ GC Hole Stress can be enabled using the \f[V]DOTNET_GCStress\f[R] environment va
For more information, see Investigating JIT and GC Hole stress (https://github.com/dotnet/runtime/blob/main/docs/design/coreclr/jit/investigate-stress.md).
.SS JIT memory barriers
.PP
-The code generator for ARM64 allows all \f[V]MemoryBarriers\f[R] instructions to be removed by setting \f[V]DOTNET_JitNoMemoryBarriers\f[R] to \f[V]1\f[R].
+The code generator for Arm64 allows all \f[V]MemoryBarriers\f[R] instructions to be removed by setting \f[V]DOTNET_JitNoMemoryBarriers\f[R] to \f[V]1\f[R].
.SS \f[V]DOTNET_RUNNING_IN_CONTAINER\f[R] and \f[V]DOTNET_RUNNING_IN_CONTAINERS\f[R]
.PP
The official .NET images (Windows and Linux) set the well-known environment variables:
@@ -257,7 +257,7 @@ By default trace information is accumulated in a circular buffer and the content
.PP
Specifies the location of the .NET runtimes, if they are not installed in the default location.
The default location on Windows is \f[V]C:\[rs]Program Files\[rs]dotnet\f[R].
-The default location on Linux and macOS is \f[V]/usr/share/dotnet\f[R].
+The default location on Linux and macOS is \f[V]/usr/local/share/dotnet\f[R].
This environment variable is used only when running apps via generated executables (apphosts).
\f[V]DOTNET_ROOT(x86)\f[R] is used instead when running a 32-bit executable on a 64-bit OS.
.SS \f[V]NUGET_PACKAGES\f[R]
@@ -285,7 +285,7 @@ The default value is \f[V]true\f[R], but this can be overridden by setting this
.SS \f[V]DOTNET_ADD_GLOBAL_TOOLS_TO_PATH\f[R]
.PP
Specifies whether to add global tools to the \f[V]PATH\f[R] environment variable.
-the default is \f[V]true\f[R].
+The default is \f[V]true\f[R].
To not add global tools to the path, set to \f[V]0\f[R], \f[V]false\f[R], or \f[V]no\f[R].
.SS \f[V]DOTNET_CLI_TELEMETRY_OPTOUT\f[R]
.PP
@@ -311,18 +311,16 @@ For more information, see Multi-level lookup is disabled.
.SS \f[V]DOTNET_ROLL_FORWARD\f[R]
.PP
Determines roll forward behavior.
-For more information, see the \f[V]--roll-forward\f[R] option earlier in this article.
+For more information, see the \f[V]--roll-forward\f[R] option for the \f[V]dotnet\f[R] command.
.SS \f[V]DOTNET_ROLL_FORWARD_TO_PRERELEASE\f[R]
.PP
If set to \f[V]1\f[R] (enabled), enables rolling forward to a pre-release version from a release version.
By default (\f[V]0\f[R] - disabled), when a release version of .NET runtime is requested, roll-forward will only consider installed release versions.
.PP
-For more information, see Roll forward.
+For more information, see the \f[V]--roll-forward\f[R] option for the \f[V]dotnet\f[R] command
.SS \f[V]DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX\f[R]
.PP
Disables minor version roll forward, if set to \f[V]0\f[R].
-For more information, see Roll forward.
-.PP
This setting is superseded in .NET Core 3.0 by \f[V]DOTNET_ROLL_FORWARD\f[R].
The new settings should be used instead.
.SS \f[V]DOTNET_CLI_UI_LANGUAGE\f[R]
diff --git a/documentation/manpages/sdk/dotnet-format.1 b/documentation/manpages/sdk/dotnet-format.1
index 798a28e8671a..07ea3aba8528 100644
--- a/documentation/manpages/sdk/dotnet-format.1
+++ b/documentation/manpages/sdk/dotnet-format.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-format" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-format" "1" "2022-06-20" "" ".NET Documentation"
.hy
.SH dotnet format
.PP
@@ -128,7 +128,7 @@ Shows help and usage information
.SH DESCRIPTION
.PP
The \f[V]dotnet format whitespace\f[R] subcommand will only run formatting rules associated with whitespace formatting.
-For a complete list of possible formatting options that you can specify in your \f[I].editorconfig\f[R] file, see the C# formatting rules.
+For a complete list of possible formatting options that you can specify in your \f[I].editorconfig\f[R] file, see the C# formatting options.
.SH OPTIONS
.IP \[bu] 2
\f[B]\f[VB]--folder\f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-help.1 b/documentation/manpages/sdk/dotnet-help.1
index 532ee9135f95..96c60c5083ad 100644
--- a/documentation/manpages/sdk/dotnet-help.1
+++ b/documentation/manpages/sdk/dotnet-help.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-help" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-help" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet help reference
.PP
@@ -31,7 +31,7 @@ dotnet help [-h|--help]
.fi
.SH DESCRIPTION
.PP
-The \f[V]dotnet help\f[R] command opens up the reference page for more detailed information about the specified command at docs.microsoft.com.
+The \f[V]dotnet help\f[R] command opens up the reference page for more detailed information about the specified command.
.SH ARGUMENTS
.IP \[bu] 2
\f[B]\f[VB]COMMAND_NAME\f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-list-package.1 b/documentation/manpages/sdk/dotnet-list-package.1
index ca62a497908a..efa252919cfb 100644
--- a/documentation/manpages/sdk/dotnet-list-package.1
+++ b/documentation/manpages/sdk/dotnet-list-package.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-list-package" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-list-package" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet list package
.PP
diff --git a/documentation/manpages/sdk/dotnet-list-reference.1 b/documentation/manpages/sdk/dotnet-list-reference.1
index 43bca5fc66e6..1130f7b4ec92 100644
--- a/documentation/manpages/sdk/dotnet-list-reference.1
+++ b/documentation/manpages/sdk/dotnet-list-reference.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-list-reference" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-list-reference" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet list reference
.PP
diff --git a/documentation/manpages/sdk/dotnet-new-install.1 b/documentation/manpages/sdk/dotnet-new-install.1
index bff566091c89..0f902b6d9ae6 100644
--- a/documentation/manpages/sdk/dotnet-new-install.1
+++ b/documentation/manpages/sdk/dotnet-new-install.1
@@ -14,24 +14,25 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-new-install" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-new-install" "1" "2022-11-08" "" ".NET Documentation"
.hy
.SH dotnet new install
.PP
\f[B]This article applies to:\f[R] \[u2714]\[uFE0F] .NET Core 3.1 SDK and later versions
.SH NAME
.PP
-dotnet-new---install - installs a template package.
+dotnet-new-install - installs a template package.
.SH SYNOPSIS
.IP
.nf
\f[C]
-dotnet new --install [--interactive] [--nuget-source ]
+dotnet new install [--interactive] [--add-source|--nuget-source ] [--force]
+ [-d|--diagnostics] [--verbosity ] [-h|--help]
\f[R]
.fi
.SH DESCRIPTION
.PP
-The \f[V]dotnet new --install\f[R] command installs a template package from the \f[V]PATH\f[R] or \f[V]NUGET_ID\f[R] provided.
+The \f[V]dotnet new install\f[R] command installs a template package from the \f[V]PATH\f[R] or \f[V]NUGET_ID\f[R] provided.
If you want to install a specific version or prerelease version of a template package, specify the version in the format \f[V]::\f[R].
By default, \f[V]dotnet new\f[R] passes * for the version, which represents the latest stable package version.
For more information, see the Examples section.
@@ -48,40 +49,41 @@ Templates from the package won\[cq]t be available in other .NET SDK versions ins
Starting with .NET SDK 6.0.100, installed template packages are available in later .NET SDK versions installed on your machine.
A template package installed in .NET SDK 6.0.100 will also be available in .NET SDK 6.0.101, .NET SDK 6.0.200, and so on.
However, these template packages won\[cq]t be available in .NET SDK versions prior to .NET SDK 6.0.100.
-To use a template package installed in .NET SDK 6.0.100 or later in earlier .NET SDK versions, you need to install it using \f[V]dotnet new --install\f[R] in that .NET SDK version.
+To use a template package installed in .NET SDK 6.0.100 or later in earlier .NET SDK versions, you need to install it using \f[V]dotnet new install\f[R] in that .NET SDK version.
.RS
.PP
.RE
.PP
-Starting with .NET SDK 7.0.100 Preview 2, the \f[V]dotnet new\f[R] syntax has changed:
+Starting with the .NET 7 SDK, the \f[V]dotnet new\f[R] syntax has changed:
.IP \[bu] 2
The \f[V]--list\f[R], \f[V]--search\f[R], \f[V]--install\f[R], and \f[V]--uninstall\f[R] options became \f[V]list\f[R], \f[V]search\f[R], \f[V]install\f[R] and \f[V]uninstall\f[R] subcommands.
.IP \[bu] 2
The \f[V]--update-apply\f[R] option became the \f[V]update\f[R] subcommand.
.IP \[bu] 2
-to use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check\f[R] option.
+To use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check-only\f[R] option.
.PP
Other options that were available before are still available to use with their respective subcommands.
Separate help for each subcommand is available via the \f[V]-h\f[R] or \f[V]--help\f[R] option: \f[V]dotnet new --help\f[R] lists all supported options for the subcommand.
.PP
Additionally, tab completion is now available for \f[V]dotnet new\f[R].
-It supports completion for installed template names, as well as completion for the options a selected template provides.
+It supports completion for installed template names and for the options a selected template provides.
To activate tab completion for the .NET SDK, see Enable tab completion.
-> > Examples of new syntax: > > - Show help for \f[V]install\f[R] subcommand > > \f[V]dotnetcli > dotnet new install --help >\f[R] > > - Install the latest version of Azure web jobs project template package: > > \f[V]dotnetcli > dotnet new install Microsoft.Azure.WebJobs.ProjectTemplates >\f[R]
-.SH OPTIONS
+> > Examples of old syntax: > > - Install the latest version of Azure web jobs project template package: > > \f[V]dotnetcli > dotnet new --install Microsoft.Azure.WebJobs.ProjectTemplates >\f[R]
+.SH ARGUMENTS
.IP \[bu] 2
-\f[B]\f[VB]--interactive\f[B]\f[R]
+\f[B]\f[VB]\f[B]\f[R]
.RS 2
.PP
-Allows the command to stop and wait for user input or action.
-For example, to complete authentication.
-Available since .NET 5.0 SDK.
+The folder on the file system or the NuGet package identifier to install the template package from.
+\f[V]dotnet new\f[R] attempts to install the NuGet package from the NuGet sources available for the current working directory and the sources specified via the \f[V]--add-source\f[R] option.
+If you want to install a specific version or prerelease version of a template package from NuGet source, specify the version in the format \f[V]::\f[R].
.RE
+.SH OPTIONS
.IP \[bu] 2
-\f[B]\f[VB]--nuget-source \f[B]\f[R]
+\f[B]\f[VB]--add-source|--nuget-source \f[B]\f[R]
.RS 2
.PP
-By default, \f[V]dotnet new --install\f[R] uses the hierarchy of NuGet configuration files from the current directory to determine the NuGet source the package can be installed from.
+By default, \f[V]dotnet new install\f[R] uses the hierarchy of NuGet configuration files from the current directory to determine the NuGet source the package can be installed from.
If \f[V]--nuget-source\f[R] is specified, the source will be added to the list of sources to be checked.
.PD 0
.P
@@ -89,6 +91,43 @@ If \f[V]--nuget-source\f[R] is specified, the source will be added to the list o
To check the configured sources for the current directory use \f[V]dotnet nuget list source\f[R].
For more information, see Common NuGet Configurations
.RE
+.IP \[bu] 2
+\f[B]\f[VB]-d|--diagnostics\f[B]\f[R]
+.RS 2
+.PP
+Enables diagnostic output.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]--force\f[B]\f[R]
+.RS 2
+.PP
+Allows installing template packages from the specified sources even if they would override a template package from another source.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-h|--help\f[B]\f[R]
+.RS 2
+.PP
+Prints out help for the install command.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]--interactive\f[B]\f[R]
+.RS 2
+.PP
+Allows the command to stop and wait for user input or action.
+For example, to complete authentication.
+Available since .NET 5.0 SDK.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-v|--verbosity \f[B]\f[R]
+.RS 2
+.PP
+Sets the verbosity level of the command.
+Allowed values are \f[V]q[uiet]\f[R], \f[V]m[inimal]\f[R], \f[V]n[ormal]\f[R], and \f[V]diag[nostic]\f[R].
+Available since .NET SDK 7.0.100.
+.RE
.SH EXAMPLES
.IP \[bu] 2
Install the latest version of SPA templates for ASP.NET Core:
@@ -96,7 +135,7 @@ Install the latest version of SPA templates for ASP.NET Core:
.IP
.nf
\f[C]
-dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates
+dotnet new install Microsoft.DotNet.Web.Spa.ProjectTemplates
\f[R]
.fi
.RE
@@ -106,7 +145,7 @@ Install version 2.0 of the SPA templates for ASP.NET Core:
.IP
.nf
\f[C]
-dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0
+dotnet new install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0
\f[R]
.fi
.RE
@@ -116,7 +155,7 @@ Install version 2.0 of the SPA templates for ASP.NET Core from a custom NuGet so
.IP
.nf
\f[C]
-dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0 --nuget-source \[dq]https://api.my-custom-nuget.com/v3/index.json\[dq] --interactive
+dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0 --add-source \[dq]https://api.my-custom-nuget.com/v3/index.json\[dq] --interactive
\f[R]
.fi
.RE
@@ -124,6 +163,6 @@ dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0 --nuget-so
.IP \[bu] 2
\f[V]dotnet new\f[R] command
.IP \[bu] 2
-\f[V]dotnet new --search\f[R] option
+\f[V]dotnet new search\f[R] command
.IP \[bu] 2
Custom templates for \f[V]dotnet new\f[R]
diff --git a/documentation/manpages/sdk/dotnet-new-list.1 b/documentation/manpages/sdk/dotnet-new-list.1
index 066b77696ce4..160b094b775b 100644
--- a/documentation/manpages/sdk/dotnet-new-list.1
+++ b/documentation/manpages/sdk/dotnet-new-list.1
@@ -14,60 +14,59 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-new-list" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-new-list" "1" "2022-11-08" "" ".NET Documentation"
.hy
.SH dotnet new list
.PP
\f[B]This article applies to:\f[R] \[u2714]\[uFE0F] .NET Core 3.1 SDK and later versions
.SH NAME
.PP
-dotnet-new---list - Lists available templates to be run using dotnet-new.
+dotnet-new-list - Lists available templates to be run using dotnet-new.
.SH SYNOPSIS
.IP
.nf
\f[C]
-dotnet new [] -l|--list [--author ] [-lang|--language {\[dq]C#\[dq]|\[dq]F#\[dq]|VB}]
+dotnet new list [] [--author ] [-lang|--language {\[dq]C#\[dq]|\[dq]F#\[dq]|VB}]
[--tag ] [--type ] [--columns ] [--columns-all]
+ [-o|--output ] [--project ] [--ignore-constraints]
+ [-d|--diagnostics] [--verbosity ] [-h|--help]
\f[R]
.fi
.SH DESCRIPTION
.PP
-The \f[V]dotnet new --list\f[R] option lists available templates to use with \f[V]dotnet new\f[R].
+The \f[V]dotnet new list\f[R] command lists available templates to use with \f[V]dotnet new\f[R].
If the is specified, lists templates containing the specified name.
This option lists only default and installed templates.
-To find templates in NuGet that you can install locally, use the \f[V]--search\f[R] option.
+To find templates in NuGet that you can install locally, use the \f[V]search\f[R] command.
+.PP
+Starting with .NET SDK 7.0.100, the \f[V]list\f[R] command might not show all the templates installed on the machine.
+It takes the result of template constraints into account, and the templates that can\[cq]t be used won\[cq]t be shown.
+To force show all the templates, use the \f[V]--ignore-constraints\f[R] option.
.RS
.PP
.RE
.PP
-Starting with .NET SDK 7.0.100 Preview 2, the \f[V]dotnet new\f[R] syntax has changed:
+Starting with the .NET 7 SDK, the \f[V]dotnet new\f[R] syntax has changed:
.IP \[bu] 2
The \f[V]--list\f[R], \f[V]--search\f[R], \f[V]--install\f[R], and \f[V]--uninstall\f[R] options became \f[V]list\f[R], \f[V]search\f[R], \f[V]install\f[R] and \f[V]uninstall\f[R] subcommands.
.IP \[bu] 2
The \f[V]--update-apply\f[R] option became the \f[V]update\f[R] subcommand.
.IP \[bu] 2
-to use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check\f[R] option.
+To use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check-only\f[R] option.
.PP
Other options that were available before are still available to use with their respective subcommands.
Separate help for each subcommand is available via the \f[V]-h\f[R] or \f[V]--help\f[R] option: \f[V]dotnet new --help\f[R] lists all supported options for the subcommand.
.PP
Additionally, tab completion is now available for \f[V]dotnet new\f[R].
-It supports completion for installed template names, as well as completion for the options a selected template provides.
+It supports completion for installed template names and for the options a selected template provides.
To activate tab completion for the .NET SDK, see Enable tab completion.
-> > Examples of the new syntax: > > - Show help for \f[V]list\f[R] subcommand > > \f[V]dotnetcli > dotnet new list --help >\f[R] > > - List all templates matching the we substring that support the F# language.
-> > \f[V]dotnetcli > dotnet new list we --language \[dq]F#\[dq] >\f[R]
+> > Examples of the old syntax: > > - List all Single Page Application (SPA) templates: > - since .NET SDK 6.0.100 > > \f[V]dotnetcli > dotnet new --list spa >\f[R] > > - before .NET SDK 6.0.100 > > \f[V]dotnetcli > dotnet new spa --list >\f[R]
.SH ARGUMENTS
.IP \[bu] 2
\f[B]\f[VB]TEMPLATE_NAME\f[B]\f[R]
.RS 2
.PP
If the argument is specified, only the templates containing \f[V]\f[R] in template name or short name will be shown.
-.RS
-.PP
-Starting with .NET SDK 6.0.100, you can put the \f[V]\f[R] argument after the \f[V]--list\f[R] option.
-For example, \f[V]dotnet new --list web\f[R] provides the same result as \f[V]dotnet new web --list\f[R].
-Using more than one argument is not allowed.
-.RE
.RE
.SH OPTIONS
.IP \[bu] 2
@@ -76,7 +75,7 @@ Using more than one argument is not allowed.
.PP
Filters templates based on template author.
Partial match is supported.
-Available since .NET Core 5.0.300 SDK.
+Available since .NET SDK 5.0.300.
.RE
.IP \[bu] 2
\f[B]\f[VB]--columns \f[B]\f[R]
@@ -96,14 +95,35 @@ The supported columns are:
The template name and short name are always shown.
The default list of columns is template name, short name, language, and tags.
This list is equivalent to specifying \f[V]--columns=language,tags\f[R].
-Available since .NET Core 5.0.300 SDK.
+Available since .NET SDK 5.0.300.
.RE
.IP \[bu] 2
\f[B]\f[VB]--columns-all\f[B]\f[R]
.RS 2
.PP
Displays all columns in the output.
-Available since .NET Core 5.0.300 SDK.
+Available since .NET SDK 5.0.300.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-d|--diagnostics\f[B]\f[R]
+.RS 2
+.PP
+Enables diagnostic output.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-h|--help\f[B]\f[R]
+.RS 2
+.PP
+Prints out help for the list command.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]--ignore-constraints\f[B]\f[R]
+.RS 2
+.PP
+Disables checking if the template meets the constraints to be run.
+Available since .NET SDK 7.0.100.
.RE
.IP \[bu] 2
\f[B]\f[VB]-lang|--language {C#|F#|VB}\f[B]\f[R]
@@ -120,12 +140,29 @@ For example, \f[V]dotnet new --list --language \[dq]F#\[dq]\f[R].
.RE
.RE
.IP \[bu] 2
+\f[B]\f[VB]-o|--output \f[B]\f[R]
+.RS 2
+.PP
+Location to place the generated output.
+The default is the current directory.
+For the list command, it might be necessary to specify the output directory to correctly evaluate constraints for the template.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]--project \f[B]\f[R]
+.RS 2
+.PP
+The project that the template is added to.
+For the list command, it might be needed to specify the project the template is being added to to correctly evaluate constraints for the template.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
\f[B]\f[VB]--tag \f[B]\f[R]
.RS 2
.PP
Filters templates based on template tags.
To be selected, a template must have at least one tag that exactly matches the criteria.
-Available since .NET Core 5.0.300 SDK.
+Available since .NET SDK 5.0.300.
.RE
.IP \[bu] 2
\f[B]\f[VB]--type \f[B]\f[R]
@@ -134,6 +171,14 @@ Available since .NET Core 5.0.300 SDK.
Filters templates based on template type.
Predefined values are \f[V]project\f[R], \f[V]item\f[R], and \f[V]solution\f[R].
.RE
+.IP \[bu] 2
+\f[B]\f[VB]-v|--verbosity \f[B]\f[R]
+.RS 2
+.PP
+Sets the verbosity level of the command.
+Allowed values are \f[V]q[uiet]\f[R], \f[V]m[inimal]\f[R], \f[V]n[ormal]\f[R], and \f[V]diag[nostic]\f[R].
+Available since .NET SDK 7.0.100.
+.RE
.SH EXAMPLES
.IP \[bu] 2
List all templates
@@ -141,47 +186,27 @@ List all templates
.IP
.nf
\f[C]
-dotnet new --list
+dotnet new list
\f[R]
.fi
.RE
.IP \[bu] 2
List all Single Page Application (SPA) templates:
.RS 2
-.IP \[bu] 2
-since .NET SDK 6.0.100
.IP
.nf
\f[C]
-dotnet new --list spa
-\f[R]
-.fi
-.IP \[bu] 2
-before .NET SDK 6.0.100
-.IP
-.nf
-\f[C]
-dotnet new spa --list
+dotnet new list spa
\f[R]
.fi
.RE
.IP \[bu] 2
List all templates matching the \f[I]we\f[R] substring.
.RS 2
-.IP \[bu] 2
-since .NET SDK 6.0.100
-.IP
-.nf
-\f[C]
-dotnet new --list we
-\f[R]
-.fi
-.IP \[bu] 2
-before .NET SDK 6.0.100
.IP
.nf
\f[C]
-dotnet new we --list
+dotnet new list we
\f[R]
.fi
.RE
@@ -191,7 +216,7 @@ List all templates matching the \f[I]we\f[R] substring that support the F# langu
.IP
.nf
\f[C]
-dotnet new --list we --language \[dq]F#\[dq]
+dotnet new list we --language \[dq]F#\[dq]
\f[R]
.fi
.RE
@@ -201,7 +226,7 @@ List all item templates.
.IP
.nf
\f[C]
-dotnet new --list --type item
+dotnet new list --type item
\f[R]
.fi
.RE
@@ -211,7 +236,7 @@ List all C# templates, showing the author and the type in the output.
.IP
.nf
\f[C]
-dotnet new --list --language \[dq]C#\[dq] --columns \[dq]author,type\[dq]
+dotnet new list --language \[dq]C#\[dq] --columns \[dq]author,type\[dq]
\f[R]
.fi
.RE
@@ -219,6 +244,6 @@ dotnet new --list --language \[dq]C#\[dq] --columns \[dq]author,type\[dq]
.IP \[bu] 2
dotnet new command
.IP \[bu] 2
-dotnet new \[en]search option
+dotnet new search command
.IP \[bu] 2
Custom templates for dotnet new
diff --git a/documentation/manpages/sdk/dotnet-new-sdk-templates.7 b/documentation/manpages/sdk/dotnet-new-sdk-templates.7
index ef1c352d2244..f8bf3b08c82c 100644
--- a/documentation/manpages/sdk/dotnet-new-sdk-templates.7
+++ b/documentation/manpages/sdk/dotnet-new-sdk-templates.7
@@ -15,7 +15,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-new-sdk-templates" "7" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-new-sdk-templates" "7" "2022-11-08" "" ".NET Documentation"
.hy
.SH NAME
.PP
@@ -23,11 +23,11 @@ dotnet-new-sdk-templates - .NET default templates for dotnet new
.SH DESCRIPTION
.PP
When you install the .NET SDK (https://dotnet.microsoft.com/download), you receive over a dozen built-in templates for creating projects and files, including console apps, class libraries, unit test projects, ASP.NET Core apps (including Angular (https://angular.io/) and React (https://reactjs.org/) projects), and configuration files.
-To list the built-in templates, run the \f[V]dotnet new\f[R] command with the \f[V]-l|--list\f[R] option:
+To list the built-in templates, run the \f[V]dotnet new list\f[R] command:
.IP
.nf
\f[C]
-dotnet new --list
+dotnet new list
\f[R]
.fi
.PP
@@ -249,6 +249,17 @@ T}@T{
3.0
T}
T{
+Blazor Server App Empty
+T}@T{
+\f[V]blazorserver-empty\f[R]
+T}@T{
+[C#]
+T}@T{
+Web/Blazor
+T}@T{
+7.0
+T}
+T{
Blazor WebAssembly App
T}@T{
\f[V]blazorwasm\f[R]
@@ -260,6 +271,17 @@ T}@T{
3.1.300
T}
T{
+Blazor WebAssembly App Empty
+T}@T{
+\f[V]blazorwasm-empty\f[R]
+T}@T{
+[C#]
+T}@T{
+Web/Blazor/WebAssembly
+T}@T{
+7.0
+T}
+T{
ASP.NET Core Empty
T}@T{
\f[V]web\f[R]
@@ -442,7 +464,10 @@ T}
.SS Template options
.PP
Each template may have additional options available.
-The core templates have the following additional options:
+To show the additional options available for the template use the \f[V]--help\f[R] option with the template name argument, for example: \f[V]dotnet new console --help\f[R].
+In case the template supports multiple languages, this command will show help for the template in the default language.
+By combining it with the \f[V]--language\f[R] option, you can see the help for other languages: \f[V]dotnet new console --help --language F#\f[R].
+The templates that ship with the .NET SDK have the following additional options:
.SS \f[V]console\f[R]
.IP \[bu] 2
\f[B]\f[VB]-f|--framework \f[B]\f[R]
@@ -451,7 +476,7 @@ The core templates have the following additional options:
Specifies the framework to target.
Available since .NET Core 3.0 SDK.
.PP
-The following table lists the default values according to the SDK version number you\[cq]re using:
+The following table lists the default values according to the SDK version you\[cq]re using:
.PP
.TS
tab(@);
@@ -463,14 +488,14 @@ Default value
T}
_
T{
-6.0
+7.0
T}@T{
-\f[V]net6.0\f[R]
+\f[V]net7.0\f[R]
T}
T{
-5.0
+6.0
T}@T{
-\f[V]net5.0\f[R]
+\f[V]net6.0\f[R]
T}
T{
3.1
@@ -480,14 +505,14 @@ T}
.TE
.PP
The ability to create a project for an earlier TFM depends on having that version of the SDK installed.
-For example, if you have only the .NET 6 SDK installed, then the only value available for \f[V]--framework\f[R] is \f[V]net6.0\f[R].
-If you install the .NET 5 SDK, the value \f[V]net5.0\f[R] becomes available for \f[V]--framework\f[R].
+For example, if you have only the .NET 7 SDK installed, then the only value available for \f[V]--framework\f[R] is \f[V]net7.0\f[R].
+If you install the .NET 6 SDK the value \f[V]net6.0\f[R] becomes available for \f[V]--framework\f[R].
If you install the .NET Core 3.1 SDK, \f[V]netcoreapp3.1\f[R] becomes available, and so on.
So by specifying \f[V]--framework netcoreapp3.1\f[R] you can target .NET Core 3.1 even while running \f[V]dotnet new\f[R] in the .NET 6 SDK.
.PP
Alternatively, to create a project that targets a framework earlier than the SDK that you\[cq]re using, you might be able to do it by installing the NuGet package for the template.
Common (https://www.nuget.org/packages?q=Microsoft.DotNet.Common.ProjectTemplates), web (https://www.nuget.org/packages?q=Microsoft.DotNet.Web.ProjectTemplates), and SPA (https://www.nuget.org/packages?q=Microsoft.DotNet.Web.Spa.ProjectTemplates) project types use different packages per target framework moniker (TFM).
-For example, to create a \f[V]console\f[R] project that targets \f[V]netcoreapp1.0\f[R], run \f[V]dotnet new --install\f[R] on \f[V]Microsoft.DotNet.Common.ProjectTemplates.1.x\f[R].
+For example, to create a \f[V]console\f[R] project that targets \f[V]netcoreapp1.0\f[R], run \f[V]dotnet new install\f[R] on \f[V]Microsoft.DotNet.Common.ProjectTemplates.1.x\f[R].
.RE
.IP \[bu] 2
\f[B]\f[VB]--langVersion \f[B]\f[R]
@@ -514,6 +539,7 @@ Available since .NET Core 2.2 SDK.
If specified, an explicit \f[V]Program\f[R] class and \f[V]Main\f[R] method will be used instead of top-level statements.
Available since .NET SDK 6.0.300.
Default value: \f[V]false\f[R].
+Available only for C#.
.RE
.PP
* * * * *
@@ -523,8 +549,8 @@ Default value: \f[V]false\f[R].
.RS 2
.PP
Specifies the framework to target.
-Values: \f[V]net6.0\f[R], \f[V]net5.0\f[R], or \f[V]netcoreapp3.1\f[R] to create a .NET Class Library or \f[V]netstandard\f[R] to create a .NET Standard Class Library.
-The default value for .NET 6 SDK is \f[V]net6.0\f[R].
+Values: \f[V]net7.0\f[R], \f[V]net6.0\f[R], or \f[V]netcoreapp3.1\f[R] to create a .NET Class Library or \f[V]netstandard2.1\f[R] or \f[V]netstandard2.0\f[R] to create a .NET Standard Class Library.
+The default value for .NET SDK 7.0.x is \f[V]net7.0\f[R].
.PP
To create a project that targets a framework earlier than the SDK that you\[cq]re using, see \f[V]--framework\f[R] for \f[V]console\f[R] projects earlier in this article.
.RE
@@ -597,7 +623,7 @@ Doesn\[cq]t execute an implicit restore during project creation.
.RS 2
.PP
Specifies the framework to target.
-The default value is \f[V]netcoreapp3.1\f[R].
+The default value for .NET 7 SDK is \f[V]net7.0\f[R].
Available since .NET Core 3.1 SDK.
.PP
To create a project that targets a framework earlier than the SDK that you\[cq]re using, see \f[V]--framework\f[R] for \f[V]console\f[R] projects earlier in this article.
@@ -925,6 +951,11 @@ Default value
T}
_
T{
+7.0
+T}@T{
+\f[V]net7.0\f[R]
+T}
+T{
6.0
T}@T{
\f[V]net6.0\f[R]
@@ -1806,7 +1837,7 @@ Creates an empty \f[I].editorconfig\f[R] instead of the defaults for .NET.
.IP \[bu] 2
dotnet new command
.IP \[bu] 2
-dotnet new \[en]list option
+dotnet new list command
.IP \[bu] 2
Custom templates for dotnet new
.IP \[bu] 2
diff --git a/documentation/manpages/sdk/dotnet-new-search.1 b/documentation/manpages/sdk/dotnet-new-search.1
index ce7bfecdb9f9..8e80011a0f2d 100644
--- a/documentation/manpages/sdk/dotnet-new-search.1
+++ b/documentation/manpages/sdk/dotnet-new-search.1
@@ -14,49 +14,49 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-new-search" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-new-search" "1" "2022-11-08" "" ".NET Documentation"
.hy
.SH dotnet new search
.PP
\f[B]This article applies to:\f[R] \[u2714]\[uFE0F] .NET Core 5.0.300 SDK and later versions
.SH NAME
.PP
-dotnet-new---search - searches for the templates supported by dotnet-new on NuGet.org.
+dotnet-new-search - searches for the templates supported by dotnet-new on NuGet.org.
.SH SYNOPSIS
.IP
.nf
\f[C]
-dotnet new --search
+dotnet new search
-dotnet new [] --search [--author ] [-lang|--language {\[dq]C#\[dq]|\[dq]F#\[dq]|VB}]
+dotnet new search [] [--author ] [-lang|--language {\[dq]C#\[dq]|\[dq]F#\[dq]|VB}]
[--package ] [--tag ] [--type ]
[--columns ] [--columns-all]
+ [-d|--diagnostics] [--verbosity ] [-h|--help]
\f[R]
.fi
.SH DESCRIPTION
.PP
-The \f[V]dotnet new --search\f[R] option searches for templates supported by \f[V]dotnet new\f[R] on NuGet.org.
+The \f[V]dotnet new search\f[R] command searches for templates supported by \f[V]dotnet new\f[R] on NuGet.org.
When the is specified, searches for templates containing the specified name.
.RS
.PP
.RE
.PP
-Starting with .NET SDK 7.0.100 Preview 2, the \f[V]dotnet new\f[R] syntax has changed:
+Starting with the .NET 7 SDK, the \f[V]dotnet new\f[R] syntax has changed:
.IP \[bu] 2
The \f[V]--list\f[R], \f[V]--search\f[R], \f[V]--install\f[R], and \f[V]--uninstall\f[R] options became \f[V]list\f[R], \f[V]search\f[R], \f[V]install\f[R] and \f[V]uninstall\f[R] subcommands.
.IP \[bu] 2
The \f[V]--update-apply\f[R] option became the \f[V]update\f[R] subcommand.
.IP \[bu] 2
-to use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check\f[R] option.
+To use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check-only\f[R] option.
.PP
Other options that were available before are still available to use with their respective subcommands.
Separate help for each subcommand is available via the \f[V]-h\f[R] or \f[V]--help\f[R] option: \f[V]dotnet new --help\f[R] lists all supported options for the subcommand.
.PP
Additionally, tab completion is now available for \f[V]dotnet new\f[R].
-It supports completion for installed template names, as well as completion for the options a selected template provides.
+It supports completion for installed template names and for the options a selected template provides.
To activate tab completion for the .NET SDK, see Enable tab completion.
-> > Examples of the new syntax: > > - Show help for the \f[V]search\f[R] subcommand.
-> > \f[V]dotnetcli > dotnet new search --help >\f[R] > > - Search for all templates available on NuGet.org matching the \[lq]we\[rq] substring and supporting the F# language > > \f[V]dotnetcli > dotnet new search we --language \[dq]F#\[dq] >\f[R]
+> > Examples of the old syntax: > > - Search for all templates available on NuGet.org matching the \[lq]we\[rq] substring and supporting the F# language > > \f[V]dotnetcli > dotnet new we --search --language \[dq]F#\[dq] >\f[R]
.SH ARGUMENTS
.IP \[bu] 2
\f[B]\f[VB]TEMPLATE_NAME\f[B]\f[R]
@@ -105,6 +105,20 @@ This list is equivalent to specifying \f[V]--columns=author,language\f[R].
Displays all columns in the output.
.RE
.IP \[bu] 2
+\f[B]\f[VB]-d|--diagnostics\f[B]\f[R]
+.RS 2
+.PP
+Enables diagnostic output.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-h|--help\f[B]\f[R]
+.RS 2
+.PP
+Prints out help for the search command.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
\f[B]\f[VB]-lang|--language {C#|F#|VB}\f[B]\f[R]
.RS 2
.PP
@@ -138,49 +152,37 @@ To be selected, a template must have at least one tag that exactly matches the c
.PP
Filters templates based on template type.
Predefined values are \f[V]project\f[R], \f[V]item\f[R], and \f[V]solution\f[R].
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-v|--verbosity \f[B]\f[R]
+.RS 2
+.PP
+Sets the verbosity level of the command.
+Allowed values are \f[V]q[uiet]\f[R], \f[V]m[inimal]\f[R], \f[V]n[ormal]\f[R], and \f[V]diag[nostic]\f[R].
+Available since .NET SDK 7.0.100.
+.RE
.RS
.PP
To ensure that the template package appears in \f[V]dotnet new --search\f[R] result, set the NuGet package type to \f[V]Template\f[R].
.RE
-.RE
.SH EXAMPLES
.IP \[bu] 2
Search for all templates available on NuGet.org matching the \f[I]spa\f[R] substring.
.RS 2
-.IP \[bu] 2
-since .NET SDK 6.0.100
-.IP
-.nf
-\f[C]
-dotnet new --search spa
-\f[R]
-.fi
-.IP \[bu] 2
-before .NET SDK 6.0.100
.IP
.nf
\f[C]
-dotnet new spa --search
+dotnet new search spa
\f[R]
.fi
.RE
.IP \[bu] 2
Search for all templates available on NuGet.org matching the \f[I]we\f[R] substring and supporting the F# language.
.RS 2
-.IP \[bu] 2
-since .NET SDK 6.0.100
-.IP
-.nf
-\f[C]
-dotnet new --search we --language \[dq]F#\[dq]
-\f[R]
-.fi
-.IP \[bu] 2
-before .NET SDK 6.0.100
.IP
.nf
\f[C]
-dotnet new we --search --language \[dq]F#\[dq]
+dotnet new search we --language \[dq]F#\[dq]
\f[R]
.fi
.RE
@@ -190,7 +192,7 @@ Search for item templates.
.IP
.nf
\f[C]
-dotnet new --search --type item
+dotnet new search --type item
\f[R]
.fi
.RE
@@ -200,7 +202,7 @@ Search for all C# templates, showing the type and tags in the output.
.IP
.nf
\f[C]
-dotnet new --search --language \[dq]C#\[dq] --columns \[dq]type,tags\[dq]
+dotnet new search --language \[dq]C#\[dq] --columns \[dq]type,tags\[dq]
\f[R]
.fi
.RE
@@ -208,6 +210,6 @@ dotnet new --search --language \[dq]C#\[dq] --columns \[dq]type,tags\[dq]
.IP \[bu] 2
dotnet new command
.IP \[bu] 2
-dotnet new \[en]list option
+dotnet new list command
.IP \[bu] 2
Custom templates for dotnet new
diff --git a/documentation/manpages/sdk/dotnet-new-uninstall.1 b/documentation/manpages/sdk/dotnet-new-uninstall.1
index 21600b959233..a8f52bc57a8b 100644
--- a/documentation/manpages/sdk/dotnet-new-uninstall.1
+++ b/documentation/manpages/sdk/dotnet-new-uninstall.1
@@ -14,46 +14,77 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-new-uninstall" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-new-uninstall" "1" "2022-11-08" "" ".NET Documentation"
.hy
.SH dotnet new uninstall
.PP
\f[B]This article applies to:\f[R] \[u2714]\[uFE0F] .NET Core 3.1 SDK and later versions
.SH NAME
.PP
-dotnet-new---uninstall - uninstalls a template package.
+dotnet-new-uninstall - uninstalls a template package.
.SH SYNOPSIS
.IP
.nf
\f[C]
-dotnet new --uninstall
+dotnet new uninstall
+ [-d|--diagnostics] [--verbosity ] [-h|--help]
\f[R]
.fi
.SH DESCRIPTION
.PP
-The \f[V]dotnet new --uninstall\f[R] command uninstalls a template package at the \f[V]PATH\f[R] or \f[V]NUGET_ID\f[R] provided.
+The \f[V]dotnet new uninstall\f[R] command uninstalls a template package at the \f[V]PATH\f[R] or \f[V]NUGET_ID\f[R] provided.
When the \f[V]\f[R] value isn\[cq]t specified, all currently installed template packages and their associated templates are displayed.
When specifying \f[V]NUGET_ID\f[R], don\[cq]t include the version number.
.RS
.PP
.RE
.PP
-Starting with .NET SDK 7.0.100 Preview 2, the \f[V]dotnet new\f[R] syntax has changed:
+Starting with the .NET 7 SDK, the \f[V]dotnet new\f[R] syntax has changed:
.IP \[bu] 2
The \f[V]--list\f[R], \f[V]--search\f[R], \f[V]--install\f[R], and \f[V]--uninstall\f[R] options became \f[V]list\f[R], \f[V]search\f[R], \f[V]install\f[R] and \f[V]uninstall\f[R] subcommands.
.IP \[bu] 2
The \f[V]--update-apply\f[R] option became the \f[V]update\f[R] subcommand.
.IP \[bu] 2
-to use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check\f[R] option.
+To use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check-only\f[R] option.
.PP
Other options that were available before are still available to use with their respective subcommands.
Separate help for each subcommand is available via the \f[V]-h\f[R] or \f[V]--help\f[R] option: \f[V]dotnet new --help\f[R] lists all supported options for the subcommand.
.PP
Additionally, tab completion is now available for \f[V]dotnet new\f[R].
-It supports completion for installed template names, as well as completion for the options a selected template provides.
+It supports completion for installed template names and for the options a selected template provides.
To activate tab completion for the .NET SDK, see Enable tab completion.
-> > Examples of the new syntax: > > - Show help for the \f[V]uninstall\f[R] subcommand.
-> > \f[V]dotnetcli > dotnet new uninstall --help >\f[R] > > - List the installed templates and details about them, including how to uninstall them: > > \f[V]dotnetcli > dotnet new uninstall >\f[R] > > - Uninstall the Azure web jobs project template package: > > \f[V]dotnetcli > dotnet new uninstall Microsoft.Azure.WebJobs.ProjectTemplates >\f[R]
+> > Examples of the old syntax: > > - List the installed templates and details about them, including how to uninstall them: > > \f[V]dotnetcli > dotnet new --uninstall >\f[R] > > - Uninstall the Azure web jobs project template package: > > \f[V]dotnetcli > dotnet new --uninstall Microsoft.Azure.WebJobs.ProjectTemplates >\f[R]
+.SH ARGUMENTS
+.IP \[bu] 2
+\f[B]\f[VB]\f[B]\f[R]
+.RS 2
+.PP
+The folder on the file system or the NuGet package identifier the package was installed from.
+Note that the version for the NuGet package should not be specified.
+.RE
+.SH OPTIONS
+.IP \[bu] 2
+\f[B]\f[VB]-d|--diagnostics\f[B]\f[R]
+.RS 2
+.PP
+Enables diagnostic output.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-h|--help\f[B]\f[R]
+.RS 2
+.PP
+Prints out help for the uninstall command.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-v|--verbosity \f[B]\f[R]
+.RS 2
+.PP
+Sets the verbosity level of the command.
+Allowed values are \f[V]q[uiet]\f[R], \f[V]m[inimal]\f[R], \f[V]n[ormal]\f[R], and \f[V]diag[nostic]\f[R].
+Available since .NET SDK 7.0.100.
+.RE
.SH EXAMPLES
.IP \[bu] 2
List the installed templates and details about them, including how to uninstall them:
@@ -61,7 +92,7 @@ List the installed templates and details about them, including how to uninstall
.IP
.nf
\f[C]
-dotnet new --uninstall
+dotnet new uninstall
\f[R]
.fi
.RE
@@ -71,7 +102,7 @@ Uninstall the SPA templates for ASP.NET Core:
.IP
.nf
\f[C]
-dotnet new --uninstall Microsoft.DotNet.Web.Spa.ProjectTemplates
+dotnet new uninstall Microsoft.DotNet.Web.Spa.ProjectTemplates
\f[R]
.fi
.RE
@@ -79,8 +110,8 @@ dotnet new --uninstall Microsoft.DotNet.Web.Spa.ProjectTemplates
.IP \[bu] 2
dotnet new command
.IP \[bu] 2
-dotnet new \[en]list option
+dotnet new list command
.IP \[bu] 2
-dotnet new \[en]search option
+dotnet new search command
.IP \[bu] 2
Custom templates for dotnet new
diff --git a/documentation/manpages/sdk/dotnet-new-update.1 b/documentation/manpages/sdk/dotnet-new-update.1
index bd28b9eb7369..0f87e86e9861 100644
--- a/documentation/manpages/sdk/dotnet-new-update.1
+++ b/documentation/manpages/sdk/dotnet-new-update.1
@@ -14,55 +14,120 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-new-update" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-new-update" "1" "2022-11-08" "" ".NET Documentation"
.hy
.SH dotnet new update
.PP
\f[B]This article applies to:\f[R] \[u2714]\[uFE0F] .NET Core 3.1 SDK and later versions
.SH NAME
.PP
-dotnet-new---update-check - Checks for available updates for installed template packages.
-.PP
-dotnet-new---update-apply - Applies updates to installed template packages.
+dotnet-new-update - updates installed template packages.
.SH SYNOPSIS
.IP
.nf
\f[C]
-dotnet new --update-check
+dotnet new update [--interactive] [--add-source|--nuget-source ]
+ [-d|--diagnostics] [--verbosity ] [-h|--help]
-dotnet new --update-apply
+dotnet new update --check-only|--dry-run [--interactive] [--add-source|--nuget-source ]
+ [-d|--diagnostics] [--verbosity ] [-h|--help]
\f[R]
.fi
.SH DESCRIPTION
.PP
-The \f[V]dotnet new --update-check\f[R] option checks if there are updates available for the template packages that are currently installed.
-The \f[V]dotnet new --update-apply\f[R] option checks if there are updates available for the template packages that are currently installed and installs them.
+The \f[V]dotnet new update\f[R] command updates installed template packages.
+The \f[V]dotnet new update\f[R] command with \f[V]--check-only\f[R] option checks for available updates for installed template packages without applying them.
.RS
.PP
.RE
.PP
-Starting with .NET SDK 7.0.100 Preview 2, the \f[V]dotnet new\f[R] syntax has changed:
+Starting with the .NET 7 SDK, the \f[V]dotnet new\f[R] syntax has changed:
.IP \[bu] 2
The \f[V]--list\f[R], \f[V]--search\f[R], \f[V]--install\f[R], and \f[V]--uninstall\f[R] options became \f[V]list\f[R], \f[V]search\f[R], \f[V]install\f[R] and \f[V]uninstall\f[R] subcommands.
.IP \[bu] 2
The \f[V]--update-apply\f[R] option became the \f[V]update\f[R] subcommand.
.IP \[bu] 2
-to use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check\f[R] option.
+To use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check-only\f[R] option.
.PP
Other options that were available before are still available to use with their respective subcommands.
Separate help for each subcommand is available via the \f[V]-h\f[R] or \f[V]--help\f[R] option: \f[V]dotnet new --help\f[R] lists all supported options for the subcommand.
.PP
Additionally, tab completion is now available for \f[V]dotnet new\f[R].
-It supports completion for installed template names, as well as completion for the options a selected template provides.
+It supports completion for installed template names and for the options a selected template provides.
To activate tab completion for the .NET SDK, see Enable tab completion.
-> > Examples of the new syntax: > > - Show help for the \f[V]update\f[R] subcommand.
-> > \f[V]dotnetcli > dotnet new update --help >\f[R] > > - Check for updates for installed template packages: > > \f[V]dotnetcli > dotnet new update --check >\f[R] > > - Update installed template packages: > > \f[V]dotnetcli > dotnet new update >\f[R]
+> > Examples of the old syntax: > > - Show help for the \f[V]update\f[R] subcommand.
+> > - Check for updates for installed template packages: > > \f[V]dotnetcli > dotnet new --update-check >\f[R] > > - Update installed template packages: > > \f[V]dotnetcli > dotnet new --update-apply >\f[R]
+.SH OPTIONS
+.IP \[bu] 2
+\f[B]\f[VB]--interactive\f[B]\f[R]
+.RS 2
+.PP
+Allows the command to stop and wait for user input or action.
+For example, to complete authentication.
+Available since .NET 5.0 SDK.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]--add-source|nuget-source \f[B]\f[R]
+.RS 2
+.PP
+By default, \f[V]dotnet new install\f[R] uses the hierarchy of NuGet configuration files from the current directory to determine the NuGet source the package can be installed from.
+If \f[V]--nuget-source\f[R] is specified, the source will be added to the list of sources to be checked.
+.PD 0
+.P
+.PD
+To check the configured sources for the current directory use \f[V]dotnet nuget list source\f[R].
+For more information, see Common NuGet Configurations.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-d|--diagnostics\f[B]\f[R]
+.RS 2
+.PP
+Enables diagnostic output.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-h|--help\f[B]\f[R]
+.RS 2
+.PP
+Prints out help for the update command.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-v|--verbosity \f[B]\f[R]
+.RS 2
+.PP
+Sets the verbosity level of the command.
+Allowed values are \f[V]q[uiet]\f[R], \f[V]m[inimal]\f[R], \f[V]n[ormal]\f[R], and \f[V]diag[nostic]\f[R].
+Available since .NET SDK 7.0.100.
+.RE
+.SH EXAMPLES
+.IP \[bu] 2
+Updates the installed template packages using NuGet configuration for the current directory:
+.RS 2
+.IP
+.nf
+\f[C]
+dotnet new update
+\f[R]
+.fi
+.RE
+.IP \[bu] 2
+Updates the installed template packages also checking a custom NuGet source using interactive mode:
+.RS 2
+.IP
+.nf
+\f[C]
+dotnet new update --add-source \[dq]https://api.my-custom-nuget.com/v3/index.json\[dq] --interactive
+\f[R]
+.fi
+.RE
.SH SEE ALSO
.IP \[bu] 2
dotnet new command
.IP \[bu] 2
-dotnet new \[en]search option
+dotnet new search command
.IP \[bu] 2
-dotnet new \[en]install option
+dotnet new install command
.IP \[bu] 2
Custom templates for dotnet new
diff --git a/documentation/manpages/sdk/dotnet-new.1 b/documentation/manpages/sdk/dotnet-new.1
index 19dbcc2d81b8..014d4ff7aa77 100644
--- a/documentation/manpages/sdk/dotnet-new.1
+++ b/documentation/manpages/sdk/dotnet-new.1
@@ -15,7 +15,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-new" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-new" "1" "2022-11-08" "" ".NET Documentation"
.hy
.SH dotnet new
.PP
@@ -28,7 +28,9 @@ dotnet-new - Creates a new project, configuration file, or solution based on the
.nf
\f[C]
dotnet new [--dry-run] [--force] [-lang|--language {\[dq]C#\[dq]|\[dq]F#\[dq]|VB}]
- [-n|--name ] [--no-update-check] [-o|--output ] [Template options]
+ [-n|--name ] [--no-update-check]
+ [-o|--output ] [--project ]
+ [-d|--diagnostics] [--verbosity ] [Template options]
dotnet new -h|--help
\f[R]
@@ -42,18 +44,23 @@ The command calls the template engine (https://github.com/dotnet/templating) to
.PP
.RE
.PP
-Starting with .NET SDK 7.0.100 Preview 2, the \f[V]dotnet new\f[R] syntax has changed:
+Starting with the .NET 7 SDK, the \f[V]dotnet new\f[R] syntax has changed:
.IP \[bu] 2
The \f[V]--list\f[R], \f[V]--search\f[R], \f[V]--install\f[R], and \f[V]--uninstall\f[R] options became \f[V]list\f[R], \f[V]search\f[R], \f[V]install\f[R] and \f[V]uninstall\f[R] subcommands.
.IP \[bu] 2
The \f[V]--update-apply\f[R] option became the \f[V]update\f[R] subcommand.
.IP \[bu] 2
-to use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check\f[R] option.
+To use \f[V]--update-check\f[R], use the \f[V]update\f[R] subcommand with the \f[V]--check-only\f[R] option.
.PP
Other options that were available before are still available to use with their respective subcommands.
Separate help for each subcommand is available via the \f[V]-h\f[R] or \f[V]--help\f[R] option: \f[V]dotnet new --help\f[R] lists all supported options for the subcommand.
.PP
Additionally, tab completion is now available for \f[V]dotnet new\f[R].
+It supports completion for installed template names and for the options a selected template provides.
+To activate tab completion for the .NET SDK, see Enable tab completion.
+.SS Tab completion
+.PP
+Starting with .NET SDK 7.0.100, tab completion is available for \f[V]dotnet new\f[R].
It supports completion for installed template names, as well as completion for the options a selected template provides.
To activate tab completion for the .NET SDK, see Enable tab completion.
.SS Implicit restore
@@ -73,16 +80,16 @@ The template to instantiate when the command is invoked.
Each template might have specific options you can pass.
For more information, see Template options.
.PP
-You can run \f[V]dotnet new --list\f[R] to see a list of all installed templates.
+You can run \f[V]dotnet new list\f[R] to see a list of all installed templates.
.PP
-Starting with .NET Core 3.0 SDK and ending with .NET Core 5.0.300 SDK, the CLI searches for templates in NuGet.org when you invoke the \f[V]dotnet new\f[R] command in the following conditions:
+Starting with .NET Core 3.0 SDK and ending with .NET SDK 5.0.300, the CLI searches for templates in NuGet.org when you invoke the \f[V]dotnet new\f[R] command in the following conditions:
.IP \[bu] 2
If the CLI can\[cq]t find a template match when invoking \f[V]dotnet new\f[R], not even partial.
.IP \[bu] 2
If there\[cq]s a newer version of the template available.
In this case, the project or artifact is created but the CLI warns you about an updated version of the template.
.PP
-Starting with .NET Core 5.0.300 SDK, the \f[V]--search\f[R] option should be used to search for templates in NuGet.org..
+Starting with .NET SDK 5.0.300, the \f[V]search\f[R] command should be used to search for templates in NuGet.org.
.PP
The following table shows the templates that come pre-installed with the .NET SDK.
The default language for the template is shown inside the brackets.
@@ -542,7 +549,7 @@ If no name is specified, the name of the current directory is used.
.RS 2
.PP
Disables checking for template package updates when instantiating a template.
-Available since .NET 6.0.100 SDK.
+Available since .NET SDK 6.0.100.
When instantiating the template from a template package that was installed by using \f[V]dotnet new --install\f[R], \f[V]dotnet new\f[R] checks if there is an update for the template.
Starting with .NET 6, no update checks are done for .NET default templates.
To update .NET default templates, install the patch version of the .NET SDK.
@@ -554,6 +561,30 @@ To update .NET default templates, install the patch version of the .NET SDK.
Location to place the generated output.
The default is the current directory.
.RE
+.IP \[bu] 2
+\f[B]\f[VB]--project \f[B]\f[R]
+.RS 2
+.PP
+The project that the template is added to.
+This project is used for context evaluation.
+If not specified, the project in the current or parent directories will be used.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-d|--diagnostics\f[B]\f[R]
+.RS 2
+.PP
+Enables diagnostic output.
+Available since .NET SDK 7.0.100.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-v|--verbosity \f[B]\f[R]
+.RS 2
+.PP
+Sets the verbosity level of the command.
+Allowed values are \f[V]q[uiet]\f[R], \f[V]m[inimal]\f[R], \f[V]n[ormal]\f[R], and \f[V]diag[nostic]\f[R].
+Available since .NET SDK 7.0.100.
+.RE
.SS Template options
.PP
Each template may have additional options defined.
@@ -641,11 +672,11 @@ dotnet new console --language \[dq]F#\[dq] -h
.RE
.SH SEE ALSO
.IP \[bu] 2
-dotnet new \[en]list option
+dotnet new list command
.IP \[bu] 2
-dotnet new \[en]search option
+dotnet new search command
.IP \[bu] 2
-dotnet new \[en]install option
+dotnet new install command
.IP \[bu] 2
\&.NET default templates for dotnet new
.IP \[bu] 2
diff --git a/documentation/manpages/sdk/dotnet-nuget-add-source.1 b/documentation/manpages/sdk/dotnet-nuget-add-source.1
index 6770dc08e081..d9c14fc28009 100644
--- a/documentation/manpages/sdk/dotnet-nuget-add-source.1
+++ b/documentation/manpages/sdk/dotnet-nuget-add-source.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-add-source" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-add-source" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet nuget add source
.PP
diff --git a/documentation/manpages/sdk/dotnet-nuget-delete.1 b/documentation/manpages/sdk/dotnet-nuget-delete.1
index e000c7aa0383..8a8e3346802c 100644
--- a/documentation/manpages/sdk/dotnet-nuget-delete.1
+++ b/documentation/manpages/sdk/dotnet-nuget-delete.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-delete" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-delete" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet nuget delete
.PP
diff --git a/documentation/manpages/sdk/dotnet-nuget-disable-source.1 b/documentation/manpages/sdk/dotnet-nuget-disable-source.1
index 2839595d2b81..ac796bbc642d 100644
--- a/documentation/manpages/sdk/dotnet-nuget-disable-source.1
+++ b/documentation/manpages/sdk/dotnet-nuget-disable-source.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-disable-source" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-disable-source" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet nuget disable source
.PP
diff --git a/documentation/manpages/sdk/dotnet-nuget-enable-source.1 b/documentation/manpages/sdk/dotnet-nuget-enable-source.1
index 3e0efe886376..6578e524ed79 100644
--- a/documentation/manpages/sdk/dotnet-nuget-enable-source.1
+++ b/documentation/manpages/sdk/dotnet-nuget-enable-source.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-enable-source" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-enable-source" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet nuget enable source
.PP
diff --git a/documentation/manpages/sdk/dotnet-nuget-list-source.1 b/documentation/manpages/sdk/dotnet-nuget-list-source.1
index 762ea811f549..e4440bdf7a03 100644
--- a/documentation/manpages/sdk/dotnet-nuget-list-source.1
+++ b/documentation/manpages/sdk/dotnet-nuget-list-source.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-list-source" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-list-source" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet nuget list source
.PP
diff --git a/documentation/manpages/sdk/dotnet-nuget-locals.1 b/documentation/manpages/sdk/dotnet-nuget-locals.1
index 6547cf82e1d0..cadbc4cde878 100644
--- a/documentation/manpages/sdk/dotnet-nuget-locals.1
+++ b/documentation/manpages/sdk/dotnet-nuget-locals.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-locals" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-locals" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet nuget locals
.PP
diff --git a/documentation/manpages/sdk/dotnet-nuget-push.1 b/documentation/manpages/sdk/dotnet-nuget-push.1
index b0e416b43d5b..43a9ba2cf800 100644
--- a/documentation/manpages/sdk/dotnet-nuget-push.1
+++ b/documentation/manpages/sdk/dotnet-nuget-push.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-push" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-push" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet nuget push
.PP
@@ -152,8 +152,10 @@ Push \f[I]foo.nupkg\f[R] to the official NuGet server, specifying an API key:
dotnet nuget push foo.nupkg -k 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -s https://api.nuget.org/v3/index.json
\f[R]
.fi
+.RE
.IP \[bu] 2
Push \f[I]foo.nupkg\f[R] to the custom push source \f[V]https://customsource\f[R], specifying an API key:
+.RS 2
.IP
.nf
\f[C]
@@ -230,6 +232,10 @@ Push all \f[I].nupkg\f[R] files in the current directory to a local feed directo
dotnet nuget push \[dq]*.nupkg\[dq] -s c:\[rs]mydir
\f[R]
.fi
+.RE
+.IP \[bu] 2
+For pushing to Azure Artifacts, see Azure Artifacts\[cq] push documentation.
+.RS 2
.PP
This command doesn\[cq]t store packages in a hierarchical folder structure, which is recommended to optimize performance.
For more information, see Local feeds.
diff --git a/documentation/manpages/sdk/dotnet-nuget-remove-source.1 b/documentation/manpages/sdk/dotnet-nuget-remove-source.1
index aea192813d34..d6f88e523482 100644
--- a/documentation/manpages/sdk/dotnet-nuget-remove-source.1
+++ b/documentation/manpages/sdk/dotnet-nuget-remove-source.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-remove-source" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-remove-source" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet nuget remove source
.PP
diff --git a/documentation/manpages/sdk/dotnet-nuget-sign.1 b/documentation/manpages/sdk/dotnet-nuget-sign.1
index 30c922bc47ae..96bba18931ca 100644
--- a/documentation/manpages/sdk/dotnet-nuget-sign.1
+++ b/documentation/manpages/sdk/dotnet-nuget-sign.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-sign" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-sign" "1" "2022-11-08" "" ".NET Documentation"
.hy
.SH dotnet nuget sign
.PP
@@ -47,6 +47,11 @@ dotnet nuget sign -h|--help
.PP
The \f[V]dotnet nuget sign\f[R] command signs all the packages matching the first argument with a certificate.
The certificate with the private key can be obtained from a file or from a certificate installed in a certificate store by providing a subject name or a SHA-1 fingerprint.
+.RS
+.PP
+This command requires a certificate root store that\[cq]s valid for both code signing and timestamping.
+For more information, see NuGet signed package verification.
+.RE
.SH ARGUMENTS
.IP \[bu] 2
\f[B]\f[VB]package-path(s)\f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-nuget-trust.1 b/documentation/manpages/sdk/dotnet-nuget-trust.1
index 6424ba994f4a..6423b949f07e 100644
--- a/documentation/manpages/sdk/dotnet-nuget-trust.1
+++ b/documentation/manpages/sdk/dotnet-nuget-trust.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-trust" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-trust" "1" "2022-11-08" "" ".NET Documentation"
.hy
.SH dotnet nuget trust
.PP
@@ -38,6 +38,11 @@ By default, NuGet accepts all authors and repositories.
These commands allow you to specify only a specific subset of signers whose signatures will be accepted, while rejecting all others.
For more information, see Common NuGet configurations.
For details on what the nuget.config schema looks like, refer to the NuGet config file reference.
+.RS
+.PP
+This command requires a certificate root store that is valid for both code signing and timestamping.
+See NuGet signed package verification for details.
+.RE
.SH OPTIONS
.IP \[bu] 2
\f[B]\f[VB]-?|-h|--help\f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-nuget-update-source.1 b/documentation/manpages/sdk/dotnet-nuget-update-source.1
index a4d47c5c8072..6c5a5f83d324 100644
--- a/documentation/manpages/sdk/dotnet-nuget-update-source.1
+++ b/documentation/manpages/sdk/dotnet-nuget-update-source.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-update-source" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-update-source" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet nuget update source
.PP
diff --git a/documentation/manpages/sdk/dotnet-nuget-verify.1 b/documentation/manpages/sdk/dotnet-nuget-verify.1
index 56dfcf6366fe..46eb2d0f0909 100644
--- a/documentation/manpages/sdk/dotnet-nuget-verify.1
+++ b/documentation/manpages/sdk/dotnet-nuget-verify.1
@@ -15,7 +15,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-nuget-verify" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-nuget-verify" "1" "2022-11-08" "" ".NET Documentation"
.hy
.SH dotnet nuget verify
.PP
@@ -39,6 +39,11 @@ dotnet nuget verify -h|--help
.SH DESCRIPTION
.PP
The \f[V]dotnet nuget verify\f[R] command verifies a signed NuGet package.
+.RS
+.PP
+This command requires a certificate root store that is valid for both code signing and timestamping.
+See NuGet signed package verification for details.
+.RE
.SH ARGUMENTS
.IP \[bu] 2
\f[B]\f[VB]package-path(s)\f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-pack.1 b/documentation/manpages/sdk/dotnet-pack.1
index e4844a84c522..fdc31efb1762 100644
--- a/documentation/manpages/sdk/dotnet-pack.1
+++ b/documentation/manpages/sdk/dotnet-pack.1
@@ -15,7 +15,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-pack" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-pack" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet pack
.PP
@@ -65,17 +65,10 @@ The build can also fail if there is a locked file or other issue.
You can provide MSBuild properties to the \f[V]dotnet pack\f[R] command for the packing process.
For more information, see NuGet pack target properties and the MSBuild Command-Line Reference.
The Examples section shows how to use the MSBuild \f[V]-p\f[R] switch for a couple of different scenarios.
+.RS
.PP
-Web projects aren\[cq]t packable by default.
-To override the default behavior, add the following property to your \f[I].csproj\f[R] file:
-.IP
-.nf
-\f[C]
-
- true
-
-\f[R]
-.fi
+Web projects aren\[cq]t packable.
+.RE
.SS Implicit restore
.PP
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].
diff --git a/documentation/manpages/sdk/dotnet-publish.1 b/documentation/manpages/sdk/dotnet-publish.1
index 872455df1ac4..cf31e8276537 100644
--- a/documentation/manpages/sdk/dotnet-publish.1
+++ b/documentation/manpages/sdk/dotnet-publish.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-publish" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-publish" "1" "2022-10-24" "" ".NET Documentation"
.hy
.SH dotnet publish
.PP
@@ -32,9 +32,9 @@ dotnet publish [|] [-a|--arch ]
[--manifest ] [--no-build] [--no-dependencies]
[--no-restore] [--nologo] [-o|--output ]
[--os ] [-r|--runtime ]
- [--self-contained [true|false]] [--no-self-contained]
- [-s|--source ] [-v|--verbosity ]
- [--version-suffix ]
+ [--sc|--self-contained [true|false]] [--no-self-contained]
+ [-s|--source ] [--use-current-runtime, --ucr [true|false]]
+ [-v|--verbosity ] [--version-suffix ]
dotnet publish -h|--help
\f[R]
@@ -276,7 +276,7 @@ If you use this option, don\[cq]t use the \f[V]-r|--runtime\f[R] option.
Available since .NET 6.
.RE
.IP \[bu] 2
-\f[B]\f[VB]--self-contained [true|false]\f[B]\f[R]
+\f[B]\f[VB]--sc|--self-contained [true|false]\f[B]\f[R]
.RS 2
.PP
Publishes the .NET runtime with your application so the runtime doesn\[cq]t need to be installed on the target machine.
@@ -317,6 +317,14 @@ The default is \f[V]minimal\f[R].
For more information, see .
.RE
.IP \[bu] 2
+\f[B]\f[VB]--use-current-runtime, --ucr [true|false]\f[B]\f[R]
+.RS 2
+.PP
+Sets the \f[V]RuntimeIdentifier\f[R] to a platform portable \f[V]RuntimeIdentifier\f[R] based on the one of your machine.
+This happens implicitly with properties that require a \f[V]RuntimeIdentifier\f[R], such as \f[V]SelfContained\f[R], \f[V]PublishAot\f[R], \f[V]PublishSelfContained\f[R], \f[V]PublishSingleFile\f[R], and \f[V]PublishReadyToRun\f[R].
+If the property is set to false, that implicit resolution will no longer occur.
+.RE
+.IP \[bu] 2
\f[B]\f[VB]--version-suffix \f[B]\f[R]
.RS 2
.PP
diff --git a/documentation/manpages/sdk/dotnet-remove-package.1 b/documentation/manpages/sdk/dotnet-remove-package.1
index 1edfbc7a434c..c2677958e921 100644
--- a/documentation/manpages/sdk/dotnet-remove-package.1
+++ b/documentation/manpages/sdk/dotnet-remove-package.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-remove-package" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-remove-package" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet remove package
.PP
diff --git a/documentation/manpages/sdk/dotnet-remove-reference.1 b/documentation/manpages/sdk/dotnet-remove-reference.1
index eb72330eb8ab..da22d2bb3c05 100644
--- a/documentation/manpages/sdk/dotnet-remove-reference.1
+++ b/documentation/manpages/sdk/dotnet-remove-reference.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-remove-reference" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-remove-reference" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet remove reference
.PP
diff --git a/documentation/manpages/sdk/dotnet-restore.1 b/documentation/manpages/sdk/dotnet-restore.1
index ac9ff4b5a36b..9253c251f336 100644
--- a/documentation/manpages/sdk/dotnet-restore.1
+++ b/documentation/manpages/sdk/dotnet-restore.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-restore" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-restore" "1" "2022-11-08" "" ".NET Documentation"
.hy
.SH dotnet restore
.PP
@@ -58,6 +58,11 @@ In most cases, you don\[cq]t need to explicitly use the \f[V]dotnet restore\f[R]
Sometimes, it might be inconvenient to run the implicit NuGet restore with these commands.
For example, some automated systems, such as build systems, need to call \f[V]dotnet restore\f[R] explicitly to control when the restore occurs so that they can control network usage.
To prevent the implicit NuGet restore, you can use the \f[V]--no-restore\f[R] flag with any of these commands to disable implicit restore.
+.RS
+.PP
+Signed package verification during restore operations requires a certificate root store that is valid for both code signing and timestamping.
+See NuGet signed package verification for details.
+.RE
.SS Specify feeds
.PP
To restore the dependencies, NuGet needs the feeds where the packages are located.
@@ -206,7 +211,6 @@ Specifies the directory for restored packages.
Specifies a runtime for the package restore.
This is used to restore packages for runtimes not explicitly listed in the \f[V]\f[R] tag in the \f[I].csproj\f[R] file.
For a list of Runtime Identifiers (RIDs), see the RID catalog.
-Provide multiple RIDs by specifying this option multiple times.
.RE
.IP \[bu] 2
\f[B]\f[VB]-s|--source \f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-run.1 b/documentation/manpages/sdk/dotnet-run.1
index b2b83d038e0f..1b79a1de052a 100644
--- a/documentation/manpages/sdk/dotnet-run.1
+++ b/documentation/manpages/sdk/dotnet-run.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-run" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-run" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet run
.PP
@@ -151,7 +151,7 @@ For more information, see Working with multiple environments.
.RS 2
.PP
Doesn\[cq]t build the project before running.
-It also implicit sets the \f[V]--no-restore\f[R] flag.
+It also implicitly sets the \f[V]--no-restore\f[R] flag.
.RE
.IP \[bu] 2
\f[B]\f[VB]--no-dependencies\f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-sdk-check.1 b/documentation/manpages/sdk/dotnet-sdk-check.1
index 49ea1c5d1a53..a0cc0b009c1b 100644
--- a/documentation/manpages/sdk/dotnet-sdk-check.1
+++ b/documentation/manpages/sdk/dotnet-sdk-check.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-sdk-check" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-sdk-check" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet sdk check
.PP
diff --git a/documentation/manpages/sdk/dotnet-sln.1 b/documentation/manpages/sdk/dotnet-sln.1
index 9a23e4ff0c5d..86fe17611c7e 100644
--- a/documentation/manpages/sdk/dotnet-sln.1
+++ b/documentation/manpages/sdk/dotnet-sln.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-sln" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-sln" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet sln
.PP
@@ -182,7 +182,7 @@ dotnet sln [] remove [-h|--help]
.RS 2
.PP
The solution file to use.
-If is left unspecified, the command searches the current directory for one and fails if there are multiple solution files.
+If it is unspecified, the command searches the current directory for one and fails if there are multiple solution files.
.RE
.IP \[bu] 2
\f[B]\f[VB]PROJECT_PATH\f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-store.1 b/documentation/manpages/sdk/dotnet-store.1
index b0bf13c9a720..56054106158b 100644
--- a/documentation/manpages/sdk/dotnet-store.1
+++ b/documentation/manpages/sdk/dotnet-store.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-store" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-store" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet store
.PP
diff --git a/documentation/manpages/sdk/dotnet-test.1 b/documentation/manpages/sdk/dotnet-test.1
index 80fc2021729e..04332ef15a98 100644
--- a/documentation/manpages/sdk/dotnet-test.1
+++ b/documentation/manpages/sdk/dotnet-test.1
@@ -15,7 +15,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-test" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-test" "1" "2022-11-11" "" ".NET Documentation"
.hy
.SH dotnet test
.PP
@@ -28,19 +28,32 @@ dotnet-test - .NET test driver used to execute unit tests.
.nf
\f[C]
dotnet test [ | | | | ]
- [-a|--test-adapter-path ] [--arch ]
- [--blame] [--blame-crash]
- [--blame-crash-dump-type ] [--blame-crash-collect-always]
- [--blame-hang] [--blame-hang-dump-type ]
+ [--test-adapter-path ]
+ [-a|--arch ]
+ [--blame]
+ [--blame-crash]
+ [--blame-crash-dump-type ]
+ [--blame-crash-collect-always]
+ [--blame-hang]
+ [--blame-hang-dump-type ]
[--blame-hang-timeout ]
[-c|--configuration ]
[--collect ]
- [-d|--diag ] [-f|--framework ]
- [--filter ] [--interactive]
- [-l|--logger ] [--no-build]
- [--nologo] [--no-restore] [-o|--output ] [--os ]
- [-r|--results-directory ] [--runtime ]
- [-s|--settings ] [-t|--list-tests]
+ [-d|--diag ]
+ [-f|--framework ]
+ [-e|--environment ]
+ [--filter ]
+ [--interactive]
+ [-l|--logger ]
+ [--no-build]
+ [--nologo]
+ [--no-restore]
+ [-o|--output ]
+ [--os ]
+ [--results-directory ]
+ [-r|--runtime ]
+ [-s|--settings ]
+ [-t|--list-tests]
[-v|--verbosity ]
[...]
[[--] ]
@@ -95,13 +108,23 @@ Path to a test project \f[I].exe\f[R] file.
If not specified, the effect is the same as using the \f[V]DIRECTORY\f[R] argument to specify the current directory.
.RE
.SH OPTIONS
+.RS
+.PP
+[!WARNING] Breaking changes in options:
+.IP \[bu] 2
+Starting in .NET 7: switch \f[V]-a\f[R] to alias \f[V]--arch\f[R] instead of \f[V]--test-adapter-path\f[R]
+.IP \[bu] 2
+Starting in .NET 7: switch \f[V]-r\f[R] to alias \f[V]--runtime\f[R] instead of \f[V]--results-dir\f[R]
+.RE
.IP \[bu] 2
-\f[B]\f[VB]-a|--test-adapter-path \f[B]\f[R]
+\f[B]\f[VB]--test-adapter-path \f[B]\f[R]
.RS 2
.PP
Path to a directory to be searched for additional test adapters.
Only \f[I].dll\f[R] files with suffix \f[V].TestAdapter.dll\f[R] are inspected.
If not specified, the directory of the test \f[I].dll\f[R] is searched.
+.PP
+Short form \f[V]-a\f[R] available in .NET SDK versions earlier than 7.
.RE
.IP \[bu] 2
\f[B]\f[VB]--arch \f[B]\f[R]
@@ -120,6 +143,8 @@ Available since .NET 6 Preview 7.
Runs the tests in blame mode.
This option is helpful in isolating problematic tests that cause the test host to crash.
When a crash is detected, it creates a sequence file in \f[V]TestResults//_Sequence.xml\f[R] that captures the order of tests that were run before the crash.
+.PP
+This option does not create a memory dump and is not helpful when the test is hanging.
.RE
.IP \[bu] 2
\f[B]\f[VB]--blame-crash\f[B]\f[R] (Available since .NET 5.0 SDK)
@@ -145,6 +170,7 @@ To collect a crash dump from a native application running on .NET 5.0 or later,
.RS 2
.PP
The type of crash dump to be collected.
+Supported dump types are \f[V]full\f[R] (default), and \f[V]mini\f[R].
Implies \f[V]--blame-crash\f[R].
.RE
.IP \[bu] 2
@@ -185,8 +211,9 @@ The timeout value is specified in one of the following formats:
.PP
When no unit is used (for example, 5400000), the value is assumed to be in milliseconds.
When used together with data driven tests, the timeout behavior depends on the test adapter used.
-For xUnit and NUnit the timeout is renewed after every test case.
-For MSTest, the timeout is used for all test cases.
+For xUnit, NUnit.
+and MSTest 2.2.4+, the timeout is renewed after every test case.
+For MSTest before version 2.2.4, the timeout is used for all test cases.
This option is supported on Windows with \f[V]netcoreapp2.1\f[R] and later, on Linux with \f[V]netcoreapp3.1\f[R] and later, and on macOS with \f[V]net5.0\f[R] or later.
Implies \f[V]--blame\f[R] and \f[V]--blame-hang\f[R].
.RE
@@ -204,11 +231,10 @@ The default for most projects is \f[V]Debug\f[R], but you can override the build
Enables data collector for the test run.
For more information, see Monitor and analyze test run (https://aka.ms/vstest-collect).
.PP
-To collect code coverage on any platform that is supported by .NET Core, install Coverlet (https://github.com/coverlet-coverage/coverlet/blob/master/README.md) and use the \f[V]--collect:\[dq]XPlat Code Coverage\[dq]\f[R] option.
-.PP
-On Windows, you can collect code coverage by using the \f[V]--collect \[dq]Code Coverage\[dq]\f[R] option.
-This option generates a \f[I].coverage\f[R] file, which can be opened in Visual Studio 2019 Enterprise.
+On Windows (x86, x64 and Arm64), Linux (x64) and macOS (x64), you can collect code coverage by using the \f[V]--collect \[dq]Code Coverage\[dq]\f[R] option.
For more information, see Use code coverage and Customize code coverage analysis.
+.PP
+To collect code coverage on any platform that is supported by .NET Core, install Coverlet (https://github.com/coverlet-coverage/coverlet/blob/master/README.md) and use the \f[V]--collect \[dq]XPlat Code Coverage\[dq]\f[R] option.
.RE
.IP \[bu] 2
\f[B]\f[VB]-d|--diag \f[B]\f[R]
@@ -218,6 +244,15 @@ Enables diagnostic mode for the test platform and writes diagnostic messages to
The process that is logging the messages determines which files are created, such as \f[V]*.host_.txt\f[R] for test host log, and \f[V]*.datacollector_.txt\f[R] for data collector log.
.RE
.IP \[bu] 2
+\f[B]\f[VB]-e|--environment \f[B]\f[R]
+.RS 2
+.PP
+Sets the value of an environment variable.
+Creates the variable if it does not exist, overrides if it does exist.
+Use of this option will force the tests to be run in an isolated process.
+The option can be specified multiple times to provide multiple variables.
+.RE
+.IP \[bu] 2
\f[B]\f[VB]-f|--framework \f[B]\f[R]
.RS 2
.PP
@@ -260,7 +295,7 @@ For more information, see Reporting test results (https://github.com/Microsoft/v
.RS 2
.PP
Doesn\[cq]t build the test project before running it.
-It also implicitly sets the - \f[V]--no-restore\f[R] flag.
+It also implicitly sets the \f[V]--no-restore\f[R] flag.
.RE
.IP \[bu] 2
\f[B]\f[VB]--nologo\f[B]\f[R]
@@ -296,18 +331,22 @@ If you use this option, don\[cq]t use the \f[V]-r|--runtime\f[R] option.
Available since .NET 6.
.RE
.IP \[bu] 2
-\f[B]\f[VB]-r|--results-directory \f[B]\f[R]
+\f[B]\f[VB]--results-directory \f[B]\f[R]
.RS 2
.PP
The directory where the test results are going to be placed.
If the specified directory doesn\[cq]t exist, it\[cq]s created.
The default is \f[V]TestResults\f[R] in the directory that contains the project file.
+.PP
+Short form \f[V]-r\f[R] available in .NET SDK versions earlier than 7.
.RE
.IP \[bu] 2
-\f[B]\f[VB]--runtime \f[B]\f[R]
+\f[B]\f[VB]-r|--runtime \f[B]\f[R]
.RS 2
.PP
The target runtime to test for.
+.PP
+Short form \f[V]-r\f[R] available starting in .NET SDK 7.
.RE
.IP \[bu] 2
\f[B]\f[VB]-s|--settings \f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-tool-install.1 b/documentation/manpages/sdk/dotnet-tool-install.1
index 11fa90e43a81..005195581797 100644
--- a/documentation/manpages/sdk/dotnet-tool-install.1
+++ b/documentation/manpages/sdk/dotnet-tool-install.1
@@ -15,7 +15,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-tool-install" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-tool-install" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet tool install
.PP
@@ -30,19 +30,22 @@ dotnet-tool-install - Installs the specified .NET tool on your machine.
dotnet tool install -g|--global
[--add-source ] [--configfile ] [--disable-parallel]
[--framework ] [--ignore-failed-sources] [--interactive]
- [--no-cache] [--tool-manifest ] [-v|--verbosity ]
+ [--no-cache] [--prerelease]
+ [--tool-manifest ] [-v|--verbosity ]
[--version ]
dotnet tool install --tool-path
[--add-source ] [--configfile ] [--disable-parallel]
[--framework ] [--ignore-failed-sources] [--interactive]
- [--no-cache] [--tool-manifest ] [-v|--verbosity ]
+ [--no-cache] [--prerelease]
+ [--tool-manifest ] [-v|--verbosity ]
[--version ]
dotnet tool install [--local]
[--add-source ] [--configfile ] [--disable-parallel]
[--framework ] [--ignore-failed-sources] [--interactive]
- [--no-cache] [--tool-manifest ] [-v|--verbosity ]
+ [--no-cache] [--prerelease]
+ [--tool-manifest ] [-v|--verbosity ]
[--version ]
dotnet tool install -h|--help
@@ -172,6 +175,12 @@ Can\[cq]t be combined with the \f[V]--global\f[R] option or the \f[V]--tool-path
Do not cache packages and HTTP requests.
.RE
.IP \[bu] 2
+\f[B]\f[VB]--prerelease\f[B]\f[R]
+.RS 2
+.PP
+Include prerelease packages.
+.RE
+.IP \[bu] 2
\f[B]\f[VB]--tool-manifest \f[B]\f[R]
.RS 2
.PP
diff --git a/documentation/manpages/sdk/dotnet-tool-list.1 b/documentation/manpages/sdk/dotnet-tool-list.1
index 8f513a535cd7..7e3506359832 100644
--- a/documentation/manpages/sdk/dotnet-tool-list.1
+++ b/documentation/manpages/sdk/dotnet-tool-list.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-tool-list" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-tool-list" "1" "2022-10-24" "" ".NET Documentation"
.hy
.SH dotnet tool list
.PP
diff --git a/documentation/manpages/sdk/dotnet-tool-restore.1 b/documentation/manpages/sdk/dotnet-tool-restore.1
index 172b33574cc5..cb148aff47cc 100644
--- a/documentation/manpages/sdk/dotnet-tool-restore.1
+++ b/documentation/manpages/sdk/dotnet-tool-restore.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-tool-restore" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-tool-restore" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet tool restore
.PP
diff --git a/documentation/manpages/sdk/dotnet-tool-run.1 b/documentation/manpages/sdk/dotnet-tool-run.1
index 498620e7f795..6dd2eaed1d94 100644
--- a/documentation/manpages/sdk/dotnet-tool-run.1
+++ b/documentation/manpages/sdk/dotnet-tool-run.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-tool-run" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-tool-run" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet tool run
.PP
diff --git a/documentation/manpages/sdk/dotnet-tool-search.1 b/documentation/manpages/sdk/dotnet-tool-search.1
index 345ffc6ebe49..d3e9283c3d77 100644
--- a/documentation/manpages/sdk/dotnet-tool-search.1
+++ b/documentation/manpages/sdk/dotnet-tool-search.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-tool-search" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-tool-search" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet tool search
.PP
diff --git a/documentation/manpages/sdk/dotnet-tool-uninstall.1 b/documentation/manpages/sdk/dotnet-tool-uninstall.1
index e0648c5860ad..c53f87c58bef 100644
--- a/documentation/manpages/sdk/dotnet-tool-uninstall.1
+++ b/documentation/manpages/sdk/dotnet-tool-uninstall.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-tool-uninstall" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-tool-uninstall" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet tool uninstall
.PP
diff --git a/documentation/manpages/sdk/dotnet-tool-update.1 b/documentation/manpages/sdk/dotnet-tool-update.1
index eaad49b836ab..1184c880d083 100644
--- a/documentation/manpages/sdk/dotnet-tool-update.1
+++ b/documentation/manpages/sdk/dotnet-tool-update.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-tool-update" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-tool-update" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet tool update
.PP
diff --git a/documentation/manpages/sdk/dotnet-vstest.1 b/documentation/manpages/sdk/dotnet-vstest.1
index eefa4ec983ae..36446c04cbea 100644
--- a/documentation/manpages/sdk/dotnet-vstest.1
+++ b/documentation/manpages/sdk/dotnet-vstest.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-vstest" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-vstest" "1" "2022-06-23" "" ".NET Documentation"
.hy
.SH dotnet vstest
.PP
@@ -26,7 +26,7 @@ See dotnet test.
.RE
.SH NAME
.PP
-\f[V]dotnet-vstest\f[R] - Runs tests from the specified assemblies.
+dotnet-vstest - Runs tests from the specified assemblies.
.SH SYNOPSIS
.IP
.nf
@@ -44,7 +44,7 @@ dotnet vstest -?|--Help
.fi
.SH DESCRIPTION
.PP
-The \f[V]dotnet-vstest\f[R] command runs the \f[V]VSTest.Console\f[R] command-line application to run automated unit tests.
+The \f[V]dotnet vstest\f[R] command runs the \f[V]VSTest.Console\f[R] command-line application to run automated unit tests.
.SH ARGUMENTS
.IP \[bu] 2
\f[B]\f[VB]TEST_FILE_NAMES\f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-watch.1 b/documentation/manpages/sdk/dotnet-watch.1
index 5acb94618c8e..e1016d422a79 100644
--- a/documentation/manpages/sdk/dotnet-watch.1
+++ b/documentation/manpages/sdk/dotnet-watch.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-watch" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-watch" "1" "2022-11-10" "" ".NET Documentation"
.hy
.SH dotnet watch
.PP
@@ -47,6 +47,29 @@ While running \f[V]dotnet watch\f[R], you can force the app to rebuild and resta
This feature is available only while the app is running.
For example, if you run \f[V]dotnet watch\f[R] on a console app that ends before you press Ctrl+R, pressing Ctrl+R has no effect.
However, in that case \f[V]dotnet watch\f[R] is still watching files and will restart the app if a file is updated.
+.SS Response compression
+.PP
+If \f[V]dotnet watch\f[R] runs for an app that uses response compression, the tool can\[cq]t inject the browser refresh script.
+The .NET 7 and later version of the tool displays a warning message like the following:
+.RS
+.PP
+warn: Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware[4]
+.PP
+Unable to configure browser refresh script injection on the response.
+This may have been caused by the response\[cq]s Content-Encoding: `br'.
+Consider disabling response compression.
+.RE
+.PP
+As an alternative to disabling response compression, manually add the browser refresh JavaScript reference to the app\[cq]s pages:
+.IP
+.nf
+\f[C]
+\[at]if (Environment.GetEnvironmentVariable(\[dq]__ASPNETCORE_BROWSER_TOOLS\[dq]) is not null)
+{
+
+}
+\f[R]
+.fi
.SH ARGUMENTS
.IP \[bu] 2
\f[B]\f[VB]forwarded arguments\f[B]\f[R]
@@ -76,6 +99,7 @@ Suppress hot reload for supported apps.
Runs \f[V]dotnet watch\f[R] in non-interactive mode.
Use this option to prevent console input from being requested.
When hot reload is enabled and a rude edit is detected, dotnet watch restarts the app.
+Available since .NET 7 SDK.
.RE
.IP \[bu] 2
\f[B]\f[VB]--project \f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-workload-install.1 b/documentation/manpages/sdk/dotnet-workload-install.1
index a08d4a4f9550..60863d90eb84 100644
--- a/documentation/manpages/sdk/dotnet-workload-install.1
+++ b/documentation/manpages/sdk/dotnet-workload-install.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-workload-install" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-workload-install" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet workload install
.PP
diff --git a/documentation/manpages/sdk/dotnet-workload-list.1 b/documentation/manpages/sdk/dotnet-workload-list.1
index 009c02d0a6c6..b3d433be1008 100644
--- a/documentation/manpages/sdk/dotnet-workload-list.1
+++ b/documentation/manpages/sdk/dotnet-workload-list.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-workload-list" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-workload-list" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet workload list
.PP
diff --git a/documentation/manpages/sdk/dotnet-workload-repair.1 b/documentation/manpages/sdk/dotnet-workload-repair.1
index 72e724ef5187..5badb80746e6 100644
--- a/documentation/manpages/sdk/dotnet-workload-repair.1
+++ b/documentation/manpages/sdk/dotnet-workload-repair.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-workload-repair" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-workload-repair" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet workload repair
.PP
@@ -42,13 +42,6 @@ Workloads are made up of multiple workload packs and it\[cq]s possible to get in
For example, a \f[V]dotnet workload install\f[R] command might not finish installing because of a dropped internet connection.
.PP
For more information about the \f[V]dotnet workload\f[R] commands, see the dotnet workload install command.
-.SH ARGUMENTS
-.IP \[bu] 2
-\f[B]\f[VB]WORKLOAD_ID\f[B]\f[R]
-.RS 2
-.PP
-The workload ID of the workload to repair.
-.RE
.SH OPTIONS
.IP \[bu] 2
\f[B]\f[VB]--configfile \f[B]\f[R]
diff --git a/documentation/manpages/sdk/dotnet-workload-restore.1 b/documentation/manpages/sdk/dotnet-workload-restore.1
index 58afc7f85196..2d7a8bc16f90 100644
--- a/documentation/manpages/sdk/dotnet-workload-restore.1
+++ b/documentation/manpages/sdk/dotnet-workload-restore.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-workload-restore" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-workload-restore" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet workload restore
.PP
diff --git a/documentation/manpages/sdk/dotnet-workload-search.1 b/documentation/manpages/sdk/dotnet-workload-search.1
index c21994c7636c..63cbe6926e66 100644
--- a/documentation/manpages/sdk/dotnet-workload-search.1
+++ b/documentation/manpages/sdk/dotnet-workload-search.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-workload-search" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-workload-search" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet workload search
.PP
diff --git a/documentation/manpages/sdk/dotnet-workload-uninstall.1 b/documentation/manpages/sdk/dotnet-workload-uninstall.1
index 91c1cbb56e1a..5addb567d442 100644
--- a/documentation/manpages/sdk/dotnet-workload-uninstall.1
+++ b/documentation/manpages/sdk/dotnet-workload-uninstall.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-workload-uninstall" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-workload-uninstall" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet workload uninstall
.PP
diff --git a/documentation/manpages/sdk/dotnet-workload-update.1 b/documentation/manpages/sdk/dotnet-workload-update.1
index d96d91005899..6a6c7fccb878 100644
--- a/documentation/manpages/sdk/dotnet-workload-update.1
+++ b/documentation/manpages/sdk/dotnet-workload-update.1
@@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet-workload-update" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet-workload-update" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet workload update
.PP
@@ -137,15 +137,3 @@ dotnet workload update
\f[R]
.fi
.RE
-.IP \[bu] 2
-Download the assets needed for updating installed workloads to a cache located in the \f[I]workload-cache\f[R] directory under the current directory.
-Then update installed workloads from that cache location:
-.RS 2
-.IP
-.nf
-\f[C]
-dotnet workload update --download-to-cache ./workload-cache
-dotnet workload update --from-cache ./workload-cache
-\f[R]
-.fi
-.RE
diff --git a/documentation/manpages/sdk/dotnet-workload.1 b/documentation/manpages/sdk/dotnet-workload.1
new file mode 100644
index 000000000000..afa4bffa724b
--- /dev/null
+++ b/documentation/manpages/sdk/dotnet-workload.1
@@ -0,0 +1,59 @@
+.\" Automatically generated by Pandoc 2.18
+.\"
+.\" Define V font for inline verbatim, using C font in formats
+.\" that render this, and otherwise B font.
+.ie "\f[CB]x\f[]"x" \{\
+. ftr V B
+. ftr VI BI
+. ftr VB B
+. ftr VBI BI
+.\}
+.el \{\
+. ftr V CR
+. ftr VI CI
+. ftr VB CB
+. ftr VBI CBI
+.\}
+.TH "dotnet-workload" "1" "2022-10-26" "" ".NET Documentation"
+.hy
+.SH dotnet workload command
+.PP
+\f[B]This article applies to:\f[R] \[u2714]\[uFE0F] .NET 7 SDK and later versions
+.SH NAME
+.PP
+dotnet-workload - Provides information about the available workload commands and installed workloads.
+.SH SYNOPSIS
+.IP
+.nf
+\f[C]
+dotnet workload [--info]
+
+dotnet workload -?|-h|--help
+\f[R]
+.fi
+.SH DESCRIPTION
+.PP
+The \f[V]dotnet workload\f[R] command provides commands for working with .NET workloads.
+For example, \f[V]dotnet workload install\f[R] installs a particular workload.
+Each command defines its own options and arguments.
+All commands support the \f[V]--help\f[R] option for printing out brief documentation about how to use the command.
+.SH OPTIONS
+.IP \[bu] 2
+\f[B]\f[VB]--info\f[B]\f[R]
+.RS 2
+.PP
+Prints out detailed information about installed workloads, including their installation source, manifest version, manifest path, and install type.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]-?|-h|--help\f[B]\f[R]
+.RS 2
+.PP
+Prints out a list of available commands.
+.RE
+.SH SEE ALSO
+.IP \[bu] 2
+Install a workload
+.IP \[bu] 2
+List the installed workloads on your machine
+.IP \[bu] 2
+Show workloads available to install
diff --git a/documentation/manpages/sdk/dotnet.1 b/documentation/manpages/sdk/dotnet.1
index 801d2777f36c..3192ae079b47 100644
--- a/documentation/manpages/sdk/dotnet.1
+++ b/documentation/manpages/sdk/dotnet.1
@@ -15,7 +15,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
-.TH "dotnet" "1" "2022-06-03" "" ".NET Documentation"
+.TH "dotnet" "1" "2022-10-10" "" ".NET Documentation"
.hy
.SH dotnet command
.PP
@@ -53,7 +53,9 @@ dotnet [--additionalprobingpath ] [--additional-deps ]
[arguments]
dotnet exec [--additionalprobingpath] [--additional-deps ]
+ [--depsfile ]
[--fx-version ] [--roll-forward ]
+ [--runtimeconfig ]
[arguments]
\f[R]
.fi
@@ -79,11 +81,17 @@ See .NET application deployment to learn about deployment options.
.RE
.SH OPTIONS
.PP
-Different options are available for \f[V]dotnet\f[R] by itself, for running a command, and for running an application.
-.SS Options for dotnet by itself
+Different options are available for:
+.IP \[bu] 2
+Displaying information about the environment.
+.IP \[bu] 2
+Running a command.
+.IP \[bu] 2
+Running an application.
+.SS Options for displaying environment information and available commands
.PP
-The following options are for \f[V]dotnet\f[R] by itself.
-For example, \f[V]dotnet --info\f[R].
+The following options are available when \f[V]dotnet\f[R] is used by itself, without specifying a command or an application to run.
+For example, \f[V]dotnet --info\f[R] or \f[V]dotnet --version\f[R].
They print out information about the environment.
.IP \[bu] 2
\f[B]\f[VB]--info\f[B]\f[R]
@@ -94,8 +102,8 @@ Prints out detailed information about a .NET installation and the machine enviro
.IP \[bu] 2
\f[B]\f[VB]--version\f[B]\f[R]
.PP
-Prints out the version of the .NET SDK used by dotnet commands.
-Includes the effects of any global.json
+Prints out the version of the .NET SDK used by \f[V]dotnet\f[R] commands, which may be affected by a \f[I]global.json\f[R] file.
+Available only when the SDK is installed.
.IP \[bu] 2
\f[B]\f[VB]--list-runtimes\f[B]\f[R]
.RS 2
@@ -115,10 +123,10 @@ Prints out a list of the installed .NET SDKs.
.PP
Prints out a list of available commands.
.RE
-.SS SDK options for running a command
+.SS Options for running a command
.PP
The following options are for \f[V]dotnet\f[R] with a command.
-For example, \f[V]dotnet build --help\f[R].
+For example, \f[V]dotnet build --help\f[R] or \f[V]dotnet build --verbosity diagnostic\f[R].
.IP \[bu] 2
\f[B]\f[VB]-d|--diagnostics\f[B]\f[R]
.RS 2
@@ -138,7 +146,8 @@ See specific command page to determine if this option is available.
\f[B]\f[VB]-?|-h|--help\f[B]\f[R]
.RS 2
.PP
-Prints out documentation for a given command, such as \f[V]dotnet build --help\f[R].
+Prints out documentation for a given command.
+For example, \f[V]dotnet build --help\f[R] displays help for the \f[V]build\f[R] command.
.RE
.IP \[bu] 2
\f[B]\f[VB]command options\f[B]\f[R]
@@ -147,15 +156,17 @@ Prints out documentation for a given command, such as \f[V]dotnet build --help\f
Each command defines options specific to that command.
See specific command page for a list of available options.
.RE
-.SS Runtime options
+.SS Options for running an application
.PP
The following options are available when \f[V]dotnet\f[R] runs an application.
-For example, \f[V]dotnet myapp.dll --roll-forward Major\f[R].
+For example, \f[V]dotnet --roll-forward Major myapp.dll\f[R].
+.PP
.IP \[bu] 2
\f[B]\f[VB]--additionalprobingpath \f[B]\f[R]
.RS 2
.PP
Path containing probing policy and assemblies to probe.
+Repeat the option to specify multiple paths.
.RE
.IP \[bu] 2
\f[B]\f[VB]--additional-deps \f[B]\f[R]
@@ -165,22 +176,7 @@ Path to an additional \f[I].deps.json\f[R] file.
A \f[I]deps.json\f[R] file contains a list of dependencies, compilation dependencies, and version information used to address assembly conflicts.
For more information, see Runtime Configuration Files (https://github.com/dotnet/sdk/blob/main/documentation/specs/runtime-configuration-file.md) on GitHub.
.RE
-.IP \[bu] 2
-\f[B]\f[VB]--depsfile \f[B]\f[R]
-.RS 2
-.PP
-Path to the \f[I]deps.json\f[R] file.
-A \f[I]deps.json\f[R] file is a configuration file that contains information about dependencies necessary to run the application.
-This file is generated by the .NET SDK.
-.RE
-.IP \[bu] 2
-\f[B]\f[VB]--runtimeconfig\f[B]\f[R]
-.RS 2
.PP
-Path to a \f[I]runtimeconfig.json\f[R] file.
-A \f[I]runtimeconfig.json\f[R] file is a configuration file that contains run-time settings.
-For more information, see .NET runtime configuration settings.
-.RE
.IP \[bu] 2
\f[B]\f[VB]--roll-forward \f[B]\f[R] **
.RS 2
@@ -224,6 +220,26 @@ This option overrides the version of the first framework reference in the applic
This means it only works as expected if there\[cq]s just one framework reference.
If the application has more than one framework reference, using this option may cause errors.
.RE
+.SS Options for running an application with the \f[V]exec\f[R] command
+.PP
+The following options are available only when \f[V]dotnet\f[R] runs an application by using the \f[V]exec\f[R] command.
+For example, \f[V]dotnet exec --runtimeconfig myapp.runtimeconfig.json myapp.dll\f[R].
+.IP \[bu] 2
+\f[B]\f[VB]--depsfile \f[B]\f[R]
+.RS 2
+.PP
+Path to a \f[I]deps.json\f[R] file.
+A \f[I]deps.json\f[R] file is a configuration file that contains information about dependencies necessary to run the application.
+This file is generated by the .NET SDK.
+.RE
+.IP \[bu] 2
+\f[B]\f[VB]--runtimeconfig \f[B]\f[R]
+.RS 2
+.PP
+Path to a \f[I]runtimeconfig.json\f[R] file.
+A \f[I]runtimeconfig.json\f[R] file contains run-time settings and is typically named \f[I].runtimeconfig.json\f[R].
+For more information, see .NET runtime configuration settings.
+.RE
.SS dotnet commands
.SS General
.PP
@@ -252,6 +268,11 @@ T}@T{
Clean build outputs.
T}
T{
+dotnet exec
+T}@T{
+Runs a .NET application.
+T}
+T{
dotnet help
T}@T{
Shows more detailed documentation online for the command.
@@ -560,6 +581,12 @@ Run an application:
.IP
.nf
\f[C]
+dotnet exec myapp.dll
+\f[R]
+.fi
+.IP
+.nf
+\f[C]
dotnet myapp.dll
\f[R]
.fi
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index e64c25512c61..9e22c7ea8e30 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -135,6 +135,10 @@
https://dev.azure.com/dnceng/internal/_git/dotnet-runtime
d099f075e45d2aa6007a22b71b45a08758559f80
+
+ https://dev.azure.com/dnceng/internal/_git/dotnet-runtime
+ d099f075e45d2aa6007a22b71b45a08758559f80
+
https://dev.azure.com/dnceng/internal/_git/dotnet-runtime
d099f075e45d2aa6007a22b71b45a08758559f80
@@ -143,6 +147,10 @@
https://dev.azure.com/dnceng/internal/_git/dotnet-runtime
d099f075e45d2aa6007a22b71b45a08758559f80
+
+ https://dev.azure.com/dnceng/internal/_git/dotnet-runtime
+ d099f075e45d2aa6007a22b71b45a08758559f80
+
https://dev.azure.com/dnceng/internal/_git/dotnet-windowsdesktop
417429fc040af552532bb07aad29e5e8639b840f
diff --git a/eng/Versions.props b/eng/Versions.props
index 935e7239d391..871e28b5e1bd 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -59,7 +59,7 @@
6.0.0
$(MicrosoftExtensionsDependencyModelPackageVersion)
6.0.0
- 7.0.0-preview.4.22201.3
+ 7.0.0
@@ -159,7 +159,7 @@
7.0.0-rtm.22518.19
7.0.0
-
+
7.0.0-preview.22601.12
7.0.0-preview.22601.12
diff --git a/src/Assets/DesktopTestProjects/MultiTFMXunitProject/XUnitProject/XUnitProject.csproj b/src/Assets/DesktopTestProjects/MultiTFMXunitProject/XUnitProject/XUnitProject.csproj
index 89d04fdbdb84..a2cf306a20c4 100644
--- a/src/Assets/DesktopTestProjects/MultiTFMXunitProject/XUnitProject/XUnitProject.csproj
+++ b/src/Assets/DesktopTestProjects/MultiTFMXunitProject/XUnitProject/XUnitProject.csproj
@@ -2,7 +2,7 @@
- net462;netcoreapp3.1
+ net462;$(CurrentTargetFramework)
diff --git a/src/Assets/DesktopTestProjects/NETFrameworkReferenceNETStandard20/MultiTFMTestApp/MultiTFMTestApp.csproj b/src/Assets/DesktopTestProjects/NETFrameworkReferenceNETStandard20/MultiTFMTestApp/MultiTFMTestApp.csproj
index 9033e898165a..b1456d4d8a94 100644
--- a/src/Assets/DesktopTestProjects/NETFrameworkReferenceNETStandard20/MultiTFMTestApp/MultiTFMTestApp.csproj
+++ b/src/Assets/DesktopTestProjects/NETFrameworkReferenceNETStandard20/MultiTFMTestApp/MultiTFMTestApp.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.1;net462
+ $(CurrentTargetFramework);net462
diff --git a/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs b/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs
index d583a660b066..6c04aeb99b33 100644
--- a/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs
+++ b/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs
@@ -58,6 +58,9 @@ public void Configure()
if (ShouldPrintFirstTimeUseNotice())
{
Stopwatch beforeFirstTimeUseNotice = Stopwatch.StartNew();
+ // Migrate the nuget state from earlier SDKs
+ NuGet.Common.Migrations.MigrationRunner.Run();
+
if (!_dotnetFirstRunConfiguration.NoLogo)
{
PrintFirstTimeMessageWelcome();
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs
index 716a7f37c3cf..5d21bc96e846 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs
+++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs
@@ -143,21 +143,14 @@ private bool ValidateCrossgen2Support()
bool version5 = crossgen2PackVersion.Major < 6;
bool isSupportedTarget = ExtractTargetPlatformAndArchitecture(_targetRuntimeIdentifier, out _targetPlatform, out _targetArchitecture);
- string targetOS = _targetPlatform switch
- {
- "linux" => "linux",
- "linux-musl" => "linux",
- "osx" => "osx",
- "win" => "windows",
- _ => null
- };
// In .NET 5 Crossgen2 supported only the following host->target compilation scenarios:
// win-x64 -> win-x64
// linux-x64 -> linux-x64
// linux-musl-x64 -> linux-musl-x64
+ string targetOS = null;
isSupportedTarget = isSupportedTarget &&
- targetOS != null &&
+ GetCrossgen2TargetOS(out targetOS) &&
(!version5 || _targetRuntimeIdentifier == _hostRuntimeIdentifier) &&
GetCrossgen2ComponentsPaths(version5);
@@ -188,6 +181,48 @@ private bool ValidateCrossgen2Support()
return true;
}
+ private bool GetCrossgen2TargetOS(out string targetOS)
+ {
+ targetOS = null;
+
+ // Determine targetOS based on target rid.
+ // Use the runtime graph to support non-portable target rids.
+ var runtimeGraph = new RuntimeGraphCache(this).GetRuntimeGraph(RuntimeGraphPath);
+ string portablePlatform = NuGetUtils.GetBestMatchingRid(
+ runtimeGraph,
+ _targetPlatform,
+ new[] { "linux", "linux-musl", "osx", "win" },
+ out _);
+
+ // For source-build, allow the bootstrap SDK rid to be unknown to the runtime repo graph.
+ if (portablePlatform == null && _targetRuntimeIdentifier == _hostRuntimeIdentifier)
+ {
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ {
+ portablePlatform = "linux";
+ }
+ else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
+ {
+ portablePlatform = "win";
+ }
+ else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
+ {
+ portablePlatform = "osx";
+ }
+ }
+
+ targetOS = portablePlatform switch
+ {
+ "linux" => "linux",
+ "linux-musl" => "linux",
+ "osx" => "osx",
+ "win" => "windows",
+ _ => null
+ };
+
+ return targetOS != null;
+ }
+
private ITaskItem GetNETCoreAppRuntimePack()
{
return GetNETCoreAppPack(RuntimePacks, MetadataKeys.FrameworkName);
diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASelfContainedApp.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASelfContainedApp.cs
index 82fbfd804c79..6c26e4cacb81 100644
--- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASelfContainedApp.cs
+++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASelfContainedApp.cs
@@ -349,11 +349,17 @@ static int Last2DigitsTo0(int versionBuild)
testRuntimePack.metadata["NuGetPackageVersion"].Should().Be("1.0.42-abc");
}
- [Theory]
+ [RequiresMSBuildVersionTheory("17.4.0.51802")]
[InlineData("net6.0")]
public void It_can_publish_runtime_specific_apps_with_library_dependencies_self_contained(string targetFramework)
{
+ // There's a bug when using the 6.0 SDK with 17.4 but we have limited control over the VS version used in helix
+ Version.TryParse(TestContext.Current.ToolsetUnderTest.MSBuildVersion, out Version msbuildVersion);
+ Version.TryParse("17.4.0", out Version maximumVersion);
+ if (msbuildVersion >= maximumVersion)
+ return;
+
// create a basic library and a basic app, reference the library from the app and then
// publish the app with a RID specified and self-contained.
// verify that no warnings about missing the --self-contained flag are emitted.
diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveNonSdkProjectRefs.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveNonSdkProjectRefs.cs
index a20ff3c569f5..adfa29abe511 100644
--- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveNonSdkProjectRefs.cs
+++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveNonSdkProjectRefs.cs
@@ -102,7 +102,7 @@ private TestProject CreateTestProject()
IsSdkProject = false,
TargetFrameworkVersion = targetFrameworkVersion
};
- auxLibraryProject.SourceFiles["Helper.cs"] = """
+ auxLibraryProject.SourceFiles["Helper.cs"] = @"
using System;
namespace AuxLibrary
@@ -111,11 +111,11 @@ public static class Helper
{
public static void WriteMessage()
{
- Console.WriteLine("This string came from AuxLibrary!");
+ Console.WriteLine(""This string came from AuxLibrary!"");
}
}
}
- """;
+ ";
var mainLibraryProject = new TestProject("MainLibrary")
{
@@ -123,7 +123,7 @@ public static void WriteMessage()
TargetFrameworkVersion = targetFrameworkVersion
};
mainLibraryProject.ReferencedProjects.Add(auxLibraryProject);
- mainLibraryProject.SourceFiles["Helper.cs"] = """
+ mainLibraryProject.SourceFiles["Helper.cs"] = @"
using System;
namespace MainLibrary
@@ -132,12 +132,12 @@ public static class Helper
{
public static void WriteMessage()
{
- Console.WriteLine("This string came from MainLibrary!");
+ Console.WriteLine(""This string came from MainLibrary!"");
AuxLibrary.Helper.WriteMessage();
}
}
}
- """;
+ ";
var testAppProject = new TestProject("TestApp")
{
@@ -146,7 +146,7 @@ public static void WriteMessage()
};
testAppProject.AdditionalProperties["ProduceReferenceAssembly"] = "false";
testAppProject.ReferencedProjects.Add(mainLibraryProject);
- testAppProject.SourceFiles["Program.cs"] = """
+ testAppProject.SourceFiles["Program.cs"] = @"
using System;
namespace TestApp
@@ -155,12 +155,12 @@ public class Program
{
public static void Main(string[] args)
{
- Console.WriteLine("TestApp --depends on--> MainLibrary --depends on--> AuxLibrary");
+ Console.WriteLine(""TestApp --depends on--> MainLibrary --depends on--> AuxLibrary"");
MainLibrary.Helper.WriteMessage();
}
}
}
- """;
+ ";
return testAppProject;
}
diff --git a/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs b/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs
index 940b231fa79e..4a87c906b614 100644
--- a/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs
+++ b/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs
@@ -295,7 +295,9 @@ public void ReferencedExeCanRunWhenPublishedWithTrimming(bool referenceExeInCode
CreateProjects();
- RunTest();
+ RunTest(callingMethod: System.Reflection.MethodBase.GetCurrentMethod().ToString()
+ .Replace("Void ","")
+ .Replace("Boolean",referenceExeInCode.ToString()));
}
[RequiresMSBuildVersionTheory("17.0.0.32901")]
diff --git a/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs b/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs
index c2871b869b4b..9a367928afd1 100644
--- a/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs
+++ b/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs
@@ -87,7 +87,7 @@ public void ItCanBuildAMultiTFMProjectWithImplicitRestore()
string projectDirectory = Path.Combine(testInstance.Path, "MultiTFMTestApp");
new DotnetBuildCommand(Log, projectDirectory)
- .Execute("--framework", "netcoreapp3.1")
+ .Execute("--framework", ToolsetInfo.CurrentTargetFramework)
.Should().Pass();
}
@@ -183,7 +183,7 @@ public void It_warns_on_rid_without_self_contained_options()
{
var testInstance = _testAssetsManager.CopyTestAsset("HelloWorld")
.WithSource()
- .WithTargetFrameworkOrFrameworks("net6.0", false)
+ .WithTargetFrameworkOrFrameworks(ToolsetInfo.CurrentTargetFramework, false)
.Restore(Log);
new DotnetBuildCommand(Log)
@@ -223,7 +223,7 @@ public void It_does_not_warn_on_rid_with_self_contained_options(string commandNa
{
var testInstance = _testAssetsManager.CopyTestAsset("HelloWorld", identifier: commandName)
.WithSource()
- .WithTargetFrameworkOrFrameworks("net6.0", false)
+ .WithTargetFrameworkOrFrameworks(ToolsetInfo.CurrentTargetFramework, false)
.Restore(Log);
new DotnetCommand(Log)
diff --git a/src/Tests/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs b/src/Tests/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs
index 71a547a81c62..599f789f5c8c 100644
--- a/src/Tests/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs
+++ b/src/Tests/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs
@@ -71,7 +71,7 @@ public void ItImplicitlyRestoresAProjectWhenPublishing()
.Should().Pass();
}
- [Fact(Skip = "https://github.com/dotnet/sdk/issues/19487")]
+ [Fact]
public void ItCanPublishAMultiTFMProjectWithImplicitRestore()
{
var testInstance = _testAssetsManager.CopyTestAsset(
diff --git a/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs b/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs
index 81d0b82b3127..00aeae946010 100644
--- a/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs
+++ b/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs
@@ -73,7 +73,7 @@ public void ItCanRunAMultiTFMProjectWithImplicitRestore()
new DotnetCommand(Log, "run")
.WithWorkingDirectory(projectDirectory)
- .Execute("--framework", "netcoreapp3.1")
+ .Execute("--framework", ToolsetInfo.CurrentTargetFramework)
.Should().Pass()
.And.HaveStdOutContaining("This string came from the test library!");
}
@@ -128,7 +128,7 @@ public void ItBuildsTheProjectBeforeRunning()
.And.HaveStdOutContaining("Hello World!");
}
- [Fact(Skip = "https://github.com/dotnet/sdk/issues/19487#issuecomment-898765210")]
+ [Fact]
public void ItCanRunAMSBuildProjectWhenSpecifyingAFramework()
{
var testAppName = "MSBuildTestApp";
@@ -139,7 +139,7 @@ public void ItCanRunAMSBuildProjectWhenSpecifyingAFramework()
new DotnetCommand(Log, "run")
.WithWorkingDirectory(testProjectDirectory)
- .Execute("--framework", "netcoreapp3.1")
+ .Execute("--framework", ToolsetInfo.CurrentTargetFramework)
.Should().Pass()
.And.HaveStdOut("Hello World!");
}
diff --git a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs
index 78f4983bdea0..12447f449793 100644
--- a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs
+++ b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs
@@ -142,7 +142,7 @@ public void ItCanTestAMultiTFMProjectWithImplicitRestore()
new DotnetTestCommand(Log, ConsoleLoggerOutputNormal)
.WithWorkingDirectory(projectDirectory)
- .Execute("--framework", "netcoreapp3.0")
+ .Execute("--framework", ToolsetInfo.CurrentTargetFramework)
.Should().Pass();
}