For questions regarding working with project templates in an IDE, such as those visible in Visual Studio's New Project dialog.
Questions tagged [project-template]
292 questions
5
votes
1 answer
Cancel VS2010 project creation from wizard
I created a wizard for a custom template in VS2010
And it works like a charm.
But since the wizard contains a form required to finish the creation of the project, i feel that the user should be able to cancel the creation of the project.
So my…

Moulde
- 3,438
- 4
- 29
- 38
5
votes
1 answer
What is the best way to include references to my own assemblies in a project template?
We have developed a library in C#, and now I wish to create a project template to aid in using the library correctly.
I want new projects to include a reference to the library assembly, but would prefer not to have to deploy the assembly to the GAC,…

Tor Haugen
- 19,509
- 9
- 45
- 63
5
votes
2 answers
Visual Studio 2012/13 Missing MVC NuGets in Exported Template
I exported a working project template and tried creating a new project using it.
Here are the errors I am getting.
Type IAppBuilder is not defined.
Type CookieAuthenticationOpetions is not defined
Type OwinStartupAttribute is not defined
Type…

Eric Harms
- 569
- 5
- 17
5
votes
1 answer
How to create a multi project template in visual studio 2013?
I followed the How to: Create Multi-Project Templates article to create a template that will generate a solution containing 4 projects. My Root.vstemplate file contains the following

Andre Lombaard
- 6,985
- 13
- 55
- 96
5
votes
1 answer
Visual Studio Solution Template - Link Source Control Projects
My team is creating some standard VS solution templates. We have a well-defined project structure, resources, etc. that we need to use every time we start a new project and this is the perfect solution. The basics work nicely.
However, as well as…

Jason Irwin
- 1,985
- 2
- 29
- 42
5
votes
2 answers
Multi Project Solution template
I am in the process of creating multi-project solution template having web application,Desktop,few class libraries and unit test project.
I built the basic container and packed it as VSIX container.
When I install the VSIX container,I can the .zip…

Soni Qureshi
- 97
- 2
- 8
5
votes
1 answer
Is there a way to set the default namespace of a project as it is created?
When creating a project in Visual Studio, the name you use for the project is used to:
Name the project file
Name the project folder
Generate the default namespace for the project
The first two values are somewhat related, so it makes sense to…

Paul Turner
- 38,949
- 15
- 102
- 166
5
votes
1 answer
Getting an error message when creating a new project from my template
I created a project template from an existing project, in this case it is just a resource DLL.
I replaced some of the data in the projects with the $projectname$ tags so that the contents and the file names take the value that I enter as the project…

eggbox
- 617
- 4
- 16
4
votes
2 answers
VisualStudio Multi project Templates
I am creating a Multi project Template
The problem is that when I run the template each project creates a directory folder that matches the project name.
I don't want each of the projects creating folders by default, like…

mgphall
- 67
- 3
- 9
4
votes
2 answers
Use local IWizard assembly as WizardExtension in Project Template
I have a very simple IWizard implementation with sole the purpose of adding a parameter variable to the dictionary (no user interaction is required).
I don't want to have to add this to the GAC if possible.
I placed the dll in the root of the…

fearofawhackplanet
- 52,166
- 53
- 160
- 253
4
votes
2 answers
Install NuGet packages automatically in VS 2010 project template
Can anyone share with me how to (or where I can find how to) install NuGet packages automatically when I create a new project based on my custom project template in Visual Studio 2010?
I am creating a new project template for a project that uses a…

SonOfPirate
- 5,642
- 3
- 41
- 97
4
votes
1 answer
How to add multiple options in custom template Visual Studio 2019
I want to add multiple options inside a custom project template.
For example when you create a new project search web and select ASP.NET Web Application as shown below screenshot.
Once you select that option click on Next and provide all the…

Rahul Khandelwal
- 94
- 14
4
votes
1 answer
How to "install" a dotnet core 2.2 custom template in Visual Studio
I have created a custom dotnet core project template following the documentation here: https://learn.microsoft.com/en-us/dotnet/core/tools/custom-templates
I can install this template, and create new projects from it, on the command line using…

heapifyman
- 161
- 8
4
votes
1 answer
Visual Studio Custom Template Category has an extra folder
I have created an ItemTemplate project. I would like to install this to a custom folder. This works fine when I manually add the zip file built from the project to my named folder inside ItemTemplates.
I am now using two projects, the original…

Reznoir
- 909
- 1
- 11
- 27
4
votes
1 answer
How to get rid of additional folder named "netstandardxx" in .NET standard class library project output path in VS2017?
I created a project in VS2017 using .NET Standard Class Library Project Template. The problem is when I wanted to change the project output path to some arbitrary folder, it appends to my selected path, another folder named "netstandardxx" (in which…

Keyrad
- 460
- 4
- 11