Skip to content
Permalink
Browse files

Depend on .NET Framework targeting pack nugets

Depend on .NET Framework reference assemblies via the new nuget
packages. This allows us to build .NET Framework on systems where
.NET Framework isn't installed (e.g. Linux).
  • Loading branch information...
roji committed May 5, 2019
1 parent 2e432c1 commit f9bce68e6683af186434462ba57190d2e34ea4f0
@@ -26,4 +26,11 @@
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Npgsql.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
</PropertyGroup>

<!-- Reference .NET Framework reference assemblies, allows building on environments without .NET Framework installed
(e.g. Linux). Gets ignored on non-framework TFMs. -->
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-preview.1" PrivateAssets="All" />
</ItemGroup>

</Project>
@@ -5,7 +5,6 @@
<PackageTags>npgsql postgresql postgres postgis geojson spatial ado ado.net database sql</PackageTags>
<VersionPrefix>1.0.0</VersionPrefix>
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT' OR '$(CoreOnly)' == 'True'">netstandard2.0</TargetFrameworks>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<ItemGroup>
@@ -4,7 +4,6 @@
<Description>Json.NET plugin for Npgsql, allowing transparent serialization/deserialization of JSON objects directly to and from the database.</Description>
<PackageTags>npgsql postgresql json postgres ado ado.net database sql</PackageTags>
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT' OR '$(CoreOnly)' == 'True'">netstandard2.0</TargetFrameworks>
<VersionPrefix>1.0.0</VersionPrefix>
</PropertyGroup>
<ItemGroup>
@@ -5,7 +5,6 @@
<PackageTags>npgsql postgresql postgres postgis spatial geometry geography ado ado.net database sql</PackageTags>
<VersionPrefix>1.0.0</VersionPrefix>
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT' OR '$(CoreOnly)' == 'True'">netstandard2.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Npgsql\Npgsql.csproj" />
@@ -5,7 +5,6 @@
<PackageTags>npgsql postgresql postgres postgis nts ado ado.net database sql</PackageTags>
<VersionPrefix>1.0.2</VersionPrefix>
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT' OR '$(CoreOnly)' == 'True'">netstandard2.0</TargetFrameworks>
<NoWarn>NU5104</NoWarn>
</PropertyGroup>
<ItemGroup>
@@ -5,7 +5,6 @@
<PackageTags>npgsql postgresql postgres nodatime date time ado ado.net database sql</PackageTags>
<VersionPrefix>4.1.0</VersionPrefix>
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT' OR '$(CoreOnly)' == 'True'">netstandard2.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NodaTime" Version="2.4.4" />
@@ -5,7 +5,6 @@
<PackageTags>npgsql postgresql postgres postgis spatial geometry geography ado ado.net database sql</PackageTags>
<VersionPrefix>1.0.0</VersionPrefix>
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT' OR '$(CoreOnly)' == 'True'">netstandard2.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Npgsql\Npgsql.csproj" />
@@ -5,7 +5,6 @@
<PackageTags>npgsql postgresql postgres ado ado.net database sql</PackageTags>
<VersionPrefix>4.1.0</VersionPrefix>
<TargetFrameworks>net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT' OR '$(CoreOnly)' == 'True'">netstandard2.0;netstandard2.1</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
@@ -4,6 +4,5 @@
<!-- Build configuration -->
<PropertyGroup>
<TargetFrameworks>net461;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT' OR '$(CoreOnly)' == 'True'">netcoreapp3.0</TargetFrameworks>
</PropertyGroup>
</Project>

0 comments on commit f9bce68

Please sign in to comment.
You can’t perform that action at this time.