[英]Triggering a Visual Studio build from a Linux Host
I am starting work on a very Windows-specific project, but I am much more familiar with a Linux development environment (ie, emacs and zsh). 我正在开始一个非常特定于Windows的项目,但是我对Linux开发环境(例如emacs和zsh)更加熟悉。
All I need to do with my Windows code is compile it - I have a network share on which I can edit the code, and I can deal with viewing the logs remotely with tail. 我需要对Windows代码进行的所有工作就是对其进行编译-我拥有一个网络共享,可以在其中编辑代码,并且可以通过拖尾远程查看日志。
Is there any way I can trigger a build on a Windows server remotely? 有什么方法可以远程触发Windows服务器上的构建?
On Linux this is trivial - simply remotely execute your build script via SSH, or use Jenkins or some other CI to trigger the build through a web interface. 在Linux上这很简单-只需通过SSH远程执行您的构建脚本,或使用Jenkins或其他CI即可通过Web界面触发构建。
I'm really wondering whether there is some sort of functionality I am missing with Windows that would allow me to run "MsBuild.exe" or "cl.exe" from a separate Linux host. 我真的很想知道Windows是否缺少某些功能,这些功能可以让我从单独的Linux主机运行“ MsBuild.exe”或“ cl.exe”。
I'd say you probably want to run a SSH server on windows. 我想您可能想在Windows上运行SSH服务器。 This question has a few options, you should then be able to invoke msbuild from the command line.
这个问题有几个选择,然后您应该可以从命令行调用msbuild。
You can build most any project via command line. 您可以通过命令行构建大多数项目。
I've included a link to one resource I found. 我提供了指向我找到的一种资源的链接。 There are many.
有许多。 Just search "compile [your project type] command line"
只需搜索“编译[您的项目类型]命令行”
http://social.msdn.microsoft.com/Forums/vstudio/en-US/0da142c9-9373-4459-aa41-9af597accfc5/compile-c-project-with-command-line- http://social.msdn.microsoft.com/Forums/vstudio/en-US/0da142c9-9373-4459-aa41-9af597accfc5/compile-c-project-with-command-line-
You can use the free version of DameWare NT Utilities to issue remote commands on the command-line to trigger the build. 您可以使用免费版本的DameWare NT Utilities在命令行上发出远程命令来触发构建。 They have a "Remote Command" feature which is very helpful.
它们具有“远程命令”功能,该功能非常有用。 Also, if you want to be more hard-core, you can set up a Team Foundation Server and trigger builds remotely using a build script, but that is a bit much more work and probably not worth it.
另外,如果您想成为更坚强的人,则可以设置一个Team Foundation Server并使用构建脚本远程触发构建,但这需要更多的工作并且可能不值得。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.