1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-14 22:26:29 +09:00

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).
This commit is contained in:
Pieter-Jan Briers
2020-02-15 00:33:54 +01:00
parent 78df229a1b
commit e77fa444a1

View File

@@ -1,10 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net40;net45;net46;net461;net462;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net45;net46;net461;net462;netstandard2.0</TargetFrameworks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Lidgren.Network\Properties\AssemblyInfo.cs" Link="Properties\AssemblyInfo.cs" />
<Compile Include="..\Lidgren.Network\Encryption\NetAESEncryption.cs" Link="Encryption\NetAESEncryption.cs" />
<Compile Include="..\Lidgren.Network\Encryption\NetBlockEncryptionBase.cs" Link="Encryption\NetBlockEncryptionBase.cs" />
<Compile Include="..\Lidgren.Network\Encryption\NetCryptoProviderBase.cs" Link="Encryption\NetCryptoProviderBase.cs" />
@@ -82,4 +84,11 @@
<Folder Include="Platform\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>