Skip to content

Commit dcd18a8

Browse files
committed
Support .NET Standard
1 parent 4d9b8ac commit dcd18a8

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

common.targets

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard1.5;netstandard2.0;net6.0</TargetFrameworks>
55
<RootNamespace>nng</RootNamespace>
66
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
88
<WarningsAsErrors />
9+
</PropertyGroup>
10+
11+
<PropertyGroup Condition="'$(TargetFramework)'=='net6.0'">
912
<LangVersion>9.0</LangVersion>
1013
</PropertyGroup>
14+
<PropertyGroup Condition="'$(TargetFramework)'!='net6.0'">
15+
<LangVersion>7.3</LangVersion>
16+
</PropertyGroup>
1117

1218
<PropertyGroup>
13-
<VersionPrefix>1.4.1</VersionPrefix>
19+
<VersionPrefix>1.4.4</VersionPrefix>
1420
<VersionSuffix></VersionSuffix>
1521
<Authors>Jeikabu, James Freiwirth</Authors>
1622
<PackageLicenseExpression>MIT</PackageLicenseExpression>

nng.NET.Shared/nng.NET.Shared.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@
1313
<PackageOutputPath>../bin/$(Configuration)</PackageOutputPath>
1414
</PropertyGroup>
1515

16+
<ItemGroup>
17+
<PackageReference Include="system.memory" Version="4.5.4" />
18+
<PackageReference Include="system.valuetuple" Version="4.5.0" />
19+
<PackageReference Include="system.runtime.loader" Version="4.3.0" />
20+
</ItemGroup>
21+
1622
</Project>

0 commit comments

Comments
 (0)