Asp.net mvc 如何在visual studio中设置用于调试的web文件夹?
当我在visual studio中调试web项目时,网址是例如Asp.net mvc 如何在visual studio中设置用于调试的web文件夹?,asp.net-mvc,visual-studio,debugging,visual-studio-2012,web,Asp.net Mvc,Visual Studio,Debugging,Visual Studio 2012,Web,当我在visual studio中调试web项目时,网址是例如localhost:1234/index.html,但当我发布项目时,网址将类似*http://myserver.mydomain.com/myApplication/index.html 是否有一种方法可以在visual studio中设置以在localhost:1234/myApplication/index.html上调试它 我正在访问一些脚本、css和服务,如果它们在调试和发布期间处于同一级别,这将使我的生活更轻松。右键单击项
localhost:1234/index.html
,但当我发布项目时,网址将类似*http://myserver.mydomain.com/myApplication/index.html
是否有一种方法可以在visual studio中设置以在localhost:1234/myApplication/index.html
上调试它
我正在访问一些脚本、css和服务,如果它们在调试和发布期间处于同一级别,这将使我的生活更轻松。右键单击项目,单击属性窗口并添加
/myApplication
作为虚拟路径。也可以使用主菜单中的“查看->属性”窗口