在.NET调试的Visual Studio发行 [英] Debug Visual Studio Release in .NET

查看:191
本文介绍了在.NET调试的Visual Studio发行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的 previous问题继续,是否有一个COM prehensive什么文件列出了调试之间的所有可用的差异,并在C#应用程序发布模式,特别是在Web应用程序?

Continuing from my previous question, is there a comprehensive document what lists all available differences between debug and release modes in a C# application, and particularly in a web application?

有没有什么不同?

推荐答案

调试和释放只是名称由Visual Studio定义predefined项目配置。
要查看的差异,看看Build选项卡中的项目属性在Visual Studio。

"Debug" and "Release" are just names for predefined project configurations defined by Visual Studio.
To see the differences, look at the Build Tab in Project Properties in Visual Studio.

在VS2005的不同之处包括:

The differences in VS2005 include:

  • 在调试配置中定义DEBUG常数

  • DEBUG constant defined in Debug configuration

优化版本配置中启用了code

Optimize code enabled in Release configuration

以及其他方面的差异,你可以通过点击高级按钮看

as well as other differences you can see by clicking on the "Advanced" button

不过,您可以:

  • 更​​改调试构建设置和项目化子性质/编译发布配置

  • Change the build settings for Debug and Release configurations in Project Propeties / Build

在解决方案资源管理解决方案,创建自己的自定义配置通过右键单击并选择配置管理器

Create your own custom configurations by right-clicking on the solution in Solution Explorer and selecting Configuration Manager

我觉得DEBUG常数的行为是相当明确的(可以在#如果preprocessor指令或ConditionalAttribute引用)。但我不知道有任何COM prehensive文档上正是被启用的优化 - 事实上我怀疑微软会希望可以自由地提升其优化,恕不另行通知。

I think the behaviour of the DEBUG constant is fairly clear (can be referenced in the #if preprocessor directive or in the ConditionalAttribute). But I'm not aware of any comprehensive documentation on exactly what optimizations are enabled - in fact I suspect Microsoft would want to be free to enhance their optimizer without notice

这篇关于在.NET调试的Visual Studio发行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆