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

IWizard with multiproject template to grab nuget prerelease package

I have created a multi-project template and when creating a new project I'm having success installing nuget packages into all my projects when it comes to regular release versions, but I'm trying to grab signalr's prerelease version and it can't…
james
  • 408
  • 7
  • 22
2
votes
1 answer

Xcode 4 project template script execution

Is it possible to execute a script within a custom Xcode 4 project file template? I am not referring to a Run Script within the target build phase but a script that is executed once the template is chosen and prepares the project itself. I am trying…
Till
  • 27,559
  • 13
  • 88
  • 122
2
votes
0 answers

Check project path in custom Visual Studio wizard

I have created a custom template wizard for Visual Studio 2010. Thus I'm implementing the Microsoft.VisualStudio.TemplateWizard.IWizard interface. I want projects generated by this wizard to always be placed in a certain directory. If the user…
l33t
  • 18,692
  • 16
  • 103
  • 180
2
votes
1 answer

Visual Studio template export for ASP.NET MVC

I have an issue with namespaces in views when I export my template. The cs files have a variable to replace namespace. But cshtml (strongly typed view) contains parent project namespace for model. How to make visual studio export views with…
xwrs
  • 1,287
  • 3
  • 16
  • 29
1
vote
1 answer

Create Visual Studio project template with custom targets file import

We use external API that can change versions, so we created target file where it is easy to switch which version of the API is included. Import looks like this: It is a pain…
Andrew Bezzub
  • 15,744
  • 7
  • 51
  • 73
1
vote
0 answers

No project template for a ‘WPF Ribbon Application’ in VS 2010 after Microsoft Ribbon for WPF installation

I installed Microsoft Ribbon for WPF from the following page: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11877 But there is no project template for a ‘WPF Ribbon Application’ in Visual Studio 2010. Is there way to fix it?
jvisprime
  • 35
  • 6
1
vote
1 answer

Conditionally exclude project creation in a multi-project Visual Studio project template

I have a multi-project Visual Studio project template. I want to be able to, conditionally, exclude specific projects from the created solution. I've looked into the ProjectFinishedGenerating method of my IWizard implementation, but I can't seem to…
1
vote
2 answers

Where is the Visual Basic COM project template?

I was at a class recently, and the instructor started a new Visual Studio 2008 project using a "COM project" template. Now that I'm back, I tried finding that template in my installation of VS2008 with no luck. Does anybody know where I can find…
scott8035
  • 424
  • 1
  • 6
  • 15
1
vote
1 answer

Edit the default VS 2010 Silverlight Project Template

Does anyone know where I can find the default Silverlight Project Template used in Visual Studio 2010. Every time I create a new SL project I need to add one namespace in MainPage.xaml, so I thought it would be nice to add it straight into the…
Kiril Stanoev
  • 1,865
  • 2
  • 20
  • 33
1
vote
1 answer

Using wizards with project templates in VS 2019 : Wizard is not working

I'm trying to create a wizard for my project template by referring to this article. https://learn.microsoft.com/en-us/visualstudio/extensibility/how-to-use-wizards-with-project-templates?view=vs-2019 I have done all the steps as in the…
Kalpani Ranasinghe
  • 111
  • 1
  • 1
  • 11
1
vote
1 answer

Can a ProjectTemplate archive be stored within a Visual Studio solution, similar to the way CodeTemplates (.tt) files work?

There are many blog posts out there that show you how to create and include T4 (Text Template Transformation Toolkit) files (.tt) in your solution and have them override those stored in the default Visual Studio location. (see bottom of question for…
Nick Josevski
  • 4,156
  • 3
  • 43
  • 63
1
vote
1 answer

Copy Files to Project Folder with Visual Studio Project Template

I'm making a custom Visual Studio Project Template for a CSharp project and was wondering if there was a way to copy a dll from the template zip file to the new project file without including the dll in the project files? The idea is that the…
maschall
  • 988
  • 1
  • 7
  • 13
1
vote
1 answer

Is there a way to exclude files from a visual studio project template based on user input in Wizard?

I am trying to create a project template in c# for visual studio. Is there a way to include only certain files from the project template in the created project based on the input from wizard? Example - the project template has class files -…
1
vote
1 answer

How to edit default C# .Net Core Templates In Vs2019?

I've been trying to edit the default .Net core templates installed with vs2019 but I can not find where they are stored I checked: .\Microsoft Visual Studio\2019\Community\Common7\IDE\ProjectTemplates\CSharp\ but that directory only contains .Net…
1
vote
1 answer

Multi Project Visual Studio Templates - Specify where to create individual project folders

I'm creating a multi-project Visual Studio template. This template has multiple projects specified as such -
Paul McLean
  • 3,450
  • 6
  • 26
  • 36