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
8
votes
1 answer

Visual Studio multi-project templates rename namespaces and project names

I've successfully created a multi-project solution template. What I would like to do, however, is to rename the beginning of each project with the name of the solution. So my projects: ProjectOne.A ProjectTwo.B Would be renamed to…
Omar
  • 39,496
  • 45
  • 145
  • 213
8
votes
2 answers

Visual Studio Custom Item Template Dependent Upon

I'm writing my own custom item template for use within visual studio. All is well except I need to find a way to get one of the files in the template to be dependent upon another. In a csproj file it would look like this
mat-mcloughlin
  • 6,492
  • 12
  • 45
  • 62
8
votes
3 answers

Is the Visual Studio template file just a regular .zip file or is it something else?

I'm trying to tweak a project template file exported by Visual Studio's "Export Template" wizard. At first glance this looks like just a garden-variety zip file, but it's not: I can't edit files. If I try to change or delete or replace a file in…
Herb Caudill
  • 50,043
  • 39
  • 124
  • 173
8
votes
2 answers

Visual Studio Project template in the Web Category

I created a VSIX Project (using Visual Studio Extensibility) that references a C# Project Template; it looks like this: ... ... ... Web
Bidou
  • 7,378
  • 9
  • 47
  • 70
8
votes
1 answer

How can I create a Visual Studio project template that shows up in the Web category?

I have created a project template that is installed via a VSIX extension. This is working fine, but it only shows up in the Visual C# category. I am having a lot of trouble figuring out how to get it to show up in the Visual C# > Web category. I…
7
votes
1 answer

Visual Studio - Can I export templates via command line?

Is the "Export Template" functionality available from a command line anywhere? I checked the command line arguments for both MSBuild.exe and devenv.exe and didn't see anything obvious.
Daniel Schaffer
  • 56,753
  • 31
  • 116
  • 165
7
votes
1 answer

Adding an folder to a multiple project Visual Studio 2010 Template

I've been working on a full vertical stack template for Visual Studio (It's on Github if you'd like to help out: https://github.com/Adron/infrastructure My problem is, I have not been able to add a folder for assemblies in the root of the solution.…
Adron
  • 1,698
  • 3
  • 19
  • 40
7
votes
1 answer

Create visual studio solution template - multiple projects

I'm stuck on this tutorial for creating a multi-project visual studio template. I'm specifically stuck on this line: Select the files and folders to include in your template, right-click the selection, click Send To, and then click Compressed…
Shawn Mclean
  • 56,733
  • 95
  • 279
  • 406
7
votes
3 answers

Failing to load resources when building for Android Emulator using Visual Studio Tools for Apache Cordova in Visual Studio 2013

I am using Visual Studio Tools for Apache Cordova for Microsoft Visual Studio 2013 CTP3.0. I created a new solution using the "Ionic Login Template". The appliction works fine when I run it in the "Ripple - Nexus Galaxy" online service Android…
6
votes
2 answers

How to create "Multi Project Template With Custom Wizard" in Visual Studio 2017

I'm looking for help on making a multi project template (i.e. a deploy-able solution that contains multiple projects) with a custom wizard (to enable custom parameters to be entered). I've followed "How to: Create Multi-Project Templates" to make…
6
votes
2 answers

VS2012 template wizard - GUI not showing

I'm having problems having my visual studio template wizard's gui showing up. I followed these steps: http://msdn.microsoft.com/en-us/library/ms185301.aspx Here's what I did: 1) Generated a C# class library (.dll) with the following…
5
votes
2 answers

VS template parameters: Get partial project name

I have a multi-project solution template. I've created it using this guide. My solution is generating multi-platform projects with a central shared project: MyProject.Shared MyProject.UWP MyProject.Droid etc. The problem is that when I use…
5
votes
1 answer

How can I add files programmatically to a visual studio template?

I have created a visual studio project template for .net core applications. When creating a new project using this template I want to have the ability to select between Azure Authentication and Identity Authentication. In order to achieve this, I…
5
votes
1 answer

Missing folders in custom Visual Studio project template

I'm going to create a custom Visual Studio project template to avoid repeating extra work of common configuration tasks for an ASP.NET Core project like adding EntityFramework with MySQL support. So I created a new sample project for this and did an…
Lion
  • 16,606
  • 23
  • 86
  • 148
5
votes
1 answer

What are each of the template types intended usage, pros and cons?

I have not hardly touched EF4, but I've used Linq to sql quite a lot. I would like to start into one of the EF templates but I have no idea what situations make sense for each or what their intent was. I have the following possibilities: Data…
Maslow
  • 18,464
  • 20
  • 106
  • 193
1
2
3
15 16