From 29a7d4e5bc7ecef36f6ba578d4eaf52052a31740 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Thu, 22 Mar 2018 17:04:59 +0000 Subject: [PATCH] In Hosted template, exclude .sln when generating from VS (to avoid duplication) --- .../BlazorHosted.CSharp/.template.config/template.json | 8 ++++++++ 1 file changed, 8 insertions(+) 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 d27225c05c..f71fe1eb9f 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 @@ -53,6 +53,14 @@ "target": "./", "exclude": [ ".template.config/**" + ], + "modifiers": [ + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "exclude": [ + "*.sln" + ] + } ] } ],