Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我安装了最近发布的 Visual Studio 2017 RC 并发现,在旧的(VS2015)ASP.NET 项目中,Debug->Run(F5)不起作用: 但从项目的上下文菜单中,它按预期启动:
Debug->Run
如果我File->New->Project->ASP.NET Web Application那么一切都像往常一样工作。
File->New->Project->ASP.NET Web Application
关于导致这种行为的原因有什么想法吗?
编辑:尝试了 Visual Studio Community 2017 RC - 相同的行为。
Visual Studio 2017 RC 更新了我的 web 项目的 .csproj 文件:
<servers defaultServer="SelfHostServer"> <server name="SelfHostServer" exePath="" cmdArgs="" url="http://localhost:51775/" workingDir="" /> </servers>
我不知道为什么会这样,但删除它解决了我的问题。