使用批处理文件或VBScript在远程计算机中发布.csproj的代码 [英] Code for publishing a .csproj in remote machine using batch file or VBScript

查看:108
本文介绍了使用批处理文件或VBScript在远程计算机中发布.csproj的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是部署世界的新手,任何人都可以提供使用批处理文件或VBScript在远程计算机中发布.csproj的代码.

谢谢,
Kiran

Hi,

I am new to the deployment world can any one please provide the code for publishing a .csproj in remote machine using batch file or VBScript.

Thanks,
Kiran

推荐答案

为什么不准备安装程序并使用它?此处: Miscrosoft支持:如何准备安装程序 [ MSDN:演练:发布网站 [ ^ ]
它明确指出:如果要将完成的网站部署到服务器,则可以使用Microsoft Visual Web Developer Web开发工具附带的发布网站"实用程序. 发布网站"实用程序会预编译网站中的页面和代码,并将编译器输出写入您指定的文件夹中.然后,您可以将输出复制到目标Web服务器并从那里运行应用程序.
编写脚本以将文件复制到服务器文件夹.
Why not prepare an installer and use it? Here: Miscrosoft Support: How to prepare installers[^],

Alternatively, For hosting a web application: MSDN: Walkthrough: Publishing a Web Site[^]
It clearly states: If you want to deploy a finished Web site to a server, you can use the Publish Web Site utility that is included with the Microsoft Visual Web Developer Web development tool. The Publish Web Site utility precompiles the pages and code that are in the Web site and writes the compiler output to a folder that you specify. You can then copy the output to the target Web server and run the application from there.
Write a script to copy the files to server folder.


这篇关于使用批处理文件或VBScript在远程计算机中发布.csproj的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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