From b96b78410cf3afd8a03acd60f8da131dc3362aa8 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Tue, 27 Feb 2018 21:57:03 +0000 Subject: [PATCH] Minor improvements to "hosted" project template (e.g., "dotnet restore" post-action) --- .../.template.config/template.json | 15 ++++++++++++++- .../BlazorHosted/Shared/NavMenu.cshtml | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/.template.config/template.json b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/.template.config/template.json index 5458f07599..55dd8e2e83 100644 --- a/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/.template.config/template.json +++ b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/.template.config/template.json @@ -40,5 +40,18 @@ "tags": { "language": "C#", "type": "project" - } + }, + "postActions": [ + { + "condition": "(!skipRestore)", + "description": "Restore NuGet packages required by this project.", + "manualInstructions": [ + { + "text": "Run 'dotnet restore'" + } + ], + "actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025", + "continueOnError": true + } + ] } diff --git a/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted/Shared/NavMenu.cshtml b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted/Shared/NavMenu.cshtml index e2a502ce02..8fcc2b8528 100644 --- a/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted/Shared/NavMenu.cshtml +++ b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted/Shared/NavMenu.cshtml @@ -8,7 +8,7 @@ - BlazorStandalone.CSharp + BlazorHosted