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

use visual studio templates to rename part of a class and file name

I want to be able to rename classes using dotnet new project templates like these examples I want to have files/classes that have the same name as the project with a suffix that automatically rename to match the project eg [projectname]DbContext,…
Paul
  • 693
  • 1
  • 10
  • 25
0
votes
1 answer

Adding NuGet packages from nuget.org in a custom VS item template

I am trying to add NuGet packages automatically when adding a custom item template in Visual Studio. The packages need to be referenced from nuget.org, deploying them locally in the ItemTemplate-Zipfiles is unfortunately no option. What I have tried…
0
votes
0 answers

how to update File Name in Visual Studio Project Template based on user input

I am trying to create a Visual Studio 2022 Project Template. I am using a custom Windows form, where I accept multiple user inputs and have a class that implements IWizard, where I add it to the replacementsDictionary so that file contents are…
0
votes
0 answers

Substitute template parameters in C# template project

I am trying to create a template project with a custom .csproj file name. For example on creating a project, project name supplied is POS and the requirement is to append ".Domain" to it so that the csproj file is POS.Domain.csproj. I have tried…
0
votes
1 answer

Creating VSTemplates that DO NOT appear under web projects (only under unflavoured projects)

We have a bunch of templates, some of which are only visible when adding a new item to a C# Web Application project (filtered using the "Web" template group ID). Many of our other templates, though, do not make sense to add to a web project (they…
tintoy
  • 605
  • 4
  • 9
0
votes
1 answer

Leading-dot files missing from custom Visual Studio template

I've created a custom Visual Studio template containing an ASP.NET Core+angular application. But when I create a new project using this template, the files starting with . are missing from the generated project. These are the files in the ClientApp…
Pieterjan
  • 2,738
  • 4
  • 28
  • 55
0
votes
1 answer

Missing templates after re-installing VS 2008

I installed VS 2008 and I installed .NET 3.5 SP1 and I got all templates. Then, I had to uninstall VS 2008 (please don't ask why) without uninstalling .NET Framework 3.5 SP1 or anything else. After that, I re-installed VS 2008 back, then I open up…
Ray
  • 12,101
  • 27
  • 95
  • 137
0
votes
0 answers

Visual Studio C++/WinRT Core App vs Blank App

If you are aiming to write a multi-threaded application with some intensive non-graphics background threads as well as a Direct3D based presentation layer which of the two Visual Studio templates Core App or Blank App is likely to be the better…
TJA
  • 2,969
  • 2
  • 25
  • 32
0
votes
1 answer

Visual Studio Template Project Output Path Name

I have a template project that I use to start new projects and I want to use them side by side. Their namespaces are updated according to the project name that I enter when I create them so there is no namespace clash however all of them has same…
usoysal
  • 3
  • 4
0
votes
1 answer

getting variables to work in visual studio templates

I'm trying to make a simple proof of concept type visual studio template, but I can't seem to get the built in variables to work like they should. I'm trying to follow the documentation here…
Eric Timms
  • 23
  • 5
0
votes
0 answers

Open file in visual studio document window on first project load when project is created with custom made project template

I've made a custom project template and when I create a new project in Visual Studio using this template I want to open a file(which belongs to the template) into the Visual Studio's document window(code editor window/whatever...) right after the…
Darius
  • 71
  • 5
0
votes
1 answer

TFS 2010 Team Project Portal Setting

I am not seeing the out of the box workbooks that come with MSF for Agile Software Development v5.0 in my Team Project. Turns out, TFS stores the Excel files for the template in the SharePoint portal that needs to be specified in the project…
Tom
  • 510
  • 1
  • 7
  • 24
0
votes
0 answers

How do I distribute a Visual Studio template pack?

I have a Visual Studio project that I would like to distribute as a template to other developers across the organization. I've been able to package the project into a NuGet package, but I'm a bit lost on how to distribute this across the…
Adam Chubbuck
  • 1,612
  • 10
  • 27
0
votes
1 answer

How about updates for Visual Studio Web application templates?

I created a new project in Visual Studio 2019 Community using the ASP.NET Core Web Application template and selecting ASP.NET Core 5.0 and ASP.NET Core with React.js After the project was created, I switched to the ClientAppfolder and executed npm…
stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270
0
votes
2 answers

Set file name as project name in VS template

I've been trying to make my own template in VS for C++. I want to have a cpp and hpp file with the same name as the project. I have already read this link: How can I set a file name using a variable in a Visual Studio project template Howerer, when…
aviad1
  • 354
  • 1
  • 10