Questions tagged [visual-studio-templates]

A number of predefined project and project item templates are installed when you install Visual Studio.

These templates appear as project types in the New Project Dialog Box.You can use one of the many project templates to create the basic project container and a preliminary set of items for your application, class, control, or library. You can also use one of the many project item templates to create, for example, a Windows Forms application or a Web Forms page to customize as you develop your application.

237 questions
3
votes
1 answer

VS template doesn't copy files, which aren't displayed in Solution Explorer

Visual Studio 2013. I create own template. its vstemplate-file has such records:
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
3
votes
2 answers

How can I set a file name using a variable in a Visual Studio project template

I have a VS 2013 project template with a item like below Target.xml What I want is "Target.xml" to be MyProjectName.xml. I know I can use variables inside the file but…
Gary
  • 1,847
  • 2
  • 14
  • 22
3
votes
0 answers

Can I create solution-specific project templates?

I have a solution which will eventually contain a lot of projects with a similar structure. Therefore I wanted to create a project template. These projects will need to be created by people other than myself on a variety of different machines. It…
3
votes
1 answer

How can I selectively apply a VSTemplate?

I am creating a custom VSTemplate for MVC 4 applications for my company that uses a wizard that is comparable to the wizard that appears when you create a new MVC4 application. I have one of two templates I would like to apply when the developer…
Rockdocta
  • 604
  • 1
  • 9
  • 26
3
votes
1 answer

Cannot change web server settings in Visual Studio web project templates?

I'm building project templates in Visual Studio 2012. One of these is generated from an empty MVC4 project. What I need to change (except some file includes, which already works) is the web server settings, available under Project settings > Web >…
carlpett
  • 12,203
  • 5
  • 48
  • 82
3
votes
1 answer

Custom templates for SSDT

What is the correct folder name to store a custom Item Template for a SQL Server Data Tools Database Project? eg. What sub-folder should it live in under C:\Users\accountname\Documents\Visual Studio 11\Templates\ItemTemplates The SSDT-provided…
David Gardiner
  • 16,892
  • 20
  • 80
  • 117
3
votes
1 answer

VSIX Project Templates targeting Visual Studio 2010 and 2012

I am creating a few Visual Studio Project Templates, and wrapping them in a VSIX for eventual upload to the Visual Studio Gallery. I would like one single VSIX to support installing the templates on both Visual Studio 2010 and Visual Studio…
Adam Toth
  • 100
  • 6
3
votes
1 answer

PhoneGap Template for Visual Studio 2012

Is there's any template for PhoneGap for Visual Studio 2012?
CairoCoder
  • 3,091
  • 11
  • 46
  • 68
3
votes
1 answer

VS Project Template with Public NuGet Packages

The NuGet docs describe two possible repositories for package files defined within a VS template: 1) within the VSIX, or 2) within the template. There's also the third option of the registry for "installed" packages. We have custom project…
Kim Johnson
  • 1,229
  • 1
  • 8
  • 19
2
votes
2 answers

Where are the Unit Test templates in the VS Unit Testing Framework?

I am increasingly annoyed by the unnecessarily verbose template that is used when I create a new unit test in Visual Studio (using the default, included unit testing framework). Instead of public ImportModelStateTest() { // // TODO: Add…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
2
votes
2 answers

Custom Item Template Wizard button click doesn't fire?

I am following this exactly: http://msdn.microsoft.com/en-us/library/ms185301.aspx but can't get it to work. The form appears when I try and add my new item, but when I input text and click the button, nothing happens. For posterity's sake here is…
SventoryMang
  • 10,275
  • 15
  • 70
  • 113
2
votes
1 answer

Visual Studio templating - conditionally hide parameter

I am attempting to create a custom Visual Studio project template and I have a template.json. What I am trying to achieve is to hide / disable the DoStuff parameter from the Visual Studio create project wizard if another parameter (in my case,…
TheDoomDestroyer
  • 2,434
  • 4
  • 24
  • 45
2
votes
0 answers

How to install "specific" Visual Studio templates

In our project, we have created some custom Visual Studio templates. Then, the setup will copy them into VS ItemTemplates/ProjectTemplates folders (..\Microsoft Visual Studio 10.0\Common7\IDE). In order to make our VS templates effected, we have to…
jcha
  • 629
  • 1
  • 8
  • 16
2
votes
0 answers

.Net Core Template for VS 2019

I am trying to create a solution template for .net core 3.1 api by following the below link https://www.aka.ms/netcore-templates Here is my folder structure I am running the nuget.exe and dotnet new --install everything under "Root Folder". Once…
2
votes
1 answer

How to add a nuget package in a MVC3 project template

I'm trying to hack a MVC 3 project template to automatically install elmah via nuget. Since MVC 3 Tools update, MVC3 project templates contains this section :