Skip to content

Commit 93bebed

Browse files
Fix duplicate solution file when creating an AI Chat Web app from VS (#6653)
1 parent 8f0f5a7 commit 93bebed

File tree

1 file changed

+8
-2
lines changed
  • src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config

1 file changed

+8
-2
lines changed

src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/.template.config/template.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"path": "./ChatWithCustomData-CSharp.csproj"
3131
},
3232
{
33-
"condition": "(IsAspire && (HostIdentifier == \"dotnetcli\" || HostIdentifier == \"dotnetcli-preview\"))",
33+
"condition": "(IsAspire && (hostIdentifier == \"dotnetcli\" || hostIdentifier == \"dotnetcli-preview\"))",
3434
"path": "./ChatWithCustomData-CSharp.sln"
3535
},
3636
{
@@ -75,6 +75,12 @@
7575
"README.Aspire.md": "README.md"
7676
}
7777
},
78+
{
79+
"condition": "(IsAspire && hostIdentifier != \"dotnetcli\" && hostIdentifier != \"dotnetcli-preview\")",
80+
"exclude": [
81+
"*.sln"
82+
]
83+
},
7884
{
7985
"condition": "(!UseLocalVectorStore)",
8086
"exclude": [
@@ -558,7 +564,7 @@
558564
}
559565
},
560566
"postActions": [{
561-
"condition": "(hostIdentifier != \"dotnetcli\")",
567+
"condition": "(hostIdentifier != \"dotnetcli\" && hostIdentifier != \"dotnetcli-preview\")",
562568
"description": "Opens README file in the editor",
563569
"manualInstructions": [ ],
564570
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",

0 commit comments

Comments
 (0)