首页 > c# > VS 2017,Getting You正在调试ASP.NET C#项目的发布版本

VS 2017,Getting You正在调试ASP.NET C#项目的发布版本 (VS 2017 , Getting You are debugging a release build for ASP.NET C# project)

问题

在VS 2017中,当我尝试进行构建时,我正在调试您正在调试ASP.NET C#项目的发布版本。

我的构建是Debug。

针对VS2015的类似报告问题的解决方案,这Enable Just My Code在这里不起作用。

=======

不,我测试了上面的解决方案,它没有解决VS2017中的问题!

解决方法

我在旧的.Net项目中遇到了“你正在调试版本DLL”的问题。在DLL的项目构建下的属性中,如果选中“优化代码”选项,则收到错误。取消选中此选项可以解决此问题:

Visual Studio中项目文件的属性

问题

In VS 2017 , When trying to do the build, I'm getting You are debugging a release build for ASP.NET C# project.

My build is Debug.

The solution for the similar reported issue for VS2015, which is to Enable Just My Code does not work here.

=======

No , I tested the solution above , it DOES NOT solve the problem in VS2017!

解决方法

I had the "You're debugging a release DLL" issue in an older .Net project. In the properties under the build for the project for the DLL I was getting the error for had the option "Optimize Code" checked. Unchecking this option solved this problem for me:

Properties of the project file in Visual Studio

相似信息