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

Visual Studio Project Template causes Exception HRESULT: 0x80070002

I followed this link to the letter for creating a new project template in Visual Studio for MVC3. Unfortunately, while the template shows up in the Dialog, when I click on it to create a new project, I get the "Exception from HRESULT: 0x80070002". I…
1
vote
2 answers

Visual Studio Item Templates and Resource Files

I'm trying to create a custom item template for Visual Studio that creates multiple files. Two of those files are Resource.resx file and a corresponding 'Resource.Designer.cs' file. I've managed to display them as a parent-child files with this…
Ivan Ferić
  • 4,725
  • 11
  • 37
  • 47
1
vote
1 answer

Visual Studio template ignores some project settings that are in template

I created a new template, which I can use. However it only uses some project settings I made a project with a working libSDL hi world example. I exported as a template, but template doesn't save some of my settings: ( It 'saves' them, but new…
ninMonkey
  • 7,211
  • 8
  • 37
  • 66
1
vote
1 answer

Move ProjectItem to physical directory in custom wizard for Item Template in VS2012

In Visual Studio 2012 (or below, preferably), is it possible to direct a newly created item to a particular folder in the filesystem instead of it going directly to the project root with a project item template? The ProjectItem.Save() and SaveAs()…
1
vote
1 answer

Single-Source/Multi-Project template

I would like to create a multi-project template for Visual Studio 2008 which contains two projects that access the same source files (single source for mobile and desktop development). The following multi-project template:
1
vote
0 answers

Visual Studio ItemsTemplate - $safeitemrootname$ is not doing what expected

I'm trying to create an ItemTemplate with multiple files. So far, so good. Both of my files are created and they have the right name. Now, one of them is named as the user entered. The other must use that name. I think that's what $safeitemrootname$…
Diego
  • 16,436
  • 26
  • 84
  • 136
0
votes
1 answer

VS2010 custom Template IWizard

I am just learning about custom VSTemplates I have created a wizard using IWizard, I have a solution folder which I need to change the name from testname to $safeprojectname$ how can I do this?
0
votes
1 answer

VS 2010 Referencing VS 2008 folder for installed templates?

Visual Studio 2010 appears to be referencing the corresponding Visual Studio 2008 folder for all installed item and project templates, even when I do the export template and check the box to install the template I just created, it stores the zips…
SventoryMang
  • 10,275
  • 15
  • 70
  • 113
0
votes
1 answer

How do I use the HamburgerMenuIconItem and HamburgerMenuImageItem in my ObservableCollection created by Template Studio WPF

I use Template Studio WPF to autogenerate the template of my UI. In the "ShellViewModel" I set up the HamburgerMenuItem container public ObservableCollection MenuItems { get; } = new ObservableCollection() { new…
0
votes
0 answers

Folder structure in vstemplate

I want to create a project template visual studio, And I need all the folders to be created as a template when building the project. This is the VSTemplate code.
0
votes
0 answers

Visual Studio Python Template Conditional Code

I am working on building a Visual Studio python template. During the project creation I want the user to be able to check a box to add additional code to the project during creation. I have the checkbox in the project creation screen. However, when…
Travis Pettry
  • 1,220
  • 1
  • 14
  • 35
0
votes
1 answer

Getting ERROR while setting up FSH console tool

I am trying to install latest FullStackHero FSH console tool. I have all the prequsites like .NET 7 and Nodejs (latest) installed in my machine. Now when I tried to install the FSH console via the cmd prompt I see the below error…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
0
votes
0 answers

How to execute a postaction script from a dotnet new template

I'm trying to execute a simple script just after a project is generated from a dotnet template. The script will try to create a new file called new.txt in the generated project's root directory. Some sample code I was referencing to make this comes…
billy bud
  • 103
  • 2
  • 13
0
votes
0 answers

How to control the project folder name in a Microsoft Visual Studio VSTemplate

I have a multi-project VSTemplate using the ProjectCollection feature and want to control the folders created for each of the projects SecuredBlazorWebAssembly.Client Secured Blazor Web Assembly…
KevinRF
  • 602
  • 3
  • 13
0
votes
1 answer

Is it possible to get a class and it's properties within a visual studio item template?

I am currently creating a few templates for my team to use within various projects. I have a very simple "simple mapper" template and a wizard to go along with it that I'd like to expand adding others as I continue. namespace…