Skip to content

Commit

Permalink
easy repro for TP SDK 244
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-a-morozov committed Sep 11, 2018
1 parent 1964abf commit e0f32ac
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 3 deletions.
6 changes: 6 additions & 0 deletions FSharp.Data.Npgsql.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Runtime", "src\Runtime\Runt
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "DesignTime", "src\DesignTime\DesignTime.fsproj", "{3C3E9A10-898C-4704-ACDC-30A0B96B4B23}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "TpSdkIssue244", "tests\TpSdkIssue244\TpSdkIssue244.fsproj", "{08CDC993-87CC-4B9A-A776-36808D614727}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -21,6 +23,10 @@ Global
{3C3E9A10-898C-4704-ACDC-30A0B96B4B23}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3C3E9A10-898C-4704-ACDC-30A0B96B4B23}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3C3E9A10-898C-4704-ACDC-30A0B96B4B23}.Release|Any CPU.Build.0 = Release|Any CPU
{08CDC993-87CC-4B9A-A776-36808D614727}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{08CDC993-87CC-4B9A-A776-36808D614727}.Debug|Any CPU.Build.0 = Debug|Any CPU
{08CDC993-87CC-4B9A-A776-36808D614727}.Release|Any CPU.ActiveCfg = Release|Any CPU
{08CDC993-87CC-4B9A-A776-36808D614727}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
3 changes: 1 addition & 2 deletions src/Runtime/Runtime.fsproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFramework Condition="'$(Configuration)'=='Debug'">net461</TargetFramework>
<TargetFrameworks Condition="'$(Configuration)'=='Release'">netstandard2.0;net461</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
<AssemblyName>FSharp.Data.Npgsql</AssemblyName>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeAllDlls</TargetsForTfmSpecificBuildOutput>
<Nuspecfile>FSharp.Data.Npgsql.nuspec</Nuspecfile>
Expand Down
13 changes: 13 additions & 0 deletions tests/TpSdkIssue244/Program.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Learn more about F# at http://fsharp.org

open FSharp.Data.Npgsql

[<Literal>]
let connection = "Host=localhost;Username=postgres;Password=postgres"

[<EntryPoint>]
let main _ =
use cmd = new NpgsqlCommand<"SELECT now() as now, @echo::int as value", connection>(connection)
let x = cmd.Execute(42) |> Seq.exactlyOne
printfn "Today: %A, echo value: %A" x.now x.value
0
27 changes: 27 additions & 0 deletions tests/TpSdkIssue244/TpSdkIssue244.fsproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="Program.fs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Npgsql" Version="4.0.3" />
<PackageReference Include="Npgsql.LegacyPostgis" Version="1.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Runtime\Runtime.fsproj" />
</ItemGroup>

<!--<ItemGroup>
<Reference Include="FSharp.Data.Npgsql">
<HintPath>..\..\src\Runtime\bin\Debug\netstandard2.0\FSharp.Data.Npgsql.dll</HintPath>
</Reference>
</ItemGroup>-->

</Project>

0 comments on commit e0f32ac

Please sign in to comment.