Last active
January 10, 2017 23:18
-
-
Save Jaykul/d76863f56447baa06899a87944b84374 to your computer and use it in GitHub Desktop.
Thinking about MSBuild for PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Target Name="CombineFiles"> | |
<CreateItem Include=".\**\*.ps1"> | |
<Output TaskParameter="Include" ItemName="ScriptsToCombine" /> | |
</CreateItem> | |
<ReadLinesFromFile File="%(ScriptsToCombine.FullPath)"> | |
<Output TaskParameter="Lines" ItemName="ScriptLines" /> | |
</ReadLinesFromFile> | |
<WriteLinesToFile File="output.psm1" Lines="@(ScriptLines)" Overwrite="true" /> | |
</Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment