CarterCommunity / Carter

Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.
MIT License
2.05k stars 172 forks source link

Update README.md after following the instructions #312

Closed henrikrxn closed 1 year ago

henrikrxn commented 1 year ago

On SDK 7.0.100 and tried to follow the instructions in the README.md

When installing the template per step 1.

  1. Install the template - dotnet new -i CarterTemplate

This is purely FYI, I am not changing anything to address the warning I got:

❯ dotnet new -i CarterTemplate Warning: use of 'dotnet new --install' is deprecated. Use 'dotnet new install' instead. For more information, run: dotnet new install -h

The following template packages will be installed: CarterTemplate

Success: CarterTemplate::7.0.0 installed the following templates: Template Name Short Name Language Tags


Carter Template carter [C#] Carter/Carter Template/NancyFX

For step 2:

  1. Create a new application using template - dotnet new Carter -n MyCarterApp

I got this error:

❯ dotnet new Carter -n MyCarterApp No templates or subcommands found matching: 'Carter'. Did you mean one of the following templates? dotnet new carter

To list installed templates similar to 'Carter', run: dotnet new list Carter To search for the templates on NuGet.org, run: dotnet new search Carter

For details on the exit code, refer to https://aka.ms/templating-exit-codes#103

I then did as suggested and ran:

❯ dotnet new carter -n MyCarterApp

which created files directly in the current directory, so I added a step to create a new folder and go into that. I would suggest creating a new .sln file considering you use the phrase "application" several times, but I can see how that might be problematic for people wanting to try Carter on existing projects.

jchannon commented 1 year ago

Thanks for the PR! Your points are valid and correct but all we need to do is change the readme with this

dotnet new Carter -n MyCarterApp -o MyCarterApp

This will create the directory and put the project in it. If you want to change your PR to do that I’ll happily merge it.

Also your sln idea to add to the template is a good idea so we could change the template too

On Fri, 25 Nov 2022 at 18:56, Henrik Røn @.***> wrote:

On SDK 7.0.100 and tried to follow the instructions in the README.md

When installing the template per step 1.

  1. Install the template - dotnet new -i CarterTemplate

This is purely FYI, I am not changing anything to address the warning I got:

❯ dotnet new -i CarterTemplate Warning: use of 'dotnet new --install' is deprecated. Use 'dotnet new install' instead. For more information, run: dotnet new install -h

The following template packages will be installed: CarterTemplate

Success: CarterTemplate::7.0.0 installed the following templates: Template Name Short Name Language Tags

Carter Template carter [C#] Carter/Carter Template/NancyFX

For step 2:

  1. Create a new application using template - dotnet new Carter -n MyCarterApp

I got this error:

❯ dotnet new Carter -n MyCarterApp No templates or subcommands found matching: 'Carter'. Did you mean one of the following templates? dotnet new carter

To list installed templates similar to 'Carter', run: dotnet new list Carter To search for the templates on NuGet.org, run: dotnet new search Carter

For details on the exit code, refer to https://aka.ms/templating-exit-codes#103

I then did as suggested and ran:

❯ dotnet new carter -n MyCarterApp

which created files directly in the current directory, so I added a step to create a new folder and go into that. I would suggest creating a new .sln file considering you use the phrase "application" several times, but I can see how that might be problematic for people wanting to try Carter on existing projects.

You can view, comment on, or merge this pull request online at:

https://github.com/CarterCommunity/Carter/pull/312 Commit Summary

File Changes

(1 file https://github.com/CarterCommunity/Carter/pull/312/files)

Patch Links:

— Reply to this email directly, view it on GitHub https://github.com/CarterCommunity/Carter/pull/312, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZVJW4C63METGK2GWQDS3WKEDWNANCNFSM6AAAAAASLRWJTU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

henrikrxn commented 1 year ago

Did the update you suggested which I might have thought about if I use the command line more.

Leaving adding the .sln for another PR, but will create issue for it, that I might (no promises) pick up.

henrikrxn commented 1 year ago

NB: I think you still need to lowercase the C in dotnet new Carter so I kept that.

jchannon commented 1 year ago

Thanks 👍