From e77fa444a1ba2ba87d5597b647dc42405ab1da76 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sat, 15 Feb 2020 00:33:54 +0100 Subject: [PATCH] Improve multi-target csproj. 1. Added a reference to Microsoft.NETFramework.ReferenceAssemblies so that the project can be built hassle-free on .NET Core. 2. Use the AssemblyInfo.cs from the existing code and disable automatic AssemblyInfo generation (to avoid clash). 3. Dropped target for net40. The regular Framework project file didn't support it either and it doesn't build due to a missing API (MapToIPv6). --- .../Lidgren.Network.MultiTarget.csproj | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Lidgren.Network.MultiTarget/Lidgren.Network.MultiTarget.csproj b/Lidgren.Network.MultiTarget/Lidgren.Network.MultiTarget.csproj index a29d711e..286f9c47 100644 --- a/Lidgren.Network.MultiTarget/Lidgren.Network.MultiTarget.csproj +++ b/Lidgren.Network.MultiTarget/Lidgren.Network.MultiTarget.csproj @@ -1,10 +1,12 @@ - net40;net45;net46;net461;net462;netstandard2.0 + net45;net46;net461;net462;netstandard2.0 + false + @@ -82,4 +84,11 @@ + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + +