From dc0796a17a8403dc837b9da17f1187a72aa72403 Mon Sep 17 00:00:00 2001 From: Mackinnon Buck Date: Thu, 24 Jul 2025 10:38:32 -0400 Subject: [PATCH 1/4] Fix duplicate .sln when using VS --- .../src/ChatWithCustomData/.template.config/template.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json index 2f9a293b32e..fa949ed9c12 100644 --- a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json +++ b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json @@ -75,6 +75,12 @@ "README.Aspire.md": "README.md" } }, + { + "condition": "(IsAspire && HostIdentifier != \"dotnetcli\" || HostIdentifier != \"dotnetcli-preview\")", + "exclude": [ + "*.sln" + ] + }, { "condition": "(!UseLocalVectorStore)", "exclude": [ From ecb3ded54dc300839a56a56b85d9f436cde82303 Mon Sep 17 00:00:00 2001 From: Mackinnon Buck Date: Thu, 24 Jul 2025 08:21:39 -0700 Subject: [PATCH 2/4] Update src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../src/ChatWithCustomData/.template.config/template.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json index fa949ed9c12..b6e8bdb5788 100644 --- a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json +++ b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json @@ -76,7 +76,7 @@ } }, { - "condition": "(IsAspire && HostIdentifier != \"dotnetcli\" || HostIdentifier != \"dotnetcli-preview\")", + "condition": "(IsAspire && (HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\"))", "exclude": [ "*.sln" ] From e37b15e4ba250254a14c5a91d95afa303915f752 Mon Sep 17 00:00:00 2001 From: Mackinnon Buck Date: Thu, 24 Jul 2025 13:17:22 -0400 Subject: [PATCH 3/4] Fix varible casing --- .../src/ChatWithCustomData/.template.config/template.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json index b6e8bdb5788..5f97dcf2128 100644 --- a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json +++ b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json @@ -30,7 +30,7 @@ "path": "./ChatWithCustomData-CSharp.csproj" }, { - "condition": "(IsAspire && (HostIdentifier == \"dotnetcli\" || HostIdentifier == \"dotnetcli-preview\"))", + "condition": "(IsAspire && (hostIdentifier == \"dotnetcli\" || hostIdentifier == \"dotnetcli-preview\"))", "path": "./ChatWithCustomData-CSharp.sln" }, { @@ -76,7 +76,7 @@ } }, { - "condition": "(IsAspire && (HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\"))", + "condition": "(IsAspire && hostIdentifier != \"dotnetcli\" && hostIdentifier != \"dotnetcli-preview\")", "exclude": [ "*.sln" ] From f00194f7f5a9606c6d9ee06afc65eef2f1843091 Mon Sep 17 00:00:00 2001 From: Mackinnon Buck Date: Thu, 24 Jul 2025 16:42:44 -0400 Subject: [PATCH 4/4] PR feedback --- .../src/ChatWithCustomData/.template.config/template.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json index 5f97dcf2128..caeceae1dde 100644 --- a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json +++ b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json @@ -564,7 +564,7 @@ } }, "postActions": [{ - "condition": "(hostIdentifier != \"dotnetcli\")", + "condition": "(hostIdentifier != \"dotnetcli\" && hostIdentifier != \"dotnetcli-preview\")", "description": "Opens README file in the editor", "manualInstructions": [ ], "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",