简体   繁体   English

从Linux主机触发Visual Studio构建

[英]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.

相关问题 适用于Linux的带有Boost的Visual Studio 2017远程生成 - Visual Studio 2017 Remote Build for Linux with Boost 如何在Linux下构建Visual Studio解决方案? - How to build Visual Studio Solution under Linux? 为 Linux 系统构建 Visual Studio 项目 - Build Visual Studio Project for Linux Systems 从jenkins在Visual Studio for Linux项目上运行devenv时,未定义的远程主机 - Undefined remote host when running devenv on Visual Studio for Linux project from jenkins 在Linux中从CLI运行Visual Studio代码 - Running Visual Studio Code from the CLI in Linux 在Visual Studio中使用C ++构建Linux .so库有什么必要 - What is necessary to build a Linux .so library with C++ in Visual Studio 是否可以为Mac和Linux构建Visual Studio应用程序? 任何可用的“扩展名” - Is it possible to build a Visual Studio application for Mac and Linux? Any “extensions” available Visual Studio for Linux Manjaro - Visual Studio for Linux Manjaro linux 上的视觉工作室? - Visual studio on linux? 如何设置远程Linux主机上的环境变量在Visual Studio的跨平台cmake的项目 - How to set environment variables on remote linux host in a visual studio crossplatform cmake project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM