Skip to content

Can't Install templates in 2.0.0preview1 with dotnet new -i #824

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

Closed
livarcocc opened this issue May 18, 2017 · 8 comments
Closed

Can't Install templates in 2.0.0preview1 with dotnet new -i #824

livarcocc opened this issue May 18, 2017 · 8 comments
Assignees
Milestone

Comments

@livarcocc
Copy link
Contributor

From @JonathanLoscalzo on May 18, 2017 18:3

Steps to reproduce

Install dotnet 2.0.0preview1 on Win10
Start a GitBash
Run the following command in Terminal
dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

Expected behavior

The CLI downloads the templates, and reports installing them, then lists them in the available templates for "dotnet new"

Actual behavior

After a time, show list of Templates, but not install any:
$ dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

Environment data

.NET Command Line Tools (2.0.0-preview1-005977)

Product Information:
Version: 2.0.0-preview1-005977
Commit SHA-1 hash: 414cab8a0b

Runtime Environment:
OS Name: Windows
OS Version: 10.0.10240
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0-preview1-005977\

Copied from original issue: dotnet/cli#6625

@sayedihashimi
Copy link
Member

Can you try with quotes:

dotnet new --install "Microsoft.AspNetCore.SpaTemplates::*"

@JonathanLoscalzo
Copy link

  • With quotes or without, it's the same behavior.
  • Running the terminal "as Administrator"
    Have "-install" got a Verbosity, -v, or similar option?

@JonathanLoscalzo
Copy link

#aspnet/JavaScriptServices#948
#aspnet/Announcements#243

Maybe, issue will fix in 2.0.0.preview2?

@snebjorn
Copy link

I have a similar issue when installing my custom template running the current master and using new3.

Steps to reproduce

Install dotnet-dev-win-x64.1.0.4.exe on Win10
Clone https://github.com/dotnet/templating.git (master branch)
Start a PowerShell
Run setup.cmd inside the cloned dir
Run dotnet new3 --install path/to/mytemplate

Expected behavior

The CLI reports installing it, then lists it in the available templates for "dotnet new3"

Actual behavior

Doesn't install my template.
Doesn't show any error message.

Environment data

.NET Command Line Tools (1.0.4)

Product Information:
Version: current master
Commit: 5e33a88

Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.4\

@JonathanLoscalzo
Copy link

No problem in Ubuntu 👍

.NET Command Line Tools (2.0.0-preview1-005977)

Product Information:
Version: 2.0.0-preview1-005977
Commit SHA-1 hash: 414cab8a0b

Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /usr/share/dotnet/sdk/2.0.0-preview1-005977/

Microsoft .NET Core Shared Framework Host

Version : 2.0.0-preview1-002111-00
Build : 1ff021936263d492539399688f46fd3827169983

@mlorbetske
Copy link
Contributor

In the 2.0.0 preview, the ::* is no longer required if you want the latest stable version, so dotnet new --install Microsoft.AspNetCore.SpaTemplates should work for Git Bash (operating on the assumption that the * is causing the problem).

We are looking at expanding the information displayed when templates are discovered as part of install. Ideally, we'll be able to list the templates that were successfully installed as part of the operation & the set of templates that failed to install (and why).

@jdk339
Copy link

jdk339 commented May 30, 2018

Ran dotnet new -i Amazon.Lambda.Templates::* and it kept saying:

zsh: no matches found: Amazon.Lambda.Templates::*

So I ran dotnet new -i Amazon.Lambda.Templates and it finally installed the templates.

dotnet --info:

.NET Command Line Tools (2.1.200)

Product Information:
Version: 2.1.200
Commit SHA-1 hash: 2edba8d7f1

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.13-x64
Base Path: /usr/local/share/dotnet/sdk/2.1.200/

Microsoft .NET Core Shared Framework Host

Version : 2.0.7
Build : 2d61d0b043915bc948ebf98836fefe9ba942be11

@mlorbetske
Copy link
Contributor

Closing this as either quoting the {packageName}::* or not specifying the ::* part has been confirmed to be working

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

7 participants