向 iis Express 提供带有空格的路径失败
当我从命令行运行 IISExpress 时,像 c:\site
这样的路径工作正常。
但如果我将其更改为:
H:\Users\Username\Document\Visual Studio 2010\Projects\TestIISExpress\TestIISExpress\bin\Debug\site
它会失败,即它会给出一般错误,表示命令行参数切换需要 - ,/ 等。
有人遇到同样的问题吗?它对你有效吗?
When I run IISExpress from command line, a path like c:\site
works fine.
But if I change it to:
H:\Users\Username\Document\Visual Studio 2010\Projects\TestIISExpress\TestIISExpress\bin\Debug\site
it fails i.e. it gives general error saying command line parameters switch needs - ,/ etc etc.
Anybody faced same issue? Does it works on yours?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信如果你的路径中有空格,你必须将其放入双引号中:
这有帮助吗?
I would believe if you have a path with spaces in it, you'd have to put it into double quotes:
Does that help?
我发现,使用 IIS Express 8.0,为了提供包含空格的
path
开关,路径前面必须有双引号,但不应有终止双引号,例如:I没有对此行为的解释,我没有找到有关此问题的文档,并且我不知道这适用于哪些程序版本。
I have found, using IIS Express 8.0, that in order to provide a
path
switch that includes spaces the path must be preceded by a double quote, but there should be no terminating double quote, for instance:I have no explanation for this behaviour, I have found no documentation concerning this issue, and I do not know what program versions this applies to.