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
0
votes
0 answers

Visual Studio Template: Create new project name without auto-generated number

Using Visual Studio (VS) 2015 I created a Project Template (.VSTemplate) for our development group. This is to be used for all new VS projects. I have the default project name correctly entered in the .vstemplate thusly: ... …
0
votes
2 answers

Exported UWP template is not running

I have created a UWP blank app in VS2017 and ran it. Its working perfectly. It has x86 and Local Machine in the bar. Then I export it by going to Project->Export Template and include the template in my VSIX. Then I installed the VSIX. Then created…
Mathivanan KP
  • 1,979
  • 16
  • 25
0
votes
2 answers

How to add SDK into a UWP project programmatically?

I'm developing Project Templates for Universal Windows Platform. In UWP projects we can add references in three ways which are Assemblies, NuGet and SDK. To add assemblies I simply use VSProject.References.Add("MyAssembly.dll") And I can install…
0
votes
1 answer

Visual Studio Project template add packages.config without downloading Nugets

I have .vstemplate file which has a reference to the Nuget like this: NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
0
votes
0 answers

Add Nuget packages to Visual Studio Project template without bypassing license acceptance?

How can I ship an project template that includes dependencies on 3rd party nugget packages and ensure the end user will have the option to accept any package license before installing it? I'm creating a visual studio project template which will…
0
votes
1 answer

Creating VSIX package to install template to several project types?

I am trying to create a simple VSIX package to install a standard readme file that will then be available to add to all of our projects. I am trying to find a way to get to install under project types of VB & C# along with project sub types of VB…
John S
  • 7,909
  • 21
  • 77
  • 145
0
votes
1 answer

Excluding files from Project Template C#

I'm creating a project template to make the development process here in the company smoother. I've created the template and it works ok, I can create a new project based on the template. The only issue is that some files are included in the new…
Miguel Teixeira
  • 783
  • 1
  • 10
  • 29
0
votes
1 answer

How to compile Item Template Project for Form with substitute parameters

I am trying to make an ItemTemplate for a Form. I create a "c# Item Tamplate"-Project, make my Form, and create my Template by Building the project. That works fine. Now I want to add Templateparameters but as soon as I do, the project wont compile…
Benjamin Basmaci
  • 2,247
  • 2
  • 25
  • 46
0
votes
1 answer

Passing variables to linked arm template using visual studio

I am trying to create linked ARM tempIates using Visual Studio. For creating a VM I need to pass the variable for vnet prefix, subnet name etc to a different template using a parameter file or a template file. I couldn't get a relevant example in…
Amal
  • 1
0
votes
0 answers

Make registry entries or call custom code from a VSIX package

Is there any way to make registry entries in a VSIX package to execute custom routines in C#. I could also make the registry entries programmatically if any C# routine can be called.
0
votes
1 answer

VS Custom Templates with Wizard will not build

I am attempting to create a template for a service that is very commonly used. However, every time I try to build I get an error: There was a problem processing the ItemTemplate "MyProjectTemplate.vstemplate." >Length cannot be less than zero.…
Drew Hill
  • 71
  • 3
0
votes
1 answer

ASP .NET 5 templates missing

I'm using Visual Studio 2015 community edition. But, suddenly all my ASP .Net 5 templates are missing. Any help would be highly appreciated
0
votes
1 answer

Solution Folder not creating in VSTemplate ProjectCollection

I am using the below code to generate a new template. The issue is it is not creating the solution folder and adding projects in it.
user1618825
0
votes
2 answers

VSTemplate create dynamic number of projects

I am trying to create dynamic number of projects during Visual Studio Project template (vstemplate) runs:
0
votes
1 answer

Visual Studio Template - Adding to Custom Group

I have created a Visual Studio Template that is delivered as an Extension (VSIX). I have used Visual Studio 2015 - Enterprise. Within Visual Studio, when I go to 'New Project' my custom template is a child to the 'Visual C#' node. But I would like…