Skip to content

Instantly share code, notes, and snippets.

@saggie
Created January 1, 2017 05:22
Show Gist options
  • Save saggie/516e98093caa7c04e95d664d914da477 to your computer and use it in GitHub Desktop.
Save saggie/516e98093caa7c04e95d664d914da477 to your computer and use it in GitHub Desktop.
How to compile C# files by PowerShell

Use Add-Type command:

PS C:\> Add-Type -Path .\File1.cs, .\File2.cs -ReferencedAssemblies System.Core, System.Drawing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment