From 15d3dbde6a1aed11c1783ff89af1f9fd92829e8c Mon Sep 17 00:00:00 2001 From: Rutherther Date: Thu, 3 Feb 2022 18:45:42 +0100 Subject: [PATCH] feat: make projects available for netstandard 2.1 --- .../IsExternalInit.cs | 16 ++++++++++++++++ .../NosSmooth.Data.Abstractions.csproj | 3 ++- Data/NosSmooth.Data.Database/IsExternalInit.cs | 16 ++++++++++++++++ .../NosSmooth.Data.Database.csproj | 3 ++- .../NosSmooth.Data.NOSFiles/Files/FileArchive.cs | 2 +- Data/NosSmooth.Data.NOSFiles/IsExternalInit.cs | 16 ++++++++++++++++ .../NosSmooth.Data.NOSFiles.csproj | 3 ++- ...osSmooth.PacketSerializer.Abstractions.csproj | 2 +- .../NosSmooth.Packets/NosSmooth.Packets.csproj | 2 +- 9 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 Data/NosSmooth.Data.Abstractions/IsExternalInit.cs create mode 100644 Data/NosSmooth.Data.Database/IsExternalInit.cs create mode 100644 Data/NosSmooth.Data.NOSFiles/IsExternalInit.cs diff --git a/Data/NosSmooth.Data.Abstractions/IsExternalInit.cs b/Data/NosSmooth.Data.Abstractions/IsExternalInit.cs new file mode 100644 index 0000000..e7be764 --- /dev/null +++ b/Data/NosSmooth.Data.Abstractions/IsExternalInit.cs @@ -0,0 +1,16 @@ +// +// IsExternalInit.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +// ReSharper disable once CheckNamespace +namespace System.Runtime.CompilerServices +{ + /// + /// Dummy. + /// + public class IsExternalInit + { + } +} \ No newline at end of file diff --git a/Data/NosSmooth.Data.Abstractions/NosSmooth.Data.Abstractions.csproj b/Data/NosSmooth.Data.Abstractions/NosSmooth.Data.Abstractions.csproj index d02ef66..aa07147 100644 --- a/Data/NosSmooth.Data.Abstractions/NosSmooth.Data.Abstractions.csproj +++ b/Data/NosSmooth.Data.Abstractions/NosSmooth.Data.Abstractions.csproj @@ -1,13 +1,14 @@ - net6.0 enable enable Nos smooth's abstractions for information from NosTale data files. + 10 https://github.com/Rutherther/NosSmooth/ MIT 1.0.1 + net6.0;netstandard2.1 diff --git a/Data/NosSmooth.Data.Database/IsExternalInit.cs b/Data/NosSmooth.Data.Database/IsExternalInit.cs new file mode 100644 index 0000000..e7be764 --- /dev/null +++ b/Data/NosSmooth.Data.Database/IsExternalInit.cs @@ -0,0 +1,16 @@ +// +// IsExternalInit.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +// ReSharper disable once CheckNamespace +namespace System.Runtime.CompilerServices +{ + /// + /// Dummy. + /// + public class IsExternalInit + { + } +} \ No newline at end of file diff --git a/Data/NosSmooth.Data.Database/NosSmooth.Data.Database.csproj b/Data/NosSmooth.Data.Database/NosSmooth.Data.Database.csproj index 3fed6ac..d2450dd 100644 --- a/Data/NosSmooth.Data.Database/NosSmooth.Data.Database.csproj +++ b/Data/NosSmooth.Data.Database/NosSmooth.Data.Database.csproj @@ -1,13 +1,14 @@ - net6.0 enable enable Nos smooth's database implementation of NosTale data using EF core. + 10 https://github.com/Rutherther/NosSmooth/ MIT 1.0.1 + net6.0 diff --git a/Data/NosSmooth.Data.NOSFiles/Files/FileArchive.cs b/Data/NosSmooth.Data.NOSFiles/Files/FileArchive.cs index 1590fbf..fd199ef 100644 --- a/Data/NosSmooth.Data.NOSFiles/Files/FileArchive.cs +++ b/Data/NosSmooth.Data.NOSFiles/Files/FileArchive.cs @@ -22,7 +22,7 @@ public record FileArchive(IReadOnlyList Files) public Result FindFile(string name) { var foundFile = Files.OfType().FirstOrDefault - (x => Path.GetFileName(((RawFile)x!).Path) == name, null); + (x => Path.GetFileName(((RawFile)x!).Path) == name); if (foundFile is null) { return new NotFoundError($"Could not find file {name} in archive."); diff --git a/Data/NosSmooth.Data.NOSFiles/IsExternalInit.cs b/Data/NosSmooth.Data.NOSFiles/IsExternalInit.cs new file mode 100644 index 0000000..e7be764 --- /dev/null +++ b/Data/NosSmooth.Data.NOSFiles/IsExternalInit.cs @@ -0,0 +1,16 @@ +// +// IsExternalInit.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +// ReSharper disable once CheckNamespace +namespace System.Runtime.CompilerServices +{ + /// + /// Dummy. + /// + public class IsExternalInit + { + } +} \ No newline at end of file diff --git a/Data/NosSmooth.Data.NOSFiles/NosSmooth.Data.NOSFiles.csproj b/Data/NosSmooth.Data.NOSFiles/NosSmooth.Data.NOSFiles.csproj index 3690669..4be2700 100644 --- a/Data/NosSmooth.Data.NOSFiles/NosSmooth.Data.NOSFiles.csproj +++ b/Data/NosSmooth.Data.NOSFiles/NosSmooth.Data.NOSFiles.csproj @@ -1,16 +1,17 @@ - net6.0 enable enable Nos smooth's NosTale data implementation using .NOS files. + 10 https://github.com/Rutherther/NosSmooth/ MIT 1.1.0 Fix of translations dictionary to provide correct translations for different root keys. + net6.0;netstandard2.1 diff --git a/Packets/NosSmooth.PacketSerializer.Abstractions/NosSmooth.PacketSerializer.Abstractions.csproj b/Packets/NosSmooth.PacketSerializer.Abstractions/NosSmooth.PacketSerializer.Abstractions.csproj index 20ea848..54f6f72 100644 --- a/Packets/NosSmooth.PacketSerializer.Abstractions/NosSmooth.PacketSerializer.Abstractions.csproj +++ b/Packets/NosSmooth.PacketSerializer.Abstractions/NosSmooth.PacketSerializer.Abstractions.csproj @@ -1,7 +1,6 @@ - netstandard2.1 enable enable 10 @@ -9,6 +8,7 @@ https://github.com/Rutherther/NosSmooth/ MIT 1.0.1 + net6.0;netstandard2.1 diff --git a/Packets/NosSmooth.Packets/NosSmooth.Packets.csproj b/Packets/NosSmooth.Packets/NosSmooth.Packets.csproj index 944135c..36460fb 100644 --- a/Packets/NosSmooth.Packets/NosSmooth.Packets.csproj +++ b/Packets/NosSmooth.Packets/NosSmooth.Packets.csproj @@ -3,12 +3,12 @@ enable enable - netstandard2.1 10 Contains default NosTale packets. https://github.com/Rutherther/NosSmooth/ MIT 1.0.1 + net6.0;netstandard2.1 -- 2.49.0