visual-studio-2015

How can I add a UWP target to an existing Xamarin Forms project?

余生长醉 提交于 2020-01-11 02:49:51
问题 I have an existing Xamarin Forms app that's setup to build for Android and iOS. I want to add a UWP target so I can see how the app performs on Windows. I assume I can do this without having to create a new UI for Windows? I'm using Visual Studio 2015 on Windows 10. 回答1: You should be able to following this Xamarin documentation page Old xamarin.com link old documentation page It consists of a couple of steps, everything is in Visual Studio as UWP is not supported in Xamarin Studio: Add a

How to set up angular-cli with Visual Studio 2015 in MVC 5?

心已入冬 提交于 2020-01-11 01:25:07
问题 I'm looking for some best practices and instructions on how to set up and integrate angular-cli (webpack) with Visual Studio 2015 in MVC 5 (not Core). I realize there's a similar question asked here (how to set up asp.net angular 2 project using Angular-Cli with ASP.NET Core in Visual Studio 2015?), but that was for Asp.net Core only. My project could not move over to Core yet due to server technical issues. 回答1: Here is my solution: Keep an empty index.html Run ng build to generate index

Prevent Visual Studio 2015 from removing line continuation characters (_) in VB.NET files

∥☆過路亽.° 提交于 2020-01-10 18:11:40
问题 I'm opening some old VB.NET projects in Visual Studio 2015 and when I edit the code, VS changes the syntax: It removes "_" in concatenations: 'Before myString = "ABC" & _ "DEF" 'After myString = "ABC" & "DEF" or add a space before !: 'Before myDatatable.Rows(0)!myColumn 'After myDatatable.Rows(0) !myColumn This syntax isn't compatible with Visual Studio 2010 or 2013. How can I disable this changes? 回答1: I had the same problem, and I was able to fix it by disabling the "Pretty listing" option

After installing VS 2015 Update 2, IIS Express closes when I stop debugging

こ雲淡風輕ζ 提交于 2020-01-10 07:58:07
问题 This problem occurs despite unchecked 'Enable Edit & Continue`: 回答1: This issue has been resolved in Visual Studio 2015 Update 3. Read the release notes here. Web Developer Tools For ASP.NET Web Application projects, when "Enable Edit and Continue" checkbox is unchecked, the IIS Express process will no longer stop every time you stop debugging. 回答2: This work-around is working for me. Instead of hitting the "Stop" debugging button, go to the Debug menu item and select "Detach All". This will

Visual Studio 2015 takes a long time (10 - 15 minutes) to reload projects after a “Get Latest” from TFS

不问归期 提交于 2020-01-10 05:04:46
问题 My question is very similar (but not identical to) this one. There's also a discussion of a similar issue on a MSDN blog. However, the answers given in those posts didn't really resolve the issue for me. I have a large solution file (currently 106 projects, which I've always considered less than ideal, but I didn't have a say in that). When I do a "Get Latest" from Visual Studio involving a large number of changes, Visual Studio spends literally 10 - 15 minutes reloading projects (not an

Running unit tests in TFS/VSO Build vNext using xUnit adapter

给你一囗甜甜゛ 提交于 2020-01-10 02:20:29
问题 I am trying to run our xUnit tests using the xUnit test adapter in Visual Studio Online's Build vNext platform. As stipulated in this article, we need to provide a custom test adapter path pointing to xunit.runner.visualstudio.testadapter.dll . But this package is restored by NuGet to a global packages folder, namely C:\Users\{user}\.dnx\packages ? How am I to reference this folder in the build step? We are using VS 2015 and DNX projects. EDIT: I even tried pointing to the package path DLL

Upgrade Visual Studio 2013 solutions to Visual Studio 2015

折月煮酒 提交于 2020-01-09 08:40:26
问题 I have installed both Visual Studio 2013 and Visual Studio 2015. Projects and solutions that were created in VS2013 are opened by VS2013 as I would expect, but I would like to be able to upgrade those files so that they would be opened by VS2015 when double clicked. How can I upgrade solution files that are in VS2013 format so that the Microsoft Visual Studio Version Selector will open them in VS2015? 回答1: The simplest solution IMO (also worked for 2012 and 2013) is: Open the solution file

Upgrade Visual Studio 2013 solutions to Visual Studio 2015

血红的双手。 提交于 2020-01-09 08:39:09
问题 I have installed both Visual Studio 2013 and Visual Studio 2015. Projects and solutions that were created in VS2013 are opened by VS2013 as I would expect, but I would like to be able to upgrade those files so that they would be opened by VS2015 when double clicked. How can I upgrade solution files that are in VS2013 format so that the Microsoft Visual Studio Version Selector will open them in VS2015? 回答1: The simplest solution IMO (also worked for 2012 and 2013) is: Open the solution file

How to open the Visual Studio Editor Programmatically in a VSIX project

纵饮孤独 提交于 2020-01-07 09:15:53
问题 I am working on a VSIX(Visual Studio Extension) project where I am fetching html text from a Service. I need to open the retrieved html text in the Visual Studio Editor. Any idea on how to achieve it or any sample code ? Thanks 回答1: You can save the text to a .html file and then open it in the VS editor with DTE.ItemOperations.OpenFile(file); 回答2: Take a look at AutoFindReplace extension which opens existing files in the editor window. You can download it from the VS Gallery. 来源: https:/

Set build order without using project reference

允我心安 提交于 2020-01-07 08:36:27
问题 In our solution we have more than 150 projects, now most of projects are using some .js file, which is generated by another project. So I need build this project before others. I know I can set the other projects are reference this project, but the problem is that we have nearly 100 projects that needs those .js file, add this project as reference project to 100 projects is not the best option. So how can I set the build order without adding project reference? Thanks any advice. 回答1: how can