F5没有为VS2015 ASP工作。NET项目在Visual Studio 2017 RC

时间:2021-08-07 03:34:01

I've installed recently announced Visual Studio 2017 RC and found out, that in old (VS2015) ASP.NET projects the Debug->Run (F5) isn't working: F5没有为VS2015 ASP工作。NET项目在Visual Studio 2017 RC But from project's contextual menu it is starting as expected: F5没有为VS2015 ASP工作。NET项目在Visual Studio 2017 RC

我最近安装了Visual Studio 2017 RC,并发现,在旧的(VS2015) ASP。NET项目的调试->运行(F5)不起作用:但是从项目的上下文菜单中,它正在按预期开始:

If I File->New->Project->ASP.NET Web Application then all is working as always.

如果我文件- >新建- >项目- > ASP。NET Web应用程序所有的工作都是一样的。

Any thoughts on what causing this behaviour?

对这种行为的原因有什么想法吗?

EDIT: Tried Visual Studio Community 2017 RC - the same behaviour.

编辑:尝试视觉工作室社区2017 RC -同样的行为。

1 个解决方案

#1


2  

Visual Studio 2017 RC has updated the .csproj file of my web project with this:

Visual Studio 2017 RC更新了我的web项目的.csproj文件:

<servers defaultServer="SelfHostServer">
    <server name="SelfHostServer" exePath="" cmdArgs="" url="http://localhost:51775/" workingDir="" />
</servers>

I don't know why this happened, but deleting that solved my problem.

我不知道为什么会发生这样的事,但是删除它解决了我的问题。

#1


2  

Visual Studio 2017 RC has updated the .csproj file of my web project with this:

Visual Studio 2017 RC更新了我的web项目的.csproj文件:

<servers defaultServer="SelfHostServer">
    <server name="SelfHostServer" exePath="" cmdArgs="" url="http://localhost:51775/" workingDir="" />
</servers>

I don't know why this happened, but deleting that solved my problem.

我不知道为什么会发生这样的事,但是删除它解决了我的问题。