From bbe38c064a53db81a5df06c2e54d98b165f9d44d Mon Sep 17 00:00:00 2001 From: Daniel Crenna Date: Thu, 3 May 2018 01:40:01 -0400 Subject: [PATCH] add multi-targeted SLN (.net 4.0, .net 4.5, .net 4.6, .net 4.6.1, .net 4.6.2, .net standard 2.0) and unit tests (.net 4.6 and .net core 2.0) --- Lidgren.Network.MultiTarget.sln | 65 ++++++++++++++ .../Lidgren.Network.MultiTarget.csproj | 85 +++++++++++++++++++ UnitTests.Core/UnitTests.Core.csproj | 21 +++++ UnitTests.MultiTarget/App.config | 6 ++ .../Properties/AssemblyInfo.cs | 36 ++++++++ .../UnitTests.MultiTarget.csproj | 75 ++++++++++++++++ 6 files changed, 288 insertions(+) create mode 100644 Lidgren.Network.MultiTarget.sln create mode 100644 Lidgren.Network.MultiTarget/Lidgren.Network.MultiTarget.csproj create mode 100644 UnitTests.Core/UnitTests.Core.csproj create mode 100644 UnitTests.MultiTarget/App.config create mode 100644 UnitTests.MultiTarget/Properties/AssemblyInfo.cs create mode 100644 UnitTests.MultiTarget/UnitTests.MultiTarget.csproj diff --git a/Lidgren.Network.MultiTarget.sln b/Lidgren.Network.MultiTarget.sln new file mode 100644 index 00000000..785df408 --- /dev/null +++ b/Lidgren.Network.MultiTarget.sln @@ -0,0 +1,65 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27428.2043 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lidgren.Network.MultiTarget", "Lidgren.Network.MultiTarget\Lidgren.Network.MultiTarget.csproj", "{B06120B6-880F-4DAE-9E42-A17C06E2B077}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests.Core", "UnitTests.Core\UnitTests.Core.csproj", "{A7E2B331-87EF-4D51-8D00-02AB08718483}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests.MultiTarget", "UnitTests.MultiTarget\UnitTests.MultiTarget.csproj", "{692C5016-356C-4FB0-AD7C-4B9801D14BBB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Debug|x86.ActiveCfg = Debug|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Debug|x86.Build.0 = Debug|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Release|Any CPU.Build.0 = Release|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Release|x86.ActiveCfg = Release|Any CPU + {B06120B6-880F-4DAE-9E42-A17C06E2B077}.Release|x86.Build.0 = Release|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Debug|x86.ActiveCfg = Debug|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Debug|x86.Build.0 = Debug|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Release|Any CPU.Build.0 = Release|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Release|x86.ActiveCfg = Release|Any CPU + {A7E2B331-87EF-4D51-8D00-02AB08718483}.Release|x86.Build.0 = Release|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Debug|x86.ActiveCfg = Debug|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Debug|x86.Build.0 = Debug|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Release|Any CPU.Build.0 = Release|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Release|x86.ActiveCfg = Release|Any CPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {46E2081A-758A-4FCB-99B8-CC718BA64C10} + EndGlobalSection +EndGlobal diff --git a/Lidgren.Network.MultiTarget/Lidgren.Network.MultiTarget.csproj b/Lidgren.Network.MultiTarget/Lidgren.Network.MultiTarget.csproj new file mode 100644 index 00000000..a29d711e --- /dev/null +++ b/Lidgren.Network.MultiTarget/Lidgren.Network.MultiTarget.csproj @@ -0,0 +1,85 @@ + + + + net40;net45;net46;net461;net462;netstandard2.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/UnitTests.Core/UnitTests.Core.csproj b/UnitTests.Core/UnitTests.Core.csproj new file mode 100644 index 00000000..f1d68087 --- /dev/null +++ b/UnitTests.Core/UnitTests.Core.csproj @@ -0,0 +1,21 @@ + + + + Exe + netcoreapp2.0 + + + + + + + + + + + + + + + + diff --git a/UnitTests.MultiTarget/App.config b/UnitTests.MultiTarget/App.config new file mode 100644 index 00000000..8324aa6f --- /dev/null +++ b/UnitTests.MultiTarget/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/UnitTests.MultiTarget/Properties/AssemblyInfo.cs b/UnitTests.MultiTarget/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..75302bff --- /dev/null +++ b/UnitTests.MultiTarget/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("UnitTests.MultiTarget")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("UnitTests.MultiTarget")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("692c5016-356c-4fb0-ad7c-4b9801d14bbb")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/UnitTests.MultiTarget/UnitTests.MultiTarget.csproj b/UnitTests.MultiTarget/UnitTests.MultiTarget.csproj new file mode 100644 index 00000000..d3893172 --- /dev/null +++ b/UnitTests.MultiTarget/UnitTests.MultiTarget.csproj @@ -0,0 +1,75 @@ + + + + + Debug + AnyCPU + {692C5016-356C-4FB0-AD7C-4B9801D14BBB} + Exe + UnitTests.MultiTarget + UnitTests.MultiTarget + v4.6 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + BitVectorTests.cs + + + EncryptionTests.cs + + + MiscTests.cs + + + NetQueueTests.cs + + + Program.cs + + + ReadWriteTests.cs + + + + + + + + + {b06120b6-880f-4dae-9e42-a17c06e2b077} + Lidgren.Network.MultiTarget + + + + \ No newline at end of file