有没有办法运行 Xamarin UWP 项目而无需每次都部署 [英] Is there a way to run a Xamarin UWP project without deploying every time

查看:26
本文介绍了有没有办法运行 Xamarin UWP 项目而无需每次都部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行 UWP 应用之前,我是否总是必须单击才能部署它?这是两个步骤,我只想执行一个.

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.

我刚刚从 Visual Studio 2015 更新 2 中的跨平台、Windows、Visual C# 模板列表中创建了一个空白 Xaml 应用程序(Xamarin.Forms Portable)新项目.有适用于 Droid、iOS 和 UWP 的项目(通用 Windows)以及其他一些.我将 UWP 应用程序设置为启动项目并尝试运行它(通过单击本地计算机上的绿色箭头或按 F5),但收到一个错误,提示我需要先部署.如果我右键单击该项目,然后选择部署它部署成功,然后如果我运行它运行成功.如果我停止执行,进行修改,然后再次运行,我将看不到我的更改.如果我再次部署然后运行,我可以看到我的更改.

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.

我只是想确保我的 UI 看起来像它应该的样子,因此任何可以帮助我在进行代码更改和在任何平台上查看这些更改之间进行迭代的东西都会有所帮助.Droid 需要很长时间才能启动,而且我无法运行 iOS(没有 Mac)或 Windows 8.1(我使用的是 Windows 10 家庭版),这就是我首先使用 UWP 进行测试的原因.有没有比每次在运行之前右键单击项目进行部署更好的方法?

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?

推荐答案

Goto Build menu ->select configuration manager goto UWP project select both build and deploy option ..它会自动部署默认这个选项关闭

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

这篇关于有没有办法运行 Xamarin UWP 项目而无需每次都部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆