visual-studio-templates

How to create a solution template in VS2010?

天涯浪子 提交于 2019-12-04 15:47:09
问题 Can anyone point me in the right direction on how to create a Solution Template in VS2010? I need to create a solution with several projects already created.... 回答1: You can find a blog post with an example at http://bloggemdano.blogspot.com/2010/05/creating-f-solution-template-for-visual.html. 回答2: Solution templates do not exist. A VSTemplate type can be Project or Item, reference is here. This is also visible from File + Export Template. Maybe you could write a macro to copy/create the

Multi-project Visual Studio template with solution folders containing files

笑着哭i 提交于 2019-12-04 12:36:18
I'm creating a multi-project template in Visual Studio, and I got the basics up and running quite nicely. MySolution.vstemplate : <VSTemplate Version="2.0.0" Type="ProjectGroup" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"> <TemplateData> <Name>My standard .NET solution</Name> <Description>My standard .NET solution</Description> <Icon>myicon.ico</Icon> <ProjectType>CSharp</ProjectType> <DefaultName>Customer.Project</DefaultName> <SortOrder>5000</SortOrder> </TemplateData> <TemplateContent> <ProjectCollection> <SolutionFolder Name=".nuget"> .... here I'd like to link to a few

WebApi2 in visual studio 2012

梦想与她 提交于 2019-12-03 22:27:30
How can I create a project that uses WebApi2 in visual studio 2012? Do I have to create with a blank project or do I have to create a MVC project? I don't want to install Visual Studio 2013 preview, please help. You need to install ASP.NET and Web Tools 2013.1 for Visual Studio 2012 which adds the Web API 2 and MVC 5 templates Create a MVC project, right-click to and select Create an MVC project Right click the project in solution explorer and select "Manage nuget packages" Select "include Prerelease" Search for web api and select "Microsoft ASP.NET Web API", make sure the version is 5.0.0

Do HTML5 development using grunt and bower with WebSite project or create HTML5 Web app in Visual Studio 2015?

北慕城南 提交于 2019-12-03 16:32:28
I want to build a custom PURE HTML5 Web Template, for HTML5/CSS3/JavaScript single page application development, and then use that as a starting place for SPA HTML5 web development. Microsoft clearly recommends using Web Applications, but provides NO pure HTML5 web application template, thus this task is left to end users. I am not asking if I should use an ASP.NET Web Site or ASP.NET Web Application instead I am asking, what template configuration can I arrange that will let me use the most modern HTML5 tools and workflows, and is it the Web Application (with .csproj or .xproj project file)

How to create a solution template in VS2010?

霸气de小男生 提交于 2019-12-03 09:51:28
Can anyone point me in the right direction on how to create a Solution Template in VS2010? I need to create a solution with several projects already created.... Daniel Mohl You can find a blog post with an example at http://bloggemdano.blogspot.com/2010/05/creating-f-solution-template-for-visual.html . Solution templates do not exist. A VSTemplate type can be Project or Item, reference is here . This is also visible from File + Export Template. Maybe you could write a macro to copy/create the required files. That's not a VS template, but you can use tempify to create folder templates - http:/

Visual Studio multi-project templates rename namespaces and project names

纵饮孤独 提交于 2019-12-03 03:35:46
I've successfully created a multi-project solution template. What I would like to do, however, is to rename the beginning of each project with the name of the solution. So my projects: ProjectOne.A ProjectTwo.B Would be renamed to SolutionName.A SolutionName.B where SolutionName is the name by the user when they created the project. I've read the following articles: http://msdn.microsoft.com/en-us/library/ms185308.aspx http://msdn.microsoft.com/en-us/library/ms185311.aspx http://msdn.microsoft.com/en-us/library/ms247063.aspx but none seem to answer my specific situation. Danny Varod If your

Change “Implement interface” template in Visual Studio

戏子无情 提交于 2019-12-01 21:09:36
问题 I'm constantly using the "Implement interface" shortcut in Visual Studio 2008. My "problem" is that i want Visual Studio to use the String -alias instead of string in every instance. Since i'm forced to use String instead of string this would save me a great ammount of time. For example, i want the following: public Catalogue(String url) { } instead of public Catalogue(string url) { } Is this possible? Where do I find these templates? 回答1: You cannot change the templates used during

Change “Implement interface” template in Visual Studio

偶尔善良 提交于 2019-12-01 19:08:40
I'm constantly using the "Implement interface" shortcut in Visual Studio 2008. My "problem" is that i want Visual Studio to use the String -alias instead of string in every instance. Since i'm forced to use String instead of string this would save me a great ammount of time. For example, i want the following: public Catalogue(String url) { } instead of public Catalogue(string url) { } Is this possible? Where do I find these templates? You cannot change the templates used during refactorings. Templates that you can change are available in %ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE .

Visual Studio 2015 ASP.NET Core RC2: loss of Custom Item Templates

时光怂恿深爱的人放手 提交于 2019-11-29 12:08:23
I use Visual Studio 2015 update 2 Community Edition. With Visual Studio DotNetCore RC1 tools I had my custom Item Template under DNX section. I can't provide proving screenshot because I already moved to DotNetCore RC2 Tools Preview 1. With the last set of tools I lost my Item Template. I tried to change ProjectType and ProjectSubType from DNX to CSharp/Web, tried to put component in different places with no success. The last .vstemplate file has the following content <?xml version="1.0" encoding="utf-8"?> <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate

Visual Studio 2015 ASP.NET Core RC2: loss of Custom Item Templates

跟風遠走 提交于 2019-11-28 05:48:59
问题 I use Visual Studio 2015 update 2 Community Edition. With Visual Studio DotNetCore RC1 tools I had my custom Item Template under DNX section. I can't provide proving screenshot because I already moved to DotNetCore RC2 Tools Preview 1. With the last set of tools I lost my Item Template. I tried to change ProjectType and ProjectSubType from DNX to CSharp/Web, tried to put component in different places with no success. The last .vstemplate file has the following content <?xml version="1.0"