Skip to content
This repository
Browse code

added custom proj file and update build runner

  • Loading branch information...
commit 192cd271a72f21a5abef87a0206ae6883ece9f92 1 parent 84f7181
Brendan Forster authored January 28, 2012

Showing 2 changed files with 19 additions and 13 deletions. Show diff stats Hide diff stats

  1. 15  build.cmd
  2. 17  build.proj
15  build.cmd
... ...
@@ -1,18 +1,7 @@
1 1
 @echo Off
2 2
 set config=%1
3 3
 if "%config%" == "" (
4  
-   set config=debug
  4
+   set config=Debug
5 5
 )
6 6
 
7  
-:: compile the code
8  
-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src/Ideastrike.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
9  
-
10  
-:: remove all obj folder contents
11  
-for /D %%f in (".\tests\*") do @(
12  
-del /S /Q "%%f\obj\*"
13  
-)
14  
-
15  
-:: find all test files and run them
16  
-for /R %%F in (*Tests.dll) do (
17  
-.\tools\xunit\xunit.console.clr4.exe %%F
18  
-)
  7
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.proj /p:Configuration="%config%" /t:AppHarbor /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
17  build.proj
... ...
@@ -0,0 +1,17 @@
  1
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  2
+  
  3
+  <UsingTask AssemblyFile=".\tools\xunit\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" />
  4
+
  5
+  <Target Name="Compile">
  6
+    <Message Text=" ===========Building Website===========" Importance="High" />
  7
+    <MSBuild Projects="./src/Ideastrike.sln" Properties="Configuration=$(Configuration)" />
  8
+  </Target>
  9
+
  10
+  
  11
+  <Target Name="AppHarbor" DependsOnTargets="Compile">
  12
+  	<Message Text="===========Testing AppHarbor Build===========" Importance="High" />
  13
+
  14
+    <MSBuild Projects="./src/AppHarbor.sln" Properties="Configuration=$(Configuration)" />
  15
+  </Target>
  16
+
  17
+</Project>

0 notes on commit 192cd27

Please sign in to comment.
Something went wrong with that request. Please try again.