Skip to content

Commit

Permalink
Merge pull request #14 from DIPSAS/bug/netstandard
Browse files Browse the repository at this point in the history
Fixing netstandard-issue
  • Loading branch information
epaulsen authored Jun 13, 2018
2 parents ec0c5b0 + d60c257 commit 4f2238e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/Dapper.Oracle/Dapper.Oracle.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\common.targets" />
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net452</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net452</TargetFrameworks>
</PropertyGroup>

<ItemGroup Condition=" $(IsNetFramework) ">
<Reference Include="Microsoft.CSharp" />
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Runtime.Serialization" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Dapper" Version="1.50.2" />
</ItemGroup>
<PropertyGroup Condition=" $(IsNetFramework) ">
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
</PropertyGroup>
</Project>
3 changes: 2 additions & 1 deletion src/Tests.Dapper.Oracle/OracleParameterRetretreivers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public class OracleParameterData

public DataRowVersion SourceVersion { get; set; }
}
#if NET452
#if NETCOREAPP2_0
#else
public class OracleUnmanagedParameterRetretreiver : IOracleParameterRetretreiver
{
public OracleParameterData GetParameter(object parameter)
Expand Down
6 changes: 4 additions & 2 deletions src/Tests.Dapper.Oracle/Tests.Dapper.Oracle.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@
<PackageReference Include="xunit.runner.console" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
</ItemGroup>


<!--Oracle.ManagedDataAccess.Core-->


<PropertyGroup Condition=" $(IsNetFramework) ">
<DefineConstants>$(DefineConstants);NETFRAMEWORK</DefineConstants>
<DefineConstants>$(DefineConstants);NETFRAMEWORK</DefineConstants>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
</PropertyGroup>


<ItemGroup>
<ProjectReference Include="..\Dapper.Oracle\Dapper.Oracle.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 4f2238e

Please sign in to comment.