SlowCheetah TransformAllFiles msbuild target

By eidias on (tags: xml transformations, categories: infrastructure)

I’ve posted about SlowCheetah some time ago, but there’s one thing I forgot to mention.

If you’re getting an build error that says “Target TransformAllFiles does not exist” then (assuming that you already have slow cheetah installed) in the project, right click on an xml file and select “Add Transform”.

This will add additional files (if you don’t need them, just delete them) to the project, but more importantly, it will reference the additional targets used in the build process. The actual xml inserted in the project file looks like this:

   1: <PropertyGroup>
   2:   <SlowCheetahTargets Condition=" '$(SlowCheetahTargets)'=='' ">$(LOCALAPPDATA)\Microsoft\MSBuild\SlowCheetah\v1\SlowCheetah.Transforms.targets</SlowCheetahTargets>
   3: </PropertyGroup>
   4: ...
   5: <Import Project="$(SlowCheetahTargets)" Condition="Exists('$(SlowCheetahTargets)')" />

You can of course adjust some stuff here. For example, we’re storing the add-in in a custom location, so the path needs to be changed but as long as you keep it in the same spot on the build server and the developer machines, then everything works fine.