Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSC : warning SA1516: Elements should be separated by blank line -> Not showing the file

Tags:

c#

.net

When it occurs in top-level programs, SA1516 does not emit the corresponding file:

enter image description here

Which file is called CSC? I want to solve this SA1516 warning by adding a blank line where it is necessary. In other compilation warnings and errors, I just need to click on the error and it guides me and opens the corresponding file and line. This behavior does not happen in this case.

like image 370
Hugo Mata Avatar asked Feb 02 '26 00:02

Hugo Mata


1 Answers

Solved by adding blank lines between different statements in Program.cs. See the following example:

Example

PS: based on Filip Kuthan answer.

like image 130
Hugo Mata Avatar answered Feb 04 '26 13:02

Hugo Mata



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!