Useful MSBuild inline tasks
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.txt
README.md
common.targets
common.tasks

README.md

MSBuild-Tasks

Useful MSBuild inline tasks and targets. Import the common.tasks and/or common.targets to your project file and use.

Usage examples

Zip task:

  <Target Name="BeforeBuild">
    <ItemGroup>
      <FilesToZip Include="$(ProjectDir)\PayloadUnzipped\*.*" />
    </ItemGroup>
    <Zip 
      InputFileNames="@(FilesToZip)"
      OutputFileName="$(ProjectDir)$(TargetZipFile)"
      OverwriteExistingFile="true" />
  </Target>

SafeGitClean:

msbuild common.targets /p:BackupDir=C:\temp\backup /p:DeleteBackupDir=true

If BackupDir is not provided a directory in %TEMP% will be created The default value for DeleteBackupDir is 'false'