4
$ dotnet new console -lang Q# --output Bell

Error: Invalid parameter(s):
-lang Q#
    'Q#' is not a valid value for -lang (language).

Run dotnet new console --help for usage information. See https://aka.ms/dotnet-install-templates to learn how to install additional template packs.

I also tried running:

dotnet new -i Microsoft.DotNet.Common.ProjectTemplates.2.x::2.0.0-*

But even this command could not add the project any idea how I can get this template.

1 Answer 1

6

I think you need to run:

dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.2-*"

Take a look at https://learn.microsoft.com/en-us/quantum/quantum-installconfig?view=qsharp-preview&tabs=tabid-vscode for more complete instructions.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.