Skip to content

Commit 53e7720

Browse files
authored
Fix dotnet new install syntax: use @ instead of deprecated :: (#10693)
The double-colon (::) version separator is deprecated in modern .NET SDKs (.NET 8+). This change updates the template install command to use the @ separator instead, matching the official documentation and avoiding deprecation warnings. Fixes #10692
1 parent 7556eaa commit 53e7720

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"dotnet-cli",
155155
".NET CLI",
156156
new PackageManagerViewModel.InstallPackageCommand(
157-
string.Format("dotnet new install {0}::{1}", Model.Id, Model.Version)
157+
string.Format("dotnet new install {0}@{1}", Model.Id, Model.Version)
158158
)
159159
)
160160
{

0 commit comments

Comments
 (0)