Commits

Michael Garnett committed 44c5701

Added separate targets for each Mono.Cecil.*.dll needed in the Lib.
Removed condition on marker file build.tmp.

Comments (0)

Files changed (1)

build/IntelliFactory.FSharp.targets

     <LibDir>$(MSBuildThisFileDirectory)\..\Lib</LibDir>
     <LibUrl>http://bitbucket.org/IntelliFactory/websharper/downloads</LibUrl>
   </PropertyGroup>
-  <Target Name="DownloadDependencies" Condition="!Exists('$(LibDir)\build.tmp')">
+  <Target Name="CreateLibDir" Condition="!Exists('$(LibDir)')">
     <MakeDir Directories="$(LibDir)" />
-    <Touch AlwaysCreate="true" Files="$(LibDir)\build.tmp" />
+  </Target>
+  <Target Name="DownloadMonoCecil" Condition="!Exists('$(LibDir)\Mono.Cecil.dll')">
     <MSBuild.ExtensionPack.Web.WebClient
-	TaskAction="DownloadFile"
-	Url="$(LibUrl)/Mono.Cecil.dll"
-	FileName="$(LibDir)\Mono.Cecil.dll" />
+	  TaskAction="DownloadFile"
+	  Url="$(LibUrl)/Mono.Cecil.dll"
+	  FileName="$(LibDir)\Mono.Cecil.dll" />
+  </Target>
+  <Target Name="DownloadMonoCecilPdb" Condition="!Exists('$(LibDir)\Mono.Cecil.Pdb.dll')">
     <MSBuild.ExtensionPack.Web.WebClient
-	TaskAction="DownloadFile"
-	Url="$(LibUrl)/Mono.Cecil.Pdb.dll"
-	FileName="$(LibDir)\Mono.Cecil.Pdb.dll" />
+	  TaskAction="DownloadFile"
+	  Url="$(LibUrl)/Mono.Cecil.Pdb.dll"
+	  FileName="$(LibDir)\Mono.Cecil.Pdb.dll" />
+  </Target>
+  <Target Name="DownloadMonoCecilMdb" Condition="!Exists('$(LibDir)\Mono.Cecil.Mdb.dll')">
     <MSBuild.ExtensionPack.Web.WebClient
-	TaskAction="DownloadFile"
-	Url="$(LibUrl)/Mono.Cecil.Mdb.dll"
-	FileName="$(LibDir)\Mono.Cecil.Mdb.dll" />
+	  TaskAction="DownloadFile"
+	  Url="$(LibUrl)/Mono.Cecil.Mdb.dll"
+	  FileName="$(LibDir)\Mono.Cecil.Mdb.dll" />
   </Target>
+  <Target Name="DownloadDependencies" DependsOnTargets="CreateLibDir;DownloadMonoCecil;DownloadMonoCecilPdb;DownloadMonoCecilMdb"  />
 </Project>