的Visual Studio 2013的远程调试,自动部署? [英] Visual Studio 2013 remote debugging, auto deploy?

查看:290
本文介绍了的Visual Studio 2013的远程调试,自动部署?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试远程调试与Windows应用商店的应用程序(城域应用),这是非常容易的。在开始下拉我可以选择远程计算机之一。然后VS建项目,并自动部署可执行文件到远程计算机并运行它。这感觉就好像它是本地调试。

When I tried remote debugging with Windows Store applications (Metro applications), it was very easy. In the Start drop down I could choose one of the remote computer. Then VS built the project and automatically deployed the executable to the remote computer and ran it. It felt as if it were local debugging.

现在,我想尝试用一个Windows应用程序(简单的C#Windows窗体)远程调试,它不是那么容易。我阅读以下页面: http://msdn.microsoft.com /en-us/library/vstudio/8x6by8d2(v=vs.110).aspx

Now that I want to try remote debugging with an Windows application (simple C# Windows Forms), it was not that easy. I read the following page: http://msdn.microsoft.com/en-us/library/vstudio/8x6by8d2(v=vs.110).aspx

这是否意味着我必须复制内置exe文件的手动远程计算机,当我生成项目每一次?有没有什么办法让它轻松的工作就像Windows应用商店的应用程序?可能是第三方扩展还是什么?

Does this mean I have to copy the built exe to the remote computer manually every single time when I build the project? Is there any way to make it work easily just like the Windows Store apps? Possibly a third-party extension or something?

推荐答案

我最近设置此为一个工作项目,并经历后,遇到你后类似的问题。我详细的在我的博客我的解决方案。

I recently set this up for a work project, and encountered your post after experiencing similar issues. I detailed my solution on my blog.

与VS2015

我改变了输出文件夹是我的调试帐户具有访问网络共享,项目构建刚刚创建输出在该位置,使得它可用于调试器。我只是按我的选择远程调试的个人资料栏上的播放(调试)按钮。

I changed the output folder to be a network share that my debugging account has access to, and the project build just creates output at that location, making it available to the debugger. I simply press the play (Debug) button on my toolbar with the 'Remote Debug' profile selected.


  1. 开启配置管理解决方案

  2. 添加新配置,并适当命名。选择框中的所有项目将自动这么做。

  3. 打开您希望远程调试。

  4. 确保可执行项目的项目属性远程调试配置中选择。

  5. 设置生成输出到网络共享的远程调试计算机上。

  6. 设置远程调试主机地址和端口。

  1. Open Configuration Manager for the solution
  2. Add a new configuration and name it appropriately. Select the box to automatically do so for all projects.
  3. Open the project properties of the executable project you wish to remotely debug.
  4. Ensure that the remote debugging profile is selected.
  5. Set the build output to the network share on the remote debugging computer.
  6. Set the remote debugging host address and port.

这篇关于的Visual Studio 2013的远程调试,自动部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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