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

Change project-properties with IWizard

I created a template for a VS-project where I want to set some attributes provided by the user. So I implemented IWizard-interface: public void RunStarted(object automationObject, Dictionary replacementsDictionary, WizardRunKind…
MakePeaceGreatAgain
  • 35,491
  • 6
  • 60
  • 111
0
votes
1 answer

Visual Studio 2013 Project Template Customization

I'd like to customize the UnitTest project template for Visual Studio 2013: We use Moq very often in UnitTest projects, hence I think it should be automatically referenced. In C:\Program Files (x86)\Microsoft Visual Studio…
Bernhard Hiller
  • 2,163
  • 2
  • 18
  • 33
0
votes
2 answers

Visual Studio 2015 project fails adding to source control

i'm trying to use the functionality of the visual studio 2015 to create a project template. I have a simple wcf-project with my special web.config. To use classes from another project i referenced it. Those two projects are in the same solution and…
0
votes
1 answer

Visual Studio VSIX template with Nuget Packages

I'm trying to follow this tutorial (https://samritchie.net/2012/09/17/nuget-packages-in-vs2012-templates/) to create a Visual Studio VSIX template with Nuget package dependencies that just auto-install when you download the template, but I'm running…
Nick
  • 1,864
  • 5
  • 27
  • 49
0
votes
1 answer

In what order are projects returned using ActiveSolutionProjects?

Im using this code, inside a project template wizard. DTE dte = project.DTE; VSProject vsProj = (VSProject)project.Object; Array projects = (Array)dte.ActiveSolutionProjects; Project activeProject = (Project)projects.GetValue(0); But im curious in…
Moulde
  • 3,438
  • 4
  • 29
  • 38
0
votes
1 answer

Visual Studio project template error

I created a Visual Studio template by using the export template wizard. But when I create a new project from that template system namespaces red underlined. It says "Namespace not defined". Can someone help me?
0
votes
1 answer

Visual Studio 2010 MVC Project type Disappeared

I have been working with visual studio 2010 Premium RTM for over a month. When I installed it I had a fresh install of windows. (No betas or previous versions of VS) I have been creating new ASP.NET MVC2 C# projects since I installed it. I went to…
0
votes
1 answer

Cannot see properties of NuGet library project

In Visual Studio 2015, if I create a project with the template "Class Library (Package)", when I right click on the project and select Properties, I see this error in the properties windows: An error occurred trying to load the project properties…
Paolo Tedesco
  • 55,237
  • 33
  • 144
  • 193
0
votes
2 answers

WAT: Web App Template

As I understand using WAT you can wrap existing web application to make Windows Store app. But when I tried to install it for VS 2015 Community Edition, I got the following error: VSIXInstaller.NoApplicableSKUsException: This extension is not …
Alexan
  • 8,165
  • 14
  • 74
  • 101
0
votes
2 answers

Visual Studio 2008 ProjectTemplates

Is there anywhere I can download the ProjectTemplates folder for Visual Studio 2008? I accidently deleted it and the cache folder so need to get a copy of it!
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
1 answer

Visual Studio - Create -> New Project Dialog without ProjectTemplate

I'm working a bit on CodeGeneration and Visual Studio integration- -> And I need some help... Since I`m working on it, most of the time I used Visual Studios vsix-projects and ProjectTemplates to create new ProjectTemplates as Visual Studio…
0
votes
0 answers

Would having several classes with the same name in different VS (Sharepoint) Projects be problematic?

Is there a compelling reason to change a generic class name, as "inherited" from a Project Templete? I have this code in my new project, which was created from a (self-created) template: // REPLACE: Change the name of this class, if desired, to…
0
votes
1 answer

Is it possible (and advisable) to create a visual studio 2010 project template from a project created from a project template?

I have created a Visual Studio 2010 project template by simply selecting File > Export Template... I then created a new project using that template as the basis. Now I find, though (inevitably!), that I want to refactor the template. Can I make…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

Visual Studio project template not performing substitution in one file

I'm creating a Visual Studio project template as described in the documentation. This involves using $tokens$ in files (cs/csproj/xml/etc) which are substituted when the template is used. However this substitution is not happening for one of my…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
0
votes
1 answer

Creating a class library project template and changing the default class' name

I'm trying to create one simple project template for visual studio. The project is of type class library. When creating a new project from that template I wish to get the user's desired project name and use that same name for the default class in…