Skip to content

Commit f57b702

Browse files
author
Jake Ginnivan
committed
Fixing up build
1 parent e086185 commit f57b702

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

Samples/TestStack.BDDfy.Samples/AsyncExample.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if !NET35
2+
using System;
23
using System.Threading.Tasks;
34
using NUnit.Framework;
45

@@ -42,4 +43,5 @@ internal class Sut
4243
{
4344
}
4445
}
45-
}
46+
}
47+
#endif

Samples/TestStack.BDDfy.Samples/TestStack.BDDfy.Samples.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<DebugType>full</DebugType>
2222
<Optimize>false</Optimize>
2323
<OutputPath>bin\Debug\</OutputPath>
24-
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<DefineConstants>DEBUG;TRACE;$(DefineConstants)</DefineConstants>
2525
<ErrorReport>prompt</ErrorReport>
2626
<WarningLevel>4</WarningLevel>
2727
<Prefer32Bit>false</Prefer32Bit>
@@ -30,7 +30,7 @@
3030
<DebugType>pdbonly</DebugType>
3131
<Optimize>true</Optimize>
3232
<OutputPath>bin\Release\</OutputPath>
33-
<DefineConstants>TRACE</DefineConstants>
33+
<DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>
3636
<Prefer32Bit>false</Prefer32Bit>
@@ -39,7 +39,7 @@
3939
<DebugType>pdbonly</DebugType>
4040
<Optimize>true</Optimize>
4141
<OutputPath>bin\Release\</OutputPath>
42-
<DefineConstants>TRACE</DefineConstants>
42+
<DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
4343
<ErrorReport>prompt</ErrorReport>
4444
<WarningLevel>4</WarningLevel>
4545
<Prefer32Bit>false</Prefer32Bit>

TestStack.BDDfy.Tests/Scanner/WhenStepScannerFactoryAsyncMethods.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if !NET35
2+
using System;
23
using System.Reflection;
34
using System.Threading.Tasks;
45
using NUnit.Framework;
@@ -59,4 +60,5 @@ private class SomeScenario
5960
{
6061
}
6162
}
62-
}
63+
}
64+
#endif

TestStack.BDDfy.Tests/TestStack.BDDfy.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<DebugType>full</DebugType>
2222
<Optimize>false</Optimize>
2323
<OutputPath>bin\Debug\</OutputPath>
24-
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<DefineConstants>DEBUG;TRACE;$(DefineConstants)</DefineConstants>
2525
<ErrorReport>prompt</ErrorReport>
2626
<WarningLevel>4</WarningLevel>
2727
<Prefer32Bit>false</Prefer32Bit>
@@ -30,7 +30,7 @@
3030
<DebugType>pdbonly</DebugType>
3131
<Optimize>true</Optimize>
3232
<OutputPath>bin\Release\</OutputPath>
33-
<DefineConstants>TRACE</DefineConstants>
33+
<DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>
3636
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

TestStack.BDDfy.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
Solution redirects. Every VS project normally knows how to support these targets
4444
-->
4545
<Target Name="Build">
46-
<MSBuild Projects="$(ProjectName).sln" Targets="Build" Properties="Configuration=$(Configuration)$(BuildFramework);DefineConstants=$(BuildConstants);MSBuildTargets=$(BuildTargets);TargetFrameworkVersion=$(TargetFrameworkVersion);TargetFrameworkProfile=$(TargetFrameworkProfile)"/>
46+
<MSBuild Projects="Samples\TestStack.BDDfy.Samples\TestStack.BDDfy.Samples.csproj" Targets="Build" Properties="Configuration=$(Configuration)$(BuildFramework);DefineConstants=$(BuildConstants);MSBuildTargets=$(BuildTargets);nowarn=1685"/>
47+
<MSBuild Projects="TestStack.BDDfy.Tests\TestStack.BDDfy.Tests.csproj" Targets="Build" Properties="Configuration=$(Configuration)$(BuildFramework);DefineConstants=$(BuildConstants);MSBuildTargets=$(BuildTargets);nowarn=1685"/>
48+
<MSBuild Projects="TestStack.BDDfy\TestStack.BDDfy.csproj" Targets="Build" Properties="Configuration=$(Configuration)$(BuildFramework);DefineConstants=$(BuildConstants);MSBuildTargets=$(BuildTargets);TargetFrameworkVersion=$(TargetFrameworkVersion);TargetFrameworkProfile=$(TargetFrameworkProfile)"/>
4749
</Target>
4850

4951
<Target Name="Clean">

0 commit comments

Comments
 (0)