Commit a80e274

mo k <mo@mokhan.ca>
2012-03-27 18:44:55
just shell out to xbuild instead of using the albacore xbuild task.
1 parent 61f3c14
src/domain/domain.csproj
@@ -44,7 +44,7 @@
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition=" '$(OS)' == 'Windows_NT' " />
-  <Import Project="/usr/lib/mono/4.0/Microsoft.CSharp.targets"/>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"/>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">
src/test/test.csproj
@@ -45,8 +45,8 @@
   <ItemGroup>
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="GreetingSpecs.cs" />
-    <Compile Include="CalculatorSpecs.cs" />
-    <Compile Include="WellSpecs.cs" />
+    <!--<Compile Include="CalculatorSpecs.cs" />-->
+    <!--<Compile Include="WellSpecs.cs" />-->
   </ItemGroup>
   <ItemGroup>
     <None Include="packages.config" />
@@ -58,7 +58,7 @@
     </ProjectReference>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets"  Condition=" '$(OS)' == 'Windows_NT' " />
-  <Import Project="/usr/lib/mono/4.0/Microsoft.CSharp.targets"/>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"/>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">
.gitignore
@@ -1,3 +1,5 @@
 [Bb]in
 [Oo]bj
 *.suo
+*.pidb
+*.userprefs
rakefile
@@ -1,20 +1,23 @@
-require 'albacore'
-
-desc 'build'
-msbuild :build do |msb|
-  msb.properties :configuration => :Release
-  msb.targets :Clean, :Build
-  msb.solution = "studio.sln"
-end
-
-xbuild :xbuild do |xbuild|
-  xbuild.targets :Clean, :Build
-  #xbuild.targets "Release"
-  xbuild.solution = "studio.sln"
-end
-
-desc 'mspec test runner'
-mspec :spec => :build do |mspec|
-  mspec.command = 'packages/Machine.Specifications.0.5.3.0/tools/mspec-clr4.exe'
-  mspec.assemblies "src/test/bin/debug/test.dll"
-end
+require 'albacore'
+
+desc 'build'
+msbuild :build do |msb|
+  msb.properties :configuration => :Release
+  msb.targets :Clean, :Build
+  msb.solution = "studio.sln"
+end
+
+#xbuild :xbuild do |xbuild|
+  #xbuild.targets :Clean, :Build
+  ##xbuild.targets "Release"
+  #xbuild.solution = "studio.sln"
+#end
+task :xbuild do 
+  sh "xbuild src/test/test.csproj"
+end
+
+desc 'mspec test runner'
+mspec :spec => :build do |mspec|
+  mspec.command = 'packages/Machine.Specifications.0.5.3.0/tools/mspec-clr4.exe'
+  mspec.assemblies "src/test/bin/debug/test.dll"
+end
studio.sln
@@ -1,9 +1,9 @@
 
 Microsoft Visual Studio Solution File, Format Version 11.00
 # Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "domain", "src\domain\domain.csproj", "{4E400E9B-C985-49D3-BD7F-2C1D1022ECED}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "domain", "src/domain/domain.csproj", "{4E400E9B-C985-49D3-BD7F-2C1D1022ECED}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "src\test\test.csproj", "{243D66C3-5F67-4B54-86B5-B6B76009B7FF}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "src/test/test.csproj", "{243D66C3-5F67-4B54-86B5-B6B76009B7FF}"
 EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -15,10 +15,10 @@ Global
 		{4E400E9B-C985-49D3-BD7F-2C1D1022ECED}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{4E400E9B-C985-49D3-BD7F-2C1D1022ECED}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{4E400E9B-C985-49D3-BD7F-2C1D1022ECED}.Release|Any CPU.Build.0 = Release|Any CPU
-		{243D66C3-5F67-4B54-86B5-B6B76009B7FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{243D66C3-5F67-4B54-86B5-B6B76009B7FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{243D66C3-5F67-4B54-86B5-B6B76009B7FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{243D66C3-5F67-4B54-86B5-B6B76009B7FF}.Release|Any CPU.Build.0 = Release|Any CPU
+    {243D66C3-5F67-4B54-86B5-B6B76009B7FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+    {243D66C3-5F67-4B54-86B5-B6B76009B7FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+    {243D66C3-5F67-4B54-86B5-B6B76009B7FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+    {243D66C3-5F67-4B54-86B5-B6B76009B7FF}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE