.NET Cheat Sheet

I cannot believe it’s taken me this long to start this page … anyhoo …

General Stuff

Clear all \bin \obj

Be careful were you run this, you could kill your OS install if you ran it somewhere like system32.

Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse }

Extract the contents of an *.msi file.

msiexec /a SSCERuntime-ENU-x64.msi

.NET 5 Stuff

dotnet help


Bitmap bitmap = (Bitmap)Image.FromFile(@"mypath.bmp");