Skip to content

Create a directory for the AIChatWeb template if name is specified - #6122

Merged
SteveSandersonMS merged 1 commit into
dotnet:mainfrom
makazeu:aichatweb-template-preferNameDirectory
Mar 17, 2025
Merged

Create a directory for the AIChatWeb template if name is specified#6122
SteveSandersonMS merged 1 commit into
dotnet:mainfrom
makazeu:aichatweb-template-preferNameDirectory

Conversation

@makazeu

@makazeumakazeu commented Mar 15, 2025

Copy link
Copy Markdown
Contributor

Fixes#6051.

Create a directory for the AIChatWeb template if name is specified, by setting preferNameDirectory to true

doco: https://github.com/dotnet/templating/wiki/Reference-for-template.json#output-management

preferNameDirectory has been set to True in many dotnet templates: https://github.com/search?q=repo%3Adotnet%2Fdotnet%20preferNameDirectory&type=code

Microsoft Reviewers: Open in CodeFlow

@makazeu
makazeu requested a review from a team as a code ownerMarch 15, 2025 14:56
@github-actionsgithub-actionsBot added the area-ai-templates Microsoft.Extensions.AI.Templates label Mar 15, 2025
@makazeumakazeu changed the title Set preferNameDirectory to TrueCreate a directory for the AIChatWeb template if name is specifiedMar 15, 2025

@SteveSandersonMSSteveSandersonMS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@SteveSandersonMS
SteveSandersonMS merged commit c428df2 into dotnet:mainMar 17, 2025
@makazeu
makazeu deleted the aichatweb-template-preferNameDirectory branch March 29, 2025 02:23
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Apr 28, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai-templatesMicrosoft.Extensions.AI.Templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI template on dotnet new doesn't respond well to -n output

2 participants

@makazeu@SteveSandersonMS