diff options
| author | mo k <mo@mokhan.ca> | 2012-03-27 11:22:49 -0700 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-03-27 11:22:49 -0700 |
| commit | 61f3c1499d123f0380bff3b5adaf85d0d54d0e23 (patch) | |
| tree | 51dc33fbfda36436d32869a030010c28a8c26576 | |
| parent | 259551422613efb020822133e49af93348c312dd (diff) | |
start xbuild conversion.
| -rwxr-xr-x | Gemfile (renamed from gemfile) | 0 | ||||
| -rwxr-xr-x | rakefile | 6 | ||||
| -rwxr-xr-x | src/domain/domain.csproj | 7 | ||||
| -rwxr-xr-x | src/test/CalculatorSpecs.cs | 4 | ||||
| -rw-r--r-- | src/test/WellSpecs.cs | 16 | ||||
| -rwxr-xr-x | src/test/test.csproj | 9 | ||||
| -rw-r--r-- | targets | 18 |
7 files changed, 52 insertions, 8 deletions
@@ -7,6 +7,12 @@ msbuild :build do |msb| 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'
diff --git a/src/domain/domain.csproj b/src/domain/domain.csproj index 9630b8f..9bf097d 100755 --- a/src/domain/domain.csproj +++ b/src/domain/domain.csproj @@ -34,8 +34,8 @@ <Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data.DataSetExtensions" Condition=" '$(OS)' == 'Windows_NT' " />
+ <Reference Include="Microsoft.CSharp" Condition=" '$(OS)' == 'Windows_NT' " />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
@@ -43,7 +43,8 @@ <Compile Include="Greeting.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition=" '$(OS)' == 'Windows_NT' " />
+ <Import Project="/usr/lib/mono/4.0/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">
diff --git a/src/test/CalculatorSpecs.cs b/src/test/CalculatorSpecs.cs index 4b674da..5b47159 100755 --- a/src/test/CalculatorSpecs.cs +++ b/src/test/CalculatorSpecs.cs @@ -1,6 +1,6 @@ -
-using domain
+namespace test
{
+ using domain;
public class CalculatorSpecs
{
diff --git a/src/test/WellSpecs.cs b/src/test/WellSpecs.cs new file mode 100644 index 0000000..3845c1c --- /dev/null +++ b/src/test/WellSpecs.cs @@ -0,0 +1,16 @@ +namespace test +{ + using Machine.Specifications; + using domain; + + public class WellSpecs + { + Establish context = ()=> + { + sut = new Well(); + }; + + static readonly Well sut; + } + public class Well{} +} diff --git a/src/test/test.csproj b/src/test/test.csproj index a550454..faba072 100755 --- a/src/test/test.csproj +++ b/src/test/test.csproj @@ -37,14 +37,16 @@ <Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data.DataSetExtensions" Condition=" '$(OS)' == 'Windows_NT' " />
+ <Reference Include="Microsoft.CSharp" Condition=" '$(OS)' == 'Windows_NT' " />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="GreetingSpecs.cs" />
+ <Compile Include="CalculatorSpecs.cs" />
+ <Compile Include="WellSpecs.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
@@ -55,7 +57,8 @@ <Name>domain</Name>
</ProjectReference>
</ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition=" '$(OS)' == 'Windows_NT' " />
+ <Import Project="/usr/lib/mono/4.0/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">
@@ -0,0 +1,18 @@ +./lib/monodevelop/AddIns/MonoDevelop.Autotools/make-dist.targets +./lib/monodevelop/AddIns/MonoDevelop.Autotools/templates/make-dist.targets +./lib/mono/2.0/Microsoft.Common.targets +./lib/mono/2.0/Microsoft.CSharp.targets +./lib/mono/2.0/Microsoft.VisualBasic.targets +./lib/mono/3.5/Microsoft.Common.targets +./lib/mono/3.5/Microsoft.CSharp.targets +./lib/mono/3.5/Microsoft.VisualBasic.targets +./lib/mono/xbuild/Microsoft/VisualStudio/v9.0/WebApplications/Microsoft.WebApplication.targets +./lib/mono/xbuild/Microsoft/Silverlight/v2.0/Microsoft.Silverlight.CSharp.targets +./lib/mono/xbuild/Microsoft/Silverlight/v2.0/Microsoft.Silverlight.Common.targets +./lib/mono/xbuild/Microsoft/Silverlight/v2.0/Microsoft.Silverlight.VisualBasic.targets +./lib/mono/xbuild/Microsoft/Silverlight/v3.0/Microsoft.Silverlight.CSharp.targets +./lib/mono/xbuild/Microsoft/Silverlight/v3.0/Microsoft.Silverlight.Common.targets +./lib/mono/xbuild/Microsoft/Silverlight/v3.0/Microsoft.Silverlight.VisualBasic.targets +./lib/mono/4.0/Microsoft.Common.targets +./lib/mono/4.0/Microsoft.CSharp.targets +./lib/mono/4.0/Microsoft.VisualBasic.targets |
