Skip to content

Commit 0f7c674

Browse files
committed
Update check for uninstalled templates
1 parent 6807ab2 commit 0f7c674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ProjectTemplates/Shared/TemplatePackageInstaller.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ internal static class TemplatePackageInstaller
3838
"Microsoft.DotNet.Web.Spa.ProjectTemplates.3.0",
3939
"Microsoft.DotNet.Web.Spa.ProjectTemplates.3.1",
4040
"Microsoft.DotNet.Web.Spa.ProjectTemplates.5.0",
41-
// "Microsoft.DotNet.Web.Spa.ProjectTemplates.6.0",
41+
"Microsoft.DotNet.Web.Spa.ProjectTemplates.6.0",
4242
"Microsoft.DotNet.Web.Spa.ProjectTemplates",
4343
"Microsoft.AspNetCore.Blazor.Templates",
4444
};
@@ -177,7 +177,7 @@ private static async Task VerifyCannotFindTemplateAsync(ITestOutputHelper output
177177
{
178178
var proc = await RunDotNetNew(output, $"\"{templateName}\"");
179179

180-
if (!proc.Output.Contains("Couldn't find an installed template that matches the input, searching online for one that does..."))
180+
if (!proc.Output.Contains("No templates found matching:"))
181181
{
182182
throw new InvalidOperationException($"Failed to uninstall previous templates. The template '{templateName}' could still be found.");
183183
}

0 commit comments

Comments
 (0)