How do you disable DebuggerNonUserCodeAttribute from being placed on code generated by the dataset designer?

I would like to go through the dataset constructor code in an ASP.NET project, how can I make sure that this: [Global :: System.Diagnostics.DebuggerNonUserCodeAttribute ()] is not included in the code that it generates?

+3
source share
2 answers

You cannot prevent this. However, you can enable property transitions, methods marked with this attribute by disabling Just My Code.

→ node. , " ". , .

+10

DataSet, .Designer.cs DebuggerNonUserCodeAttribute. , , , , - sed Windows..

:

C:\PathToSed\sed.exe -i "s/.*DebuggerNonUserCodeAttribute.*//g" $(ProjectDir)MyDataSet.Designer.cs
0

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


All Articles