[英]Visual Studio 2013 remote debugging, auto deploy?
When I tried remote debugging with Windows Store applications (Metro applications), it was very easy. 当我尝试使用Windows应用商店应用程序(Metro应用程序)进行远程调试时,它非常简单。 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.
然后VS构建了项目并自动将可执行文件部署到远程计算机并运行它。 It felt as if it were local debugging.
感觉好像是本地调试。
Now that I want to try remote debugging with an Windows application (simple C# Windows Forms), it was not that easy. 既然我想尝试使用Windows应用程序(简单的C#Windows Forms)进行远程调试,那就不那么容易了。 I read the following page: http://msdn.microsoft.com/en-us/library/vstudio/8x6by8d2(v=vs.110).aspx
我阅读了以下页面: http : //msdn.microsoft.com/en-us/library/vstudio/8x6by8d2(v=vs.110).aspx
Does this mean I have to copy the built exe to the remote computer manually every single time when I build the project? 这是否意味着我必须在构建项目时每次手动将构建的exe复制到远程计算机? Is there any way to make it work easily just like the Windows Store apps?
有没有办法让它像Windows应用商店应用程序一样轻松工作? 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.
我在我的博客上详述了我的解决方案
Remote Debugging with VS2015 使用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.
我只需按下工具栏上的播放(调试)按钮,选择“远程调试”配置文件。
Does this mean I have to copy the built exe to the remote computer manually every single time when I build the project?
这是否意味着我必须在构建项目时每次手动将构建的exe复制到远程计算机?
Yes. 是。
Is there any way to make it work easily just like the Windows Store apps?
有没有办法让它像Windows应用商店应用程序一样轻松工作?
You can create a post-build event in which you can do practically everything. 您可以创建一个后期构建事件 ,您可以在其中执行几乎所有操作。 In this case you can set up a xcopy/robocopy command which would copy the stuff to a network location.
在这种情况下,您可以设置xcopy / robocopy命令,将命令复制到网络位置。
Possibly a third-party extension or something?
可能是第三方扩展还是什么?
Don't think so. 不要这么认为。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.