开发者

Generate PDB files when compilation debug="false" for ASP.NET files?

I want to set compilation debug="false" to get release mode dll's compiled on the fly from aspx files.

However, I still want line n开发者_运维技巧umbers and such on errors as you find when you compile a DLL project with pdbonly set.

If you're looking to do that, you can find a great answer on this question: Display lines number in Stack Trace for .NET assembly in Release mode

Any ideas?


Probably you can do that on web.config, on the compilers

I have place here the Trace command, you can set any compiler options

<system.codedom>
 <compilers>
 <compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/define:TRACE" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
 <providerOption name="CompilerVersion" value="v3.5"/>
 <providerOption name="WarnAsError" value="false"/>
</compiler>
<Compilers>

Compiler options that you can use http://msdn.microsoft.com/en-us/library/6ds95cz0(VS.71).aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜