dotnet / templating

This repo contains the Template Engine which is used by dotnet new
https://docs.microsoft.com/dotnet/
MIT License
1.61k stars 368 forks source link

Improve 'dotnet new sln' message #677

Open balachir opened 7 years ago

balachir commented 7 years ago

CLI VERSION image

REPRO STEPS dotnet new sln

ACTUAL image

EXPECTED The message seemed a little odd - I was expecting something along the lines of "A Solution File has been created". I can see that this is just a generic message format used for all the templates. I wonder if this can / should be improved.

mlorbetske commented 7 years ago

Maybe we could add a custom "Hello" message to the template

ErikSchierboom commented 7 years ago

I would argue that the current message looks like a solution template was created, not that a solution was created using a template.

sayedihashimi commented 7 years ago

It would be good to allow templates to specify the "Hello" message.

vlada-shubina commented 3 years ago

We agreed to add new top-level property to template.json allowing customizing "hello" message after the template was created. The property will evaluate the symbols if added to it. For choice symbols, display names shall be used. Example: "console app was created, TFM: $framework". If no property is defined, we will use standard message as now.

https://github.com/dotnet/templating/issues/724 will be done in scope of this change as well.