Visual Studio Web Setup Project - deploy outside o

2019-08-15 19:45发布

I am working with Visual Studio setup projects to install web application. I am looking for a way to change the default physical file installation path. The end result I would like is a Virtual Directory called "MySite" that points to a local path on the server like "C:\Apps\MySite"

Is there a built-in option to customize this?

3条回答
啃猪蹄的小仙女
2楼-- · 2019-08-15 20:20

You have to do it with a custom action, unfortunately it's not supported as a simple setting in the setup project (as others have mentioned).

Here is an example implementation using custom action:

Allow user to set physical directory path during Web Project deployment (a bit old but can still be useful)

查看更多
我想做一个坏孩纸
3楼-- · 2019-08-15 20:29

edit the project file. search for keyword 'virtual' and change the value for virtual directory.

查看更多
Anthone
4楼-- · 2019-08-15 20:31

No, it will install at the physical file installation path of the Web Site where it is installed plus the name of the virtual directory.

查看更多
登录 后发表回答