Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create new project with .NET Core 2.1.4 #11

Closed
conniey opened this issue Feb 9, 2018 · 3 comments
Closed

Cannot create new project with .NET Core 2.1.4 #11

conniey opened this issue Feb 9, 2018 · 3 comments

Comments

@conniey
Copy link

conniey commented Feb 9, 2018

Repro:

  • Install .NET Core 2.1.4 SDK on Windows
  • Execute dotnet new -i "giraffe-template::*"
  • Execute dotnet new giraffe

Expected:
A project is created

Actual:
I get a help message. I've tried specifying the ViewEngine as well to no avail.

C:\users\conniey\Source\Repos\giraffe-app
λ dotnet new giraffe
Usage: new [options]

Options:
  -h, --help          Displays help for this command.
  -l, --list          Lists templates containing the specified name. If no name is specified, lists all templates.
  -n, --name          The name for the output being created. If no name is specified, the name of the current directory is used.
  -o, --output        Location to place the generated output.
  -i, --install       Installs a source or a template pack.
  -u, --uninstall     Uninstalls a source or a template pack.
  --type              Filters templates based on available types. Predefined values are "project", "item" or "other".
  --force             Forces content to be generated even if it would change existing files.
  -lang, --language   Specifies the language of the template to create.


Giraffe Web App (F#)
Author: Dustin Moris Gorski, David Sinclair and contributors
Options:
  -V|--ViewEngine
                         giraffe      - Default GiraffeViewEngine
                         razor        - MVC Razor views
                         dotliquid    - DotLiquid template engine
                         none         - No template engine (API only)
                     Default: giraffe

  -I|--IncludeTests
                     bool - Optional
                     Default: false

  -U|--UsePaket
                     bool - Optional
                     Default: false

@realparadyne
Copy link

realparadyne commented Feb 13, 2018

I'm getting the same thing, just when I wanted to try out giraffe for the first time too.
dotnet --version reports 2.1.4

Edit: Ah, found it, you need to add -lang F# due to a bug that has been fixed downstream.

@dustinmoris
Copy link
Member

dustinmoris commented Feb 13, 2018 via email

dustinmoris added a commit that referenced this issue Feb 16, 2018
Added a note about the current 2.1.4 SDK bug with dotnet new. Fixes issue #11.
@dustinmoris
Copy link
Member

I've added a note to the README now. Hope this helps new people coming to Giraffe!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants