You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -42,7 +42,7 @@ The \f[V]dotnet nuget locals\f[R] command clears or lists local NuGet resources
42
42
The cache location to list or clear.
43
43
It accepts one of the following values:
44
44
.IP\[bu]2
45
-
\f[V]all\f[R] - Indicates that the specified operation is applied to all cache types: http-request cache, global packages cache, and the temporary cache.
45
+
\f[V]all\f[R] - Indicates that the specified operation is applied to all cache types: http-request cache, global packages cache, temporary cache, and plugins cache.
46
46
.IP\[bu]2
47
47
\f[V]http-cache\f[R] - Indicates that the specified operation is applied only to the http-request cache.
48
48
The other cache locations aren\[cq]t affected.
@@ -52,6 +52,9 @@ The other cache locations aren\[cq]t affected.
52
52
.IP\[bu]2
53
53
\f[V]temp\f[R] - Indicates that the specified operation is applied only to the temporary cache.
54
54
The other cache locations aren\[cq]t affected.
55
+
.IP\[bu]2
56
+
\f[V]plugins-cache\f[R] - Indicates that the specified operation is applied only to the plugins cache.
57
+
The other cache locations aren\[cq]t affected.
55
58
.RE
56
59
.SH OPTIONS
57
60
.IP\[bu]2
@@ -83,7 +86,7 @@ The list option is used to display the location of the specified cache type.
83
86
.RE
84
87
.SH EXAMPLES
85
88
.IP\[bu]2
86
-
Displays the paths of all the local cache directories (http-cache directory, global-packages cache directory, and temporary cache directory):
89
+
Displays the paths of all the local cache directories (http-cache directory, global-packages cache directory, temporary cache directory, and plugins cache directory):
Clears all files from all local cache directories (http-cache directory, global-packages cache directory, and temporary cache directory):
109
+
Displays the path for the local plugins cache directory:
110
+
.RS2
111
+
.IP
112
+
.nf
113
+
\f[C]
114
+
dotnet nuget locals plugins-cache --list
115
+
\f[R]
116
+
.fi
117
+
.RE
118
+
.IP\[bu]2
119
+
Clears all files from all local cache directories (http-cache directory, global-packages cache directory, temporary cache directory, and plugins cache directory):
107
120
.RS2
108
121
.IP
109
122
.nf
@@ -132,6 +145,16 @@ dotnet nuget locals temp -c
132
145
\f[R]
133
146
.fi
134
147
.RE
148
+
.IP\[bu]2
149
+
Clears all files in local plugins cache directory:
150
+
.RS2
151
+
.IP
152
+
.nf
153
+
\f[C]
154
+
dotnet nuget locals plugins-cache -c
155
+
\f[R]
156
+
.fi
157
+
.RE
135
158
.SS Troubleshooting
136
159
.PP
137
160
For information on common problems and errors while using the \f[V]dotnet nuget locals\f[R] command, see Managing the NuGet cache.
@@ -49,8 +49,8 @@ The \f[V]dotnet nuget sign\f[R] command signs all the packages matching the firs
49
49
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.
50
50
.RS
51
51
.PP
52
-
This command requires a certificate root store that is valid for both code signing and timestamping.
53
-
Also, this command may not be supported on some combinations of operating system and .NET SDK.
52
+
This command requires a certificate root store that\[cq]s valid for both code signing and timestamping.
53
+
Also, this command might not be supported on some combinations of operating system and .NET SDK.
54
54
For more information, see NuGet signed package verification.
55
55
.RE
56
56
.SH ARGUMENTS
@@ -108,9 +108,11 @@ If there are multiple matching certificates in the result, or no matching certif
108
108
Specifies the fingerprint of the certificate used to search a local certificate store for the certificate.
109
109
.PP
110
110
Starting with .NET 9, this option can be used to specify the SHA-1, SHA-256, SHA-384, or SHA-512 fingerprint of the certificate.
111
-
However, a \f[V]NU3043\f[R] warning is raised when a SHA-1 certificate fingerprint is used because it is no longer considered secure.
111
+
However, a \f[V]NU3043\f[R] warning is raised when a SHA-1 certificate fingerprint is used because it\[cq]s no longer considered secure.
112
+
In .NET 10 and later versions, the warning is elevated to an error.
113
+
Only SHA-2 family fingerprints (SHA-256, SHA-384, and SHA-512) are supported.
112
114
.PP
113
-
All the previous versions of the .NET SDK continue to accept only SHA-1 certificate fingerprint.
115
+
All pre-.NET 9 versions of the .NET SDK continue to accept only SHA-1 certificate fingerprint.
Sign \f[I]foo.nupkg\f[R] with certificate (password protected) matches with the specified SHA-1 fingerprint in the default certificate store (CurrentUser):
201
+
Sign \f[I]foo.nupkg\f[R] with certificate (password protected) matches with the specified SHA-256 fingerprint in the default certificate store (CurrentUser):
@@ -57,7 +57,7 @@ The application\[cq]s dependencies, which are copied from the NuGet cache into t
57
57
The \f[V]dotnet publish\f[R] command\[cq]s output is ready for deployment to a hosting system (for example, a server, PC, Mac, laptop) for execution.
58
58
It\[cq]s the only officially supported way to prepare the application for deployment.
59
59
Depending on the type of deployment that the project specifies, the hosting system may or may not have the .NET shared runtime installed on it.
60
-
For more information, see Publish .NET apps with the .NET CLI.
60
+
For more information, see .NET application publishing overview.
61
61
.SS Implicit restore
62
62
.PP
63
63
You don\[cq]t have to run \f[V]dotnet restore\f[R] because it\[cq]s run implicitly by all commands that require a restore to occur, such as \f[V]dotnet new\f[R], \f[V]dotnet build\f[R], \f[V]dotnet run\f[R], \f[V]dotnet test\f[R], \f[V]dotnet publish\f[R], and \f[V]dotnet pack\f[R].
@@ -346,7 +346,7 @@ Available since .NET 6.
346
346
.PP
347
347
Publishes the .NET runtime with your application so the runtime doesn\[cq]t need to be installed on the target machine.
348
348
Default is \f[V]true\f[R] if a runtime identifier is specified and the project is an executable project (not a library project).
349
-
For more information, see .NET application publishing and Publish .NET apps with the .NET CLI.
349
+
For more information, see Self-contained deployment.
350
350
.PP
351
351
If this option is used without specifying \f[V]true\f[R] or \f[V]false\f[R], the default is \f[V]true\f[R].
352
352
In that case, don\[cq]t put the solution or project argument immediately after \f[V]--self-contained\f[R], because \f[V]true\f[R] or \f[V]false\f[R] is expected in that position.
@@ -369,7 +369,7 @@ The URI of the NuGet package source to use during the restore operation.
369
369
.PP
370
370
Publishes the application for a given runtime.
371
371
For a list of Runtime Identifiers (RIDs), see the RID catalog.
372
-
For more information, see .NET application publishing and Publish .NET apps with the .NET CLI.
372
+
For more information, see .NET application publishing overview.
373
373
If you use this option, use \f[V]--self-contained\f[R] or \f[V]--no-self-contained\f[R] also.
@@ -736,7 +736,6 @@ Passing runsettings arguments through commandline (https://github.com/microsoft/
736
736
dotnet test
737
737
[--project <PROJECT_PATH>]
738
738
[--solution <SOLUTION_PATH>]
739
-
[--directory <DIRECTORY_PATH>]
740
739
[--test-modules <EXPRESSION>]
741
740
[--root-directory <ROOT_PATH>]
742
741
[--max-parallel-test-modules <NUMBER>]
@@ -780,7 +779,7 @@ For information about how to manage NuGet feeds, see the \f[V]dotnet restore\f[R
780
779
.SH OPTIONS
781
780
.RS
782
781
.PP
783
-
You can use only one of the following options at a time: \f[V]--project\f[R], \f[V]--solution\f[R], \f[V]--directory\f[R], or \f[V]--test-modules\f[R].
782
+
You can use only one of the following options at a time: \f[V]--project\f[R], \f[V]--solution\f[R], or \f[V]--test-modules\f[R].
784
783
These options can\[cq]t be combined.
785
784
In addition, when using \f[V]--test-modules\f[R], you can\[cq]t specify \f[V]--arch\f[R], \f[V]--configuration\f[R], \f[V]--framework\f[R], \f[V]--os\f[R], or \f[V]--runtime\f[R].
786
785
These options are not relevant for an already-built module.
@@ -789,19 +788,15 @@ These options are not relevant for an already-built module.
789
788
\f[B]\f[VB]--project <PROJECT_PATH>\f[B]\f[R]
790
789
.RS2
791
790
.PP
792
-
Specifies the path to the test project.
791
+
Specifies the path of the project file to run (folder name or full path).
792
+
If not specified, it defaults to the current directory.
793
793
.RE
794
794
.IP\[bu]2
795
795
\f[B]\f[VB]--solution <SOLUTION_PATH>\f[B]\f[R]
796
796
.RS2
797
797
.PP
798
-
Specifies the path to the solution.
799
-
.RE
800
-
.IP\[bu]2
801
-
\f[B]\f[VB]--directory <DIRECTORY_PATH>\f[B]\f[R]
802
-
.RS2
803
-
.PP
804
-
Specifies the path to a directory that contains a project or a solution.
798
+
Specifies the path of the solution file to run (folder name or full path).
799
+
If not specified, it defaults to the current directory.
805
800
.RE
806
801
.IP\[bu]2
807
802
\f[B]\f[VB]--test-modules <EXPRESSION>\f[B]\f[R]
@@ -993,16 +988,6 @@ dotnet test --solution ./TestProjects/TestProjects.sln
993
988
.fi
994
989
.RE
995
990
.IP\[bu]2
996
-
Run the tests in a solution or project that can be found in the \f[V]TestProjects\f[R] directory:
997
-
.RS2
998
-
.IP
999
-
.nf
1000
-
\f[C]
1001
-
dotnet test --directory ./TestProjects
1002
-
\f[R]
1003
-
.fi
1004
-
.RE
1005
-
.IP\[bu]2
1006
991
Run the tests using \f[V]TestProject.dll\f[R] assembly:
0 commit comments