如何修复此类错误 System.Diagnostics.DebuggerStepThrough()
How do I fix this type of error System.Diagnostics.DebuggerStepThrough()
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.cmd_View_Old_Notes = New System.Windows.Forms.Button
Me.cmd_Save_Note = New System.Windows.Forms.Button
Me.rpt_Viewer = New CrystalDecisions.Windows.Forms.CrystalReportViewer
Visual Studio2019IDE中的错误是
Severity Code Description Project File Line Suppression State
Error BC32035 Attribute specifier is not a complete statement. Use a line continuation to apply the attribute to the following statement. ProjectName PathToProject\frm_Main.vb 20 Active
我正在将旧项目从 Visual Studio 2005 更新到 VS2019。它使用 VB.Net
我无法在 DebuggerStepThrough()> 后添加 _,因为 VS2019 会自动将其删除
▶ 删除属性和应用此属性的方法之间的 space/line 提要。
来自文档:
Error BC32035 - Attribute specifier is not a complete statement
(...) An attribute block appears alone on a source-code line.
Attributes must be applied at the beginning of a declaration
statement, and they must be part of that statement. (...)
To correct this error
:
(...) If no declaration statement is associated with the attribute
block, either supply one or remove the attribute block. (...)
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.cmd_View_Old_Notes = New System.Windows.Forms.Button
Me.cmd_Save_Note = New System.Windows.Forms.Button
Me.rpt_Viewer = New CrystalDecisions.Windows.Forms.CrystalReportViewer
Visual Studio2019IDE中的错误是
Severity Code Description Project File Line Suppression State
Error BC32035 Attribute specifier is not a complete statement. Use a line continuation to apply the attribute to the following statement. ProjectName PathToProject\frm_Main.vb 20 Active
我正在将旧项目从 Visual Studio 2005 更新到 VS2019。它使用 VB.Net
我无法在 DebuggerStepThrough()> 后添加 _,因为 VS2019 会自动将其删除
▶ 删除属性和应用此属性的方法之间的 space/line 提要。
来自文档:
Error BC32035 - Attribute specifier is not a complete statement
(...) An attribute block appears alone on a source-code line. Attributes must be applied at the beginning of a declaration statement, and they must be part of that statement. (...)
To correct this error
:
(...) If no declaration statement is associated with the attribute block, either supply one or remove the attribute block. (...)