Skip to content

Instantly share code, notes, and snippets.

@jacano
jacano / CS-merger.ps1
Created March 15, 2017 12:59 — forked from paveltimofeev/CS-merger.ps1
Merge *.cs files into the one file
param(
[Parameter(Mandatory=$true)]
$source,
[Parameter(Mandatory=$true)]
$output,
$header = "/// © Pavel Timofeev",
$excludes = @("AssemblyInfo.cs", "*.Designer.cs", "TemporaryGeneratedFile_*" ),
$copyAsIs = @(), # list of filemasks that should be copy as is without merge
$addFileNames = $false, # add names of src files
$leftComments = $false, # remove line commented with //