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
body: `This PR is targeting \`main\`, which is now for .NET 11-facing work. If you intended to target .NET 10, either retarget this PR to \`release/10.0.1xx\` or make sure you backport the change to \`release/10.0.1xx\` after merging. See https://github.com/dotnet/sdk/issues/50394 for more details.`
@@ -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):
0 commit comments