Skip to content

Commit c5b269f

Browse files
committed
Fixing up things I broke on Windows.
1 parent 7ca55b2 commit c5b269f

File tree

8 files changed

+18
-5
lines changed

8 files changed

+18
-5
lines changed

src/Projac.Recipes/EventStoreIntegration/Usage.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if NET46 || NET462
2+
using System;
23
using System.Configuration;
34
using System.Data;
45
using System.Linq;
@@ -200,3 +201,4 @@ [Name] NVARCHAR(MAX) NOT NULL,
200201
}
201202
}
202203
}
204+
#endif

src/Projac.Recipes/Projac.Recipes.csproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<AssemblyName>Projac.Recipes</AssemblyName>
55
<AssemblyTitle>Projac.Recipes</AssemblyTitle>
66
<TargetFrameworks Condition="'$(OS)' == 'Unix'">netcoreapp2.0</TargetFrameworks>
7-
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">net46</TargetFrameworks>
7+
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">net452;net46;net462</TargetFrameworks>
88
<PlatformTarget>AnyCPU</PlatformTarget>
99
<RootNamespace>Projac.Recipes</RootNamespace>
1010
<DebugSymbols>true</DebugSymbols>
@@ -41,7 +41,7 @@
4141
<ProjectReference Include="..\Projac.SqlClient\Projac.SqlClient.csproj" />
4242
<ProjectReference Include="..\Projac.SQLite\Projac.SQLite.csproj" />
4343
</ItemGroup>
44-
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' Or '$(TargetFramework)' == 'net46' ">
44+
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' Or '$(TargetFramework)' == 'net46' Or '$(TargetFramework)' == 'net462' ">
4545
<Reference Include="System" />
4646
<Reference Include="System.Core" />
4747
<Reference Include="System.Configuration" />
@@ -55,14 +55,18 @@
5555
<ItemGroup>
5656
<PackageReference Include="CompareNETObjects" Version="3.09.0.0" />
5757
<PackageReference Include="ElasticSearch.Net" Version="5.5.0" />
58-
<PackageReference Include="EventStore.Client.Embedded" Version="4.0.3" />
5958
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
6059
<PackageReference Include="RavenDB.Embedded" Version="3.5.4" />
61-
<PackageReference Include="SqlStreamStore" Version="1.1.1" />
6260
<PackageReference Include="StackExchange.Redis" Version="1.2.6" />
6361
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.105.2" />
6462
<PackageReference Include="WindowsAzure.Storage" Version="8.5.0" />
6563
</ItemGroup>
64+
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
65+
<PackageReference Include="SqlStreamStore" Version="1.1.1" />
66+
</ItemGroup>
67+
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' Or '$(TargetFramework)' == 'net462' ">
68+
<PackageReference Include="EventStore.Client.Embedded" Version="4.0.3" />
69+
</ItemGroup>
6670
<ItemGroup>
6771
<PackageReference Include="NUnit" Version="3.9.0" />
6872
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />

src/Projac.Recipes/SqlStreamStoreIntegration/Usage.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if NET462
12
using System;
23
using System.Configuration;
34
using System.Data;
@@ -174,3 +175,4 @@ [Name] NVARCHAR(MAX) NOT NULL,
174175
}
175176
}
176177
}
178+
#endif

src/Projac.SQLite.Tests/SQLiteParameterValueStub.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Data.Common;
33
using System.Data.SQLite;
4+
using Projac.Sql;
45

56
namespace Projac.SQLite.Tests
67
{

src/Projac.SQLite.Tests/SQLiteSyntaxTestCases.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Data;
33
using System.Data.Common;
44
using NUnit.Framework;
5+
using Projac.Sql;
56
using Projac.SQLite;
67

78
namespace Projac.SQLite.Tests

src/Projac.SQLite.Tests/SQLiteSyntaxTests.Compose.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Data;
44
using System.Data.Common;
55
using NUnit.Framework;
6+
using Projac.Sql;
67

78
namespace Projac.SQLite.Tests
89
{

src/Projac.SQLite.Tests/SQLiteSyntaxTests.NonQueryStatement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Generic;
22
using System.Linq;
33
using NUnit.Framework;
4+
using Projac.Sql;
45

56
namespace Projac.SQLite.Tests
67
{

src/Projac.SQLite.Tests/SQLiteSyntaxTests.QueryStatement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Generic;
22
using System.Linq;
33
using NUnit.Framework;
4+
using Projac.Sql;
45

56
namespace Projac.SQLite.Tests
67
{

0 commit comments

Comments
 (0)