Skip to content

Commit

Permalink
Add .NET Standard 2.0 Target
Browse files Browse the repository at this point in the history
  • Loading branch information
airbreather committed Dec 13, 2017
1 parent 5bc9066 commit 2702dc9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ProjNET.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Proj.NET performs point-to-point coordinate conversions between geodetic coordin
<copyright>Copyright 2006-2015</copyright>
<tags>OGC SFS Projection</tags>
<dependencies>
<dependency id="GeoAPI" version="[1.7.4,1.8)" />
<dependency id="GeoAPI" version="[1.7.5-pre009, )" />
</dependencies>
</metadata>
<files>
Expand Down
14 changes: 12 additions & 2 deletions ProjNet/ProjNET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<PropertyGroup>
<SolutionDir Condition=" '$(SolutionDir)' == '' ">$(ProjectDir)..\</SolutionDir>
<RootNamespace>ProjNet</RootNamespace>
<TargetFrameworks>net35-client;net40-client;net403-client;net45;netstandard1.0</TargetFrameworks>
<TargetFrameworks>net35-client;net40-client;net403-client;net45;netstandard1.0;netstandard2.0</TargetFrameworks>
<OutputPath>$(SolutionDir)$(Configuration)\$(Platform)</OutputPath>
<DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GeoAPIPackageReferenceVersion>1.7.5-pre4</GeoAPIPackageReferenceVersion>
<GeoAPIPackageReferenceVersion>1.7.5-pre009</GeoAPIPackageReferenceVersion>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(SolutionDir)scskey.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
Expand Down Expand Up @@ -52,11 +52,21 @@

<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.0' ">
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.0' Or '$(TargetFramework)' == 'netstandard2.0' ">
<DefineConstants>$(DefineConstants);HAS_SYSTEM_REFLECTION_TYPEINFO</DefineConstants>
<DefineConstants>$(DefineConstants);HAS_SYSTEM_THREADING_TASKS_TASK_RUN</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<DefineConstants>$(DefineConstants);FEATURE_DESERIALIZATION_CONSTRUCTOR</DefineConstants>
<DefineConstants>$(DefineConstants);HAS_SYSTEM_SERIALIZABLEATTRIBUTE</DefineConstants>
<DefineConstants>$(DefineConstants);HAS_SYSTEM_THREADING_THREADPOOL</DefineConstants>
<DefineConstants>$(DefineConstants);HAS_SYSTEM_TYPE_GETCONSTRUCTORS</DefineConstants>
<DefineConstants>$(DefineConstants);HAS_SYSTEM_TYPE_ISASSIGNABLEFROM</DefineConstants>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GeoAPI" Version="$(GeoAPIPackageReferenceVersion)" />
</ItemGroup>
Expand Down

0 comments on commit 2702dc9

Please sign in to comment.