@@ -49,13 +49,13 @@ internal sealed class NewCommand : BaseCommand
4949 // interrogate the various options and add them. For now we will
5050 // keep it simple.
5151 ( string TemplateName , string TemplateDescription , string ? PathAppendage ) [ ] validTemplates = [
52- ( "aspire-starter" , "Aspire Starter App" , "src" ) ,
53- ( "aspire" , "Aspire Empty App" , "src" ) ,
54- ( "aspire-apphost" , "Aspire App Host" , null ) ,
55- ( "aspire-servicedefaults" , "Aspire Service Defaults" , null ) ,
56- ( "aspire-mstest" , "Aspire Test Project (MSTest)" , null ) ,
57- ( "aspire-nunit" , "Aspire Test Project (NUnit)" , null ) ,
58- ( "aspire-xunit" , "Aspire Test Project (xUnit)" , null )
52+ ( "aspire-starter" , "Aspire Starter App" , "./ src" ) ,
53+ ( "aspire" , "Aspire Empty App" , "./ src" ) ,
54+ ( "aspire-apphost" , "Aspire App Host" , "./" ) ,
55+ ( "aspire-servicedefaults" , "Aspire Service Defaults" , "./" ) ,
56+ ( "aspire-mstest" , "Aspire Test Project (MSTest)" , "./" ) ,
57+ ( "aspire-nunit" , "Aspire Test Project (NUnit)" , "./" ) ,
58+ ( "aspire-xunit" , "Aspire Test Project (xUnit)" , "./" )
5959 ] ;
6060
6161 if ( parseResult . GetValue < string ? > ( "template" ) is { } templateName && validTemplates . SingleOrDefault ( t => t . TemplateName == templateName ) is { } template )
@@ -92,7 +92,7 @@ private static async Task<string> GetOutputPathAsync(ParseResult parseResult, st
9292 {
9393 outputPath = await PromptUtils . PromptForStringAsync (
9494 "Enter the output path:" ,
95- defaultValue : Path . Combine ( Environment . CurrentDirectory , pathAppendage ?? string . Empty ) ,
95+ defaultValue : pathAppendage ?? "." ,
9696 cancellationToken : cancellationToken
9797 ) ;
9898 }
0 commit comments