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

I want to set the debug = "false" compilation to get the dll version of the dll compiled on the fly from aspx files.

However, I still need line numbers, etc. for errors that you find when compiling a DLL project with the pdbonly set.

If you want to do this, you can find a great answer to this question: Display the number of lines in Stack Trace for building .NET in defrag mode

Any ideas?

+4
source share
1 answer

Perhaps you can do it on web.config, on compilers

I have a 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

+3
source

Source: https://habr.com/ru/post/1306925/


All Articles