How to install and use a project template using dotnet CLI #4765
-
crossposting from stackexchange I recently made a post in which I was asking about how to disable implicit usings in Visual Studio 2022. From that post I understood a couple of things:
Since I am interested in generating customized console applications directly from the command line (Powershell, to be specific), I first exported my adjusted console app as a template using the Visual Studio 2022 UI under Project > Export Template > Project template. This generated a According to the link in the reddit post, it should be possible to then make use of this template using I have tried the following obvious commands:
The first command crashed with:
The second command crashed with:
I'm probably doing something way off. Does anyone know what that might be? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @awa5114 the Export Template functionality in Visual Studio is using a different technology and doesn't work with |
Beta Was this translation helpful? Give feedback.
Hi @awa5114 the Export Template functionality in Visual Studio is using a different technology and doesn't work with
dotnet new
. I have guidance on how to create templates fordotnet new
and Visual Studio at https://aka.ms/netcore-templates.