Brennan пре 3 година
родитељ
комит
d184b978d0
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      global.json
  2. 1 1
      src/ProjectTemplates/Shared/TemplatePackageInstaller.cs

+ 2 - 2
global.json

@@ -1,9 +1,9 @@
 {
   "sdk": {
-    "version": "7.0.100-rc.2.22426.5"
+    "version": "7.0.100-rc.2.22457.6"
   },
   "tools": {
-    "dotnet": "7.0.100-rc.2.22426.5",
+    "dotnet": "7.0.100-rc.2.22457.6",
     "runtimes": {
       "dotnet/x86": [
         "$(MicrosoftNETCoreBrowserDebugHostTransportVersion)"

+ 1 - 1
src/ProjectTemplates/Shared/TemplatePackageInstaller.cs

@@ -141,7 +141,7 @@ internal static class TemplatePackageInstaller
         {
             var proc = await RunDotNetNew(output, $"\"{templateName}\"");
 
-            if (!proc.Error.Contains("No templates found matching:"))
+            if (!proc.Error.Contains("No templates or subcommands found matching:"))
             {
                 throw new InvalidOperationException($"Failed to uninstall previous templates. The template '{templateName}' could still be found.");
             }