Git Deployment of Build/Precompiled

Topics: Core, Installing Orchard
Nov 8, 2013 at 8:22 PM
Edited Nov 8, 2013 at 8:24 PM
I'm running a few instances of Orchard on AppHarbor, to do this I run msbuild -/t:precompiled form the command line. as described here

I create a git repository in the Build/Precompiled Folder,

.gitignore file
Then I push to AppHabour, This all works fine.

I do some more work on a custom module .... and then run msBuild /t:precompiled again to get my changes into the Precompiled folder. However the orchard project contains a Clean Method that removes all files from the Build folder, including my git repository...

I've change the code locally to
 <Target Name="Clean">

    <MSBuild Projects="$(SrcFolder)\Orchard.sln" Targets="Clean" />
    <RemoveDir Directories="$(ArtifactsFolder)" />
    <RemoveDir Directories="$(BuildFolder)\Compile" ContinueOnError="true"/>
    <RemoveDir Directories="$(BuildFolder)\Stage" ContinueOnError="true"/>
      <FilesToClean Include="$(BuildFolder)\Precompiled\*.*" 
                            $(BuildFolder)\Precompiled\robot.txt;" />
      <Directories Include="$(BuildFolder)\Precompiled\bin;

    <Delete Files="@(FilesToClean)" ContinueOnError="true"/>
    <RemoveDir Directories="@(Directories)" ContinueOnError="true"/>
Question is should I submit a pull request, or is there a better way to do this that doesn't involve changing any of the orchard source files ?