Skip to content

dotnet new --install of SpaTemplates fails with no matches found error on Zsh (macOS) #7911

@Meligy

Description

@Meligy

Steps to reproduce

  1. Install dotnet SDK on Mac (version details in dotnet --info at the end)
  2. Start a new Zsh terminal
  3. Run the following command in Zsh:
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

The following message is shown almost instantly:

zsh: no matches found: Microsoft.AspNetCore.SpaTemplates::*

Environment data

dotnet --info output:

> dotnet --info   
.NET Command Line Tools (1.0.1)

Product Information:
 Version:            1.0.1
 Commit SHA-1 hash:  005db40cd1

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

Additional Information

This works fine if you start bash inside Zsh and run the command inside bash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions