Visual Web Developer (Express):为开发环境设置文档根目录
我正在 Visual Web Dev Express 中开发一个网站,当我运行/调试时,我希望能够设置应用程序的文档根目录,以便我可以使用更安全的路径,例如“/css/style.css” “css/style.css”的内容。
I'm developing a site in Visual Web Dev Express, and when I run/debug, I'd like to be able to set my application's document root so that I can use safer paths, like "/css/style.css' instead of "css/style.css". How would I accomplish this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
选择“Web”选项卡,它位于“服务器”部分
Select the "Web" tab and it's in the Servers section
请记住,这会影响您期望应用程序/网站的部署方式。 如果在 Web 服务器根目录之外使用它,则 URL 路径将不正确。
Bear in mind that this has an impact on how you expect the application/web site to be deployed. If it is ever used outside the root of a web server, the URL paths will be incorrect.
我一直在属性窗口中寻找虚拟路径字段,但一直找不到它...它只向我显示以下选项
你知道某个地方吗我还能在哪里找到虚拟路径字段?
I have been looking for the virtual path field in the properties window but haven't been able to find it... it only shows me the following options
Do you know of some place else where I could find the Virtual Path field?