.NET program, when there is exception throw out, the StackTrace will include absolute path where the program be build. e.g. build on my laptop, then it will show the absolute path on my laptop
how can that absolute be excluded in StackTrace?
.NET program, when there is exception throw out, the StackTrace will include absolute path where the program be build. e.g. build on my laptop, then it will show the absolute path on my laptop
how can that absolute be excluded in StackTrace?
The absolute path is coming from the symbol files *.pdb that are generated at build. you can disable the generation of these but you wont be able to debug
To disable for .Net 5: Project Properties -> Build -> General -> Debug Symbols -> "No symbols are emitted"
To disable for .Net 4.8: Project Properties -> Build -> Advanced... -> Debugging information -> None