简体   繁体   English

通过控制台应用程序使用Microsoft Web Deploy

[英]Using Microsoft Web Deploy through Console Application

I have a asp.net MVC project which I currently deploy through Visual Studio (Build->Publish). 我有一个asp.net MVC项目,目前正在通过Visual Studio进行部署(“构建”->“发布”)。 I'm aware that I can access this deployment process through command line, but is there any way I can do it through a C# console application? 我知道我可以通过命令行访问此部署过程,但是有什么方法可以通过C#控制台应用程序来完成呢?

Thank you in advance. 先感谢您。

If you have a reason to use a C# application, I would write a batch file that does the work and invoke it with the C# application. 如果您有理由使用C#应用程序,我将编写一个完成该工作的批处理文件,然后使用C#应用程序调用它。

See this post: How To: Execute command line in C#, get STD OUT results 看到这篇文章: 如何:在C#中执行命令行,获取STD OUT结果

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM