Ichinin :verified: :verified_paw: ✅🎯🙄<p>Hint to new <a href="https://infosec.exchange/tags/dotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dotNet</span></a> devs about global suppression of compile time warnings.</p><p>If you didn't know already you can supress warnings globally (well, at least in the specific class/module) in the IDE to make it spit out fewer warnings in the output window when you compile your code, like in the attached image. Explained:</p><p>1. First section shows compile warnings.</p><p>2. Second section shows suppression options (press ALT + Enter to show)</p><p>3. Third section shows Exclusion message. You can copy the *first* "<a href="https://infosec.exchange/tags/Disable" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Disable</span></a> Warning" line to the top of your project to disable warnings for your .cs or .vb files.</p><p>Probably works for .fs (F#/F sharp) as well, but i never use that language.</p><p>EDIT: In C# this is defined as</p><p><a href="https://infosec.exchange/tags/pragma" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pragma</span></a> warning disable <number></p><p>and not <a href="https://infosec.exchange/tags/Disable" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Disable</span></a> warning <number>.</p><p><a href="https://infosec.exchange/tags/MeBeingLazy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>MeBeingLazy</span></a>.</p>