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

Default ASP.NET Identity login redirect

In the default Visual Studio 2013 MVC SPA template, all requests default to a login page, except for the help page. I assume this is due to that having a seperate controller. Where is the code located that requires a login for all other pages?
Venatu
  • 1,264
  • 1
  • 13
  • 24
1
vote
1 answer

VSX: ProjectFlavor-only item VSTemplates?

In Visual Studio 2005, 2008, and 2010, is it possible to define an Item Template that only appears in the Add Item dialog for projects of a particular ProjectFlavor? I'd rather not clutter all of the other unrelated projects' Add Items dialog if I…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
1
vote
0 answers

AddFromTemplate() throw exception in VS 2012

I create Visual Studio C++ project programmatically. I build it by Solution2.SolAddFromTemplate() method: //Create VS IDE Type visualStudioType=Type.GetTypeFromProgID("VisualStudio.DTE.10.0"); DTE dte =…
1
vote
0 answers

Is there a way to run an Add-In from a project template wizard?

I have created a new DataObject project template, and I have an Add-In that generates new data object classes and adds them to the current project. Is there a way that I can make the add-in run whenever the project template is used? -edit- I figured…
Nick
  • 4,556
  • 3
  • 29
  • 53
1
vote
1 answer

How to customize the Debug process in Visual Studio Template

I use Visual Studio 2010, C#, .Net 4.0. I want to create a VS2010 Template for a project. The output is in a .dll file. I already have a program ABC.exe . This program can get a path to a .dll as an input parameter. Here is my need: I need to…
1
vote
1 answer

"An unknown error occurred" when loggin in in Visual Studio 2013 SPA template on IIS8 express

I have used the SPA template in VS2013 and try to host it in IIS8 on Win8. When I try to Log In in the Todo list I get a An unknown error occurred. When I run the solution in VS2013 (preview v.12.0.20623.01 update) through the development webserver…
LosManos
  • 7,195
  • 6
  • 56
  • 107
1
vote
1 answer

How can I skip path resolution when creating a new VS project?

I've created a custom MVC VS project template for my company. Within the csproj file, I reference the "_references.js" file of a different project a couple of levels higher than my current project. The way I have added this file in the template is…
Rockdocta
  • 604
  • 1
  • 9
  • 26
1
vote
1 answer

How to include external "lib" directory in multi-project .vstemplate?

I've written a multi-project .vstemplate file, which works alright, except that the projects have some external dependencies (.dll's) that I want to include with the template, as a peer directory to all the project directories, such that the…
Andrew Arnott
  • 80,040
  • 26
  • 132
  • 171
1
vote
1 answer

Item Template for Web and/or MVC in a VSIX?

Is there a way to specify what type of project an item template is for besides CSharp and VB? I have tried setting ProjectType to Web and ProjectSubType to CSharp as it says in this article…
1
vote
0 answers

Visual Studio 2012 Template Set Custom Start Options

Ok so I am creating a Node.js Template in Visual Studio 2012 Ultimate. I have the Project that I will use as a template completely setup with Intellisense, Syntax highlighting and the Start options set to start node and run the server.js file…
Nomad101
  • 1,688
  • 11
  • 16
1
vote
1 answer

How to change Resources.resx template

I want to change Resources.resx template. Whenever I add a new resource file it should show autogenerated code in following form: //------------------------------------------------------------------------------ // // This code…
user2039445
  • 253
  • 1
  • 4
  • 17
1
vote
0 answers

Changing namespace using vstemplate?

I'm creating a custom project template in VS 2010, and I want to add prefix to all of these projects (it is a template for sub-projects within a solution). So, if I create "NewProject" I want it to have the namespace "MasterSolution.NewProject". I…
user1711233
  • 251
  • 1
  • 8
  • 16
1
vote
1 answer

Do I need a wizard to rename namespaces and project names in a Visual Studio multi-project template?

I'm using VS 2010, and I need to do some multiproject template samples, using VSIX, not necessarily a Wizard, but it works fine for what we need. My project names should be: CompanyName.SolutionName.Accounting CompanyName.SolutionName.Banking And…
1
vote
0 answers

Run Custom Tool at build in VS

I'm creating an internal VS template to create new versions of a multilingual website with custom fields filled by a wizard. All is going well, until I try and run the program. Upon running, I receive... Could not find any resources appropriate for…
Boomtown
  • 105
  • 1
  • 11
1
vote
1 answer

Visual Studio 2010 add Outlook 2003 project template

I have installed Visual Studio 2010, and I want to create Outlook 2003 add-in program which add few buttons on navigating menu. I want to use some of the tempaltes provided by VS2010 ( at least in case of Office 2007 and 2010 provided) but there is…