English 中文(简体)
为什么在使用释放和减让模式时,VS 2010项目汇编生成了纸浆文档?
原标题:Why does a VS 2010 project compilation, generates pdb files, when building in Release and Debug mode?

我正在以释放方式建设我的窗口服务c 2010年VS项目。 我第一次感到惊讶的是,它甚至在释放时也制造了 p。 我在附上了拆卸过程之后,无法装上 de的标志。

我的问题是,如果我们以欺骗和释放方式篡改档案,那么为什么需要两种汇编方式。

最佳回答

My question is that if we have pdb files in both debug and release mode then why there is need for two compilation mode

脱胎和释放之间的区别是other。 如果你进入建筑产业,进入“先进”阶段,就会产生不同层次的欺骗信息,即完全的、只有PDB的和无。

In addition, there are different levels of compile-time optimization, and the presence of different preprocessor symbols (e.g. so that each Debug.Assert will be present or absent).

当然,你也可以拥有自己的建筑组合品种,有各种选择。

问题回答

有许多原因,为什么存在一种与建立非行档案无关的欺骗/释放模式。

VS以释放方式更快地执行了你汇编的方案。 此外,还有汇编者指令,如果你在解冻和释放模式中,可以改变方案的方式。 例如,您可使用汇编指令,使您的顶级代码<>try 、 副渔获物/代码>区块分离出来,以便你能够将一个排入特定代码的例外情况。

这只是几个例子。 简言之,除为你创建公发银行档案之外,欺骗模式的目的还很多。

你可以有两种以上的汇编方式。 通常,解冻和释放意味着你是否希望优化。 不管怎样,你仍然能够产生令人厌恶的信息,只有争取释放的亚洲开发银行才能获得很大的帮助。 在线功能,可排除变量等。

I recently did a winupdate(20120508) and Visual studio seemed to be really slow debugging afterwards with a 1 minute delay after compile-to-runDebug lag, then when the debug program exited, another 1 minute delay to get control again of visual studio. I did clean all, but no joy.

解决办法: 我人工删除了我的项目/解决办法和重新设计中的*.sdf和*.suo档案。 问题mag然消失。

不能肯定为什么,但有些事情是非同化、腐败或与更新不符的,需要人工冲走。





相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...