Skip to content

Commit de1297b

Browse files
Get SqlClient and Design time project compiling
1 parent d164ae2 commit de1297b

File tree

8 files changed

+805
-23
lines changed

8 files changed

+805
-23
lines changed

paket.dependencies

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ group Build
1919

2020
nuget NuGet.CommandLine
2121

22+
group Library
23+
source https://www.nuget.org/api/v2/
24+
framework: >= netstandard20
25+
nuget FSharp.Core
26+
nuget Microsoft.Data.SqlClient
27+
2228
group DesignTime
2329
source https://www.nuget.org/api/v2/
2430
framework: >= netstandard20

paket.lock

Lines changed: 765 additions & 0 deletions
Large diffs are not rendered by default.

src/SqlClient.DesignTime/DesignTime.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ open System
44
open System.Reflection
55
open System.Data
66
open Microsoft.Data.SqlClient
7-
open Microsoft.SqlServer.Server
7+
open Microsoft.Data.SqlClient.Server
88
open System.Collections.Generic
99
open System.Diagnostics
1010
open Microsoft.FSharp.Quotations

src/SqlClient.DesignTime/SqlClient.DesignTime.fsproj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
<ItemGroup Condition="$(TargetFramework) == 'net461'">
3737
<Reference Include="System.Data" />
3838
</ItemGroup>
39+
3940
<ItemGroup>
4041
<None Include="paket.references" />
4142
<Compile Include="AssemblyInfo.fs" />
@@ -68,20 +69,14 @@
6869
<None Include="Scripts\ReverseLineOrderForNotex.fsx" />
6970
<None Include="Scripts\XE.fsx" />
7071
</ItemGroup>
72+
7173
<Target Name="CopyAssembliesToTPFolder" AfterTargets="Build">
7274
<ItemGroup>
7375
<DesignTimeAssemblies Include="$(OutputPath)\FSharp.Data.SqlClient.DesignTime.*" />
7476
<DesignTimeAssemblies Include="$(OutputPath)\Microsoft.SqlServer.*.dll" />
7577
</ItemGroup>
7678
<Copy SourceFiles="@(DesignTimeAssemblies)" DestinationFolder="..\..\bin\typeproviders\fsharp41\$(TargetFramework)" />
7779
</Target>
78-
<Target Name="CopyAssembliesToLegacyFolder" AfterTargets="Build" Condition="$(TargetFramework) == 'net40'">
79-
<ItemGroup>
80-
<DesignTimeAssemblies Include="$(OutputPath)\FSharp.Data.SqlClient.DesignTime.*" />
81-
<DesignTimeAssemblies Include="$(OutputPath)\Microsoft.SqlServer.*.dll" />
82-
</ItemGroup>
83-
<Copy SourceFiles="@(DesignTimeAssemblies)" DestinationFolder="..\..\bin\$(TargetFramework)" />
84-
</Target>
8580

8681
<Import Project="..\..\.paket\Paket.Restore.targets" />
8782
</Project>
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
3-
<Import Project="..\..\..\fsc.props" />
4-
<Import Project="..\..\..\netfx.props" />
53
<PropertyGroup>
64
<TargetFrameworks>net471;netstandard2.0</TargetFrameworks>
75
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
86
<AssemblyName>Lib</AssemblyName>
97
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
108
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
9+
10+
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
11+
<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference>
1112
</PropertyGroup>
13+
1214
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
1315
<DocumentationFile>.\bin\release\Lib.XML</DocumentationFile>
1416
</PropertyGroup>
17+
1518
<ItemGroup>
19+
<None Include="paket.references" />
1620
<Compile Include="Library1.fs" />
1721
<None Include="paket.references" />
1822
<None Include="Script.fsx" />
1923
<Content Include="App.config" />
2024
</ItemGroup>
25+
2126
<ItemGroup>
2227
<Reference Include="netstandard" />
2328
<Reference Condition="'$(TargetFramework)' == 'netstandard2.0'" Include="FSharp.Data.SqlClient">
@@ -27,5 +32,6 @@
2732
<HintPath>..\..\..\bin\net40\FSharp.Data.SqlClient.dll</HintPath>
2833
</Reference>
2934
</ItemGroup>
35+
3036
<Import Project="..\..\..\.paket\Paket.Restore.targets" />
3137
</Project>
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
3-
<Import Project="..\..\..\fsc.props" />
43
<PropertyGroup>
54
<OutputType>Exe</OutputType>
65
<TargetFramework>netcoreapp2.0</TargetFramework>
76
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
7+
8+
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
9+
<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference>
810
</PropertyGroup>
11+
912
<ItemGroup>
1013
<Reference Include="FSharp.Data.SqlClient">
1114
<HintPath>..\..\..\bin\netstandard2.0\FSharp.Data.SqlClient.dll</HintPath>
1215
</Reference>
1316
</ItemGroup>
17+
1418
<ItemGroup>
19+
<None Include="paket.references" />
1520
<Compile Include="Program.fs" />
1621
</ItemGroup>
1722
<ItemGroup>
1823
<None Include="paket.references" />
1924
</ItemGroup>
25+
26+
<ItemGroup />
27+
2028
<Import Project="..\..\..\.paket\Paket.Restore.targets" />
2129
</Project>

src/SqlClient/SqlClient.fsproj

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,18 @@
1111
<WithLegacyNamespaces>true</WithLegacyNamespaces>
1212
<DefineConstants Condition="'$(WithLegacyNamespaces)'=='true'">$(DefineConstants);WITH_LEGACY_NAMESPACE</DefineConstants>
1313
</PropertyGroup>
14+
1415
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
1516
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1617
<DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants>
1718
</PropertyGroup>
19+
1820
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
19-
<DocumentationFile>..\..\bin\net40\FSharp.Data.SqlClient.XML</DocumentationFile>
21+
<DocumentationFile>..\..\bin\netstandard2.0\FSharp.Data.SqlClient.XML</DocumentationFile>
2022
</PropertyGroup>
23+
2124
<ItemGroup>
22-
<PackageReference Include="FSharp.Core" Version="4.1.18" Condition="'$(TargetFramework)' == 'net40'" />
23-
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition="'$(TargetFramework)' != 'net40'" />
24-
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" Condition="'$(TargetFramework)' != 'net40'" />
25-
</ItemGroup>
26-
<ItemGroup Condition="'$(TargetFramework)' == 'net40'">
27-
<Reference Include="System.Data" />
28-
<Reference Include="System.Transactions" />
29-
</ItemGroup>
30-
<ItemGroup>
25+
<None Include="paket.references" />
3126
<Compile Include="AssemblyInfo.fs" />
3227
<Compile Include="Extensions.fs" />
3328
<Compile Include="Shared.fs" />
@@ -37,10 +32,13 @@
3732
<Compile Include="ISqlCommand.fs" />
3833
<Compile Include="Runtime.fs" />
3934
</ItemGroup>
35+
4036
<Target Name="CopyAssemblies" AfterTargets="Build">
4137
<ItemGroup>
42-
<RuntimeAssemblies Include="$(OutputPath)\FSharp.Data.SqlClient.*" />
43-
</ItemGroup>
38+
<RuntimeAssemblies Include="$(OutputPath)\FSharp.Data.SqlClient.*" />
39+
</ItemGroup>
4440
<Copy SourceFiles="@(RuntimeAssemblies)" DestinationFolder="..\..\bin\$(TargetFramework)" />
4541
</Target>
42+
43+
<Import Project="..\..\.paket\Paket.Restore.targets" />
4644
</Project>

src/SqlClient/paket.references

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
group Library
2+
3+
FSharp.Core
4+
Microsoft.Data.SqlClient

0 commit comments

Comments
 (0)