visual-studio-templates

Visual Studio Templates - adding additional pre-existing projects

旧城冷巷雨未停 提交于 2019-12-22 03:20:34
问题 I'm working on a Visual Studio template where the generated project relies on a number of references, which happen to be other projects under source control. The question is how do I set this up in my ProjectGroup template? For example, if I have an already existing project at "C:\Stuff\MyUtilityProject\Utility.csproj" with a single file (Tools.cs) that I want to add to my template, how would I go about this? Here's what my vstempalte looks like. FYI - I am having no issues with the

.jsproj cannot be opened. This project type is not supported by this installation

大兔子大兔子 提交于 2019-12-21 03:33:15
问题 I am trying to create a new project in VS2015 community edition using JavaScript template but getting error: The project file 'IonicCordovaProjectSolution\IonicCordovaProject\IonicCordovaProject.jsproj' cannot be opened. This project type is not supported by this installation" Do I need to install anything else to make JavaScript templates work? 回答1: To make .jsproj work, HTML/JavaScript component must be selected while installing VS. For my case, I had selected typical installation so it

Visual Studio multi-project templates rename namespaces and project names

。_饼干妹妹 提交于 2019-12-20 14:24:45
问题 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

WCF Data Service template with Visual Studio 2013 preview

三世轮回 提交于 2019-12-13 06:25:45
问题 A day ago I reformatted my computer and installed Windows 8.1 and then Visual Studio 2013 Preview. I was very VERY happy with all the changes, but I encountered one thing that's missing from 2012 version: WCF Data Service template Thing is that not only the template is missing, but the one that works with 2012 is not compatible with 2013 Preview even when I add template package manualy and change the assembly version in .vstemplate file. Am I missing something and this is not enough:

Visual studio project template replaces “$(SolutionDir)” macro in template on build

懵懂的女人 提交于 2019-12-11 05:18:36
问题 I am trying to make a project template for internal use that has all of the custom parts of our assembly versioning system. The default project template works perfectly with our pre-build and post-build event but when I try to reference a file using the $(SolutionDir) macro it gets replaced during the building of the template and <ItemGroup> <Compile Include="$(SolutionDir)\CommonAssemblyInfo.cs"> <Link>Properties\CommonAssemblyInfo.cs</Link> </Compile> <Compile Include="Properties

Nested projects in multiproject visual studio templates

我与影子孤独终老i 提交于 2019-12-11 03:47:41
问题 I need to create a vsTemplate with the following structure. ECart - Ecart.csproject - Modules - Folder - MVC.csproject How can we add a project within another project? In this case ECart is a web project and MVC is another project within the Modules folder of the same project. Here is what I am trying in my template - <ProjectTemplateLink ProjectName="ECart"> ECart.vstemplate </ProjectTemplateLink> <ProjectTemplateLink ProjectName="Mvc"> Modules\Mvc\Mvc.vstemplate </ProjectTemplateLink> 回答1:

What is the best way to include references to my own assemblies in a project template?

做~自己de王妃 提交于 2019-12-10 14:53:43
问题 We have developed a library in C#, and now I wish to create a project template to aid in using the library correctly. I want new projects to include a reference to the library assembly, but would prefer not to have to deploy the assembly to the GAC, or to depend on the assembly residing in some specific location. What I am thinking is to include the .dll in the project template .zip file. That means it will end up somewhere inside the project folder of new projects. Perhaps in a folder named

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

守給你的承諾、 提交于 2019-12-09 13:35:07
问题 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

Bower replacement in Visual Studio 2017 ASP.NET MVC Core Template

自作多情 提交于 2019-12-09 07:48:55
问题 Lately I created a ASP.NET MVC Core project from scratch using Visual Studio 2017 (15.6.3). I discovered the usual JavaScript frameworks: bootstrap jquery jquery-validation jquery-validation-unobtrusive But unfortunately all Bower support is gone! There's no bower.json , no .bowerrc and no "Manage Bower Packages..." anymore: What's wrong with Visual Studio's ASP.NET MVC Core template? Did Bower become obsolete? Please don't duplicate this question to How to use bower packages in Visual Studio

Multi-project Visual Studio template with solution folders containing files

余生长醉 提交于 2019-12-06 08:31:56
问题 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>