简体   繁体   English

如何在Visual Studio 2010中创建Web Deploy 2.0项目?

[英]How to create Web Deploy 2.0 projects in Visual Studio 2010?

We are using Visual Studio 2010 to publish to IIS using Web Deploy. 我们正在使用Visual Studio 2010通过Web Deploy将其发布到IIS。 I have now upgraded to Web Deploy 2.0 on the client, and the server (by uninstalling the old version and installing the new version). 我现在已经在客户端和服务器上升级到Web Deploy 2.0(通过卸载旧版本并安装新版本)。

From Visual Studio, it still seams to be creating web deploy 1.0 packages. 从Visual Studio来看,它仍然可以创建Web部署1.0程序包。 This is where I am confused. 这就是我感到困惑的地方。 How does Visual Studio integrate with Web Deploy? Visual Studio如何与Web Deploy集成? How do I get Visual Studio to create Web Deploy 2.0 packages? 如何使Visual Studio创建Web Deploy 2.0程序包?

Thanks for your post. 感谢您的帖子。

I just found a doc might help, it illustrates the installation and enabling of web deploy: 我刚刚发现一个文档可能会有所帮助,它说明了Web部署的安装和启用:

http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx

Moreover, I think web deploy is more relevant to ASP.Net, and if you can post another thread at: 此外,我认为Web部署与ASP.Net更相关,如果可以在以下位置发布另一个线程:

http://forums.asp.net/26.aspx?Configuration+and+Deployment http://forums.asp.net/26.aspx?Configuration+and+Deployment

I believe you can get more useful information. 相信您可以获得更多有用的信息。

Hope this can help. 希望这会有所帮助。

I got it working. 我知道了 The batch file that was being generated by web deploy was checking for v1.1 in the registry. Web部署生成的批处理文件正在检查注册表中的v1.1。 Editing it to check for v2 works on a server that only has v2 installed. 编辑它以检查v2在仅安装了v2的服务器上工作。

After installing the Visual Studio service pack, I see now that the batch file is different, and no longer does a registry check so works with web deploy clients 1 and 2. 安装Visual Studio Service Pack后,我现在看到批处理文件有所不同,并且不再进行注册表检查,因此可以与Web部署客户端1和2一起使用。

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

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