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

User.Identity null pointer exception with SPA(Angular) visual studio angular template

I am using the visual studio angular template, to create the project, trying to access the user claims User.Identity.Name. Since the user is null, so getting an null pointer exception. I have followed the instruction from here…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
0 answers

Visual Studio Custom project Item

This is more of a question where to look that how to do it.. What I am trying to do is create a custom project item for VS studio, this will have custom code generators etc and will work in the following way.. When I add my new item lets call its a…
0
votes
0 answers

How to add conditions in Visual Studio Template Schema and generate projects based on conditions

I have a requirement to generate a custom project template using vsix and IWizard. Wizard will show three check boxes. for example (Bot, Tab , Chat). The output solution must have projects only for checkboxes selected in the wizard i.e if both Bot…
0
votes
1 answer

create vs template and selecting framwork

hi Hi I have created a Visual Studio template, But when the user changes the framework version when creating a new project, nothing happens in the program and only uses version 4.7.2 this is my projecttemplate
user11453013
0
votes
1 answer

Modify Visual Studio's file templates

Everytime I create an Android Layout file in Visual Studio (for Xamarin.Android), it gives me a simple layout with a LinearLayout and sets the default namespace of Views to android. With time, I found it tiresome and repetitive to write the whole…
0
votes
1 answer

Access HangFire endpoint from Visual Studio 2019 React template project

Following the guide at https://medium.com/@jamesdale1993/asp-net-core-2-with-signalr-and-react-redux-a-simple-example-c25ea6b19dbe I created a project with Visual Studio 2019 and the react-redux template (core 3.0 project). I got the SignalR up and…
0
votes
1 answer

TargetFolderName with space character (char)

I'm using visual studio templates in order to build a custom visual studio template project. I'm trying to create a folder with a name «External Models» that has space char but the visual studio is creating a folder with the name «External%20Models»…
Ricardo Rocha
  • 14,612
  • 20
  • 74
  • 130
0
votes
1 answer

Destination Directory parameter in Item Template - Visual Studio

I have created a C# Item template and have included several template parameters. I would like to have the path of the newly created .cs file (using Add, New Item..) included in the file. When creating C# Project templates, you can use this parameter…
TJames
  • 105
  • 1
  • 1
  • 10
0
votes
1 answer

Replace name of .csproject file in VSIX

I created a VSIX which is creating a Project file with some additional Files. The replacement auf my files is working Properly but my project file is not renamed properly. Short example. I create a Project of Foo. Assemblyname should be MY.Foo and…
0
votes
1 answer

Remove number from default name in VS item template

When I go to "Add New Item" in VisualStudio and choose my custom item template (and also with the default item templates) the default entry for the name is XY1.cs, always having the 1 in the end, although the 1 is not given in the vstemplate…
Creepin
  • 482
  • 4
  • 20
0
votes
1 answer

VC++ 2010 template typedef typename error

I am trying to migrate a project to VC++ 2010 The project contains the file TabbedMDI.h (by Danial Bowen) which gives the error "named followd by '::' must be a class or namespace name for the line "typedef typename TClient::TTabCtrl…
0
votes
1 answer

Visual Studio C# Console App (.NET Core) Template Different

Everytime I open a new project for C# Console App I get the following template: I believe I somehow have updated the original template with one of my intro to C# tutorial practice. Is there anyway to reset the template? Update: Should the template…
0
votes
2 answers

Can Visual Studio's Project-Templates use T4s?

I'm surprised to see no link between the 2. Am I wrong ? I have some tt in a project template where I put $safeprojectname$ as filename to write and it doesn't seem to expand the tt file and create the cs file accordingly.
user310291
  • 36,946
  • 82
  • 271
  • 487
0
votes
1 answer

Debugging a vstemplate wizard

For a game engine called duality (https://duality.adamslair.net/) I want to make a solution template that will create the necessary projects and all the files needed for duality to function. This includes files and folders that are not part of a…
Barsonax
  • 197
  • 2
  • 12
0
votes
1 answer

Visual Studio Template: Custom Template category

How to put Custom Visual Studio template, written in C#, under other custom category (not under "Visual C#")? Visual Studio allows to create custom template category, but it will be created under the language category template written in:
Alex
  • 842
  • 11
  • 33