web应用发布到相对文件系统路径 [英] WebApplication publish to relative filesystem path
问题描述
我设置了一个发布用于测试的相对路径本地(尤其是XML配置转换)。每个开发者都有自己的路径,签出的项目,我想建立一个发布是机器/环境无关。
I'm setting up a publish to a relative path for testing locally (especially xml config transformations). Each developer has their own path to the checked out project and I'd like to set up a publish that is machine/environment agnostic.
在发布对话框不会被允许在任何变量或通配符暗示,它不接受 OBJ \\发布
或文件://./obj/publish
The publish dialog doesn't hint at any variables or wildcards that are allowed in it and it doesn't accept obj\publish
or file://./obj/publish
有没有办法发布到一个相对的文件系统路径?
Is there a way to publish to a relative filesystem path?
推荐答案
对于Visual Studio 2012年,这一解决方案将无法工作。你应该仅这一项后看答案由michielvoo。
Edit
For Visual Studio 2012, this solution will not work. You should look at the answer by michielvoo just after this one.
努力,努力之后,我找到了解决办法:你可以通过设置
After trying and trying I found the solution: you can use a relative path by setting
file:///./obj/publish
在发布的WebApp
对话框,但你必须使用由您正在使用的用户已经存在的和可写的路径。这样,你可以发布在本地文件夹您的Web应用程序,或路径相关的文件夹中。
in the Publish WebApp
dialog, but you must use a path that is already existent and writable by the user you are using. This way you can publish your web app in a local folder, or a path related folder.
让我知道,如果这有助于。这为我做的。
Let me know if this helps. It did for me.
这篇关于web应用发布到相对文件系统路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!