Questions tagged [project-template]

For questions regarding working with project templates in an IDE, such as those visible in Visual Studio's New Project dialog.

292 questions
3
votes
1 answer

Execute PowerShell script from custom project template

I am currently creating a project template and I was wondering if it would be possible to execute a PowerShell script after the project has been created (similar to the install.ps1 in NuGet packages). Any chance to do this without implementing my…
3
votes
3 answers

Visual Studio Project Template and Private Assembly Referencing

I noticed someone else asked a similar, if not exactly the same, question before, but the answer to it didn't help (me, anyway). I have a project that I'm building a template from. When I go to reference an assembly in the Program Files, the…
user29227
  • 125
  • 1
  • 7
2
votes
2 answers

XCode project template with custom framework

I am trying to create project template in XCode 4.3.2 that will include custom framework. I want to include QuincyKit.framework to my project template to enable crash reporting. Is there way how to do it?
Martin Pilch
  • 3,245
  • 3
  • 38
  • 61
2
votes
2 answers

Should NuGet.VisualStudio.Interop.dll be in the GAC to use it as a wizard?

I am creating a project template. I would like to have it auto install unity and prism via NuGet. I read here how to do that. I setup my vstemplate file like that page indicates: NuGet.VisualStudio.Interop,…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
2
votes
1 answer

Editing "testproject.zip" to stop "UnitTest1.cs" being created

I've been modifying the VS2010 item and project templates so each time we do a "new project" or "new item" we get it created in a format that works for us. This is all working fine; if we create a new class library we get it with the references…
Paul Hadfield
  • 6,088
  • 2
  • 35
  • 56
2
votes
0 answers

Multiproject Template - Adding solution folder and assemblies in a solution

I am able to create a multiple project using vstemplate and using IWizard to implement project name name conversion but I cannot able to add a solution folder and assemblies into it in RunCompleted method of IWizard. I am using Visual Studio 2010…
Prabu
  • 159
  • 2
  • 9
2
votes
0 answers

How to enable "Additional Information" window in Visual Studio 2022 during creating a new project from a custom template

I create a VSIX package which contains a project template. The VSIX package compiles and installs as a Visual Studio 2022 extension without any issues. Also, it appears as one of the templates when the new project is created: The main problem is…
Vladyslav
  • 31
  • 1
2
votes
1 answer

Create C# Project Templates in Visual Studio 2022 (.NET6)

I have VS 2022 with dotnet 6. I want to create custom project templates. How do I package it, so that my peers can just use it in their machine ? (I tried VSIX but I think it does not support dotnet 6 yet) Also, I want to use custom variables. e.g.…
2
votes
1 answer

How to stop Visual Studio from including x86 target in new projects

I remember when VS templates only included x86 targets and you had to add an x64 target manually. Now it generates both. Now I would like the reverse; x64 target generated and add x86 if needed. It's easy to delete the x86 configuration, but hey, I…
2
votes
1 answer

Delete project template in Rider

The picture is pretty explanatory, I am trying to remove the project template from the "Other" category, but I cannot locate any useful setting/configuration anywhere. The places I have looked into are…
woof
  • 83
  • 2
  • 8
2
votes
0 answers

Xcode 4 project template adds extra folder

When I make a new project with xc4 I don't want it to create a folder with the same name as the project. I want the source files associated with a project template to get copied into several other folders that sit next to the project. In the…
joshfisher
  • 227
  • 1
  • 3
  • 8
2
votes
1 answer

How to add folder reference in XCode 4 Project Template

i have some problems about adding folder reference in xcode 4 project template, i just can add Groups and Sub Groups to project. does anyone successed doing this? please share here.. here's the code that i use to add…
codecarver
  • 249
  • 2
  • 10
2
votes
3 answers

Visual Studio custom project template - applicationUrl port number

Is there any way to add an available random port number for the applicationUrl for a project created from a custom VisualStudio template? I have created a VS project template for .NET Core projects and have added some placeholder parameters such as…
2
votes
0 answers

How to pass custom parameter a value

I developed an item template whos's located in: C:....\Documents\Visual Studio 2017\Templates\ItemTemplates On my code i'm using AddFromTemplate() method to load my item template. The item template has a $CustomParameter$ but i dont want to pass…
Bro
  • 63
  • 5