Is there a way to run a Xamarin UWP project without deploying every time

此生再无相见时 提交于 2019-12-07 01:01:18

问题


Do I always have to click to deploy a UWP app before running it? Thats two steps and I'd like to perform just one.

I've just created a Blank Xaml App (Xamarin.Forms Portable) New Project from the list of Cross-Platform, Windows, Visual C# Templates in Visual Studio 2015 update 2. There are projects for Droid, iOS, and UWP (Universal Windows) as well as a few others. I set the UWP app as the startup project and attempted to run it (by clicking the green arrow on my local machine or hitting F5), but I received an error saying that I need to deploy first. If I right click the project and then choose deploy it deploys successfully and then if I run it runs successfully. If I stop execution, make modifications, then run again I do not see my changes. If I deploy again and then run I can see my changes.

I'm trying to just make sure my UI looks like it should and so anything that helps me iterate between making code changes and seeing those changes in any platform would be helpful. the Droid takes forever to start up and I can't run iOS (no Mac) or Windows 8.1 (I'm on windows 10 home) which is why I'm testing things out with UWP first. Is there a better way than right clicking the project to deploy every time before hitting run?


回答1:


Goto Build menu ->select configuration manager goto UWP project select both build and deploy option .. it will automatically deploy default this option switch off



来源:https://stackoverflow.com/questions/37893335/is-there-a-way-to-run-a-xamarin-uwp-project-without-deploying-every-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!