From 2299976e67defc865c3deed09e269bb170fbea67 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 24 Apr 2019 00:25:11 +0100 Subject: [PATCH] Add support for .NET Core. --- Claunia.RsrcFork/Claunia.RsrcFork.csproj | 91 ++++++++------------- Claunia.RsrcFork/Properties/AssemblyInfo.cs | 54 ------------ Claunia.RsrcFork/ResourceFork.cs | 2 +- 3 files changed, 34 insertions(+), 113 deletions(-) delete mode 100644 Claunia.RsrcFork/Properties/AssemblyInfo.cs diff --git a/Claunia.RsrcFork/Claunia.RsrcFork.csproj b/Claunia.RsrcFork/Claunia.RsrcFork.csproj index 37718d7..dbb30b9 100644 --- a/Claunia.RsrcFork/Claunia.RsrcFork.csproj +++ b/Claunia.RsrcFork/Claunia.RsrcFork.csproj @@ -1,59 +1,52 @@ - - - + + - Debug - AnyCPU + net40;netstandard1.3;netstandard1.4;netstandard1.5;netstandard1.6;netstandard1.7;netstandard2.0 + 1.1 + Claunia.com + © 2016-2019 Natalia Portillo + MIT + git + en-US + True + latest {CA231ED3-0C78-496C-AAFE-D085F6E9BEC6} Library Claunia.RsrcFork Claunia.RsrcFork - 8.0.30703 - 2.0 - 1.0 + 1.1 false Claunia.RsrcFork - 1.0 + 1.1 Natalia Portillo - https://raw.githubusercontent.com/claunia/Claunia.RsrcFork/master/LICENSE - true claunia https://www.github.com/claunia/Claunia.RsrcFork Library for handling resource forks. Claunia.RsrcFork Library for handling resource forks. + true + true + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb + Support .NET Standard. - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - bin\Debug\Claunia.RsrcFork.xml - false - - - true - bin\Release - prompt - 4 + + + TRACE;RELEASE bin\Release\Claunia.RsrcFork.xml - false - - - - - - - - - - - - + + + TRACE;DEBUG + + + + $(DefineConstants);NETCORE + + + + $(DefineConstants);NATIVE_SPAN + + README.md @@ -70,22 +63,4 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Claunia.RsrcFork/Properties/AssemblyInfo.cs b/Claunia.RsrcFork/Properties/AssemblyInfo.cs deleted file mode 100644 index ee3735b..0000000 --- a/Claunia.RsrcFork/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Author: -// Natalia Portillo claunia@claunia.com -// -// Copyright (c) 2016, © Claunia.com -// -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -// -// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in -// the documentation and/or other materials provided with the distribution. -// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -using System.Reflection; -using System.Runtime.CompilerServices; - -// Information about this assembly is defined by the following attributes. -// Change them to the values specific to your project. - -[assembly: AssemblyTitle ("Claunia.RsrcFork")] -[assembly: AssemblyDescription ("")] -[assembly: AssemblyConfiguration ("")] -[assembly: AssemblyCompany ("Claunia.com")] -[assembly: AssemblyProduct ("")] -[assembly: AssemblyCopyright ("© Claunia.com")] -[assembly: AssemblyTrademark ("")] -[assembly: AssemblyCulture ("")] - -// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". -// The form "{Major}.{Minor}.*" will automatically update the build and revision, -// and "{Major}.{Minor}.{Build}.*" will update just the revision. - -[assembly: AssemblyVersion ("1.0.*")] - -// The following attributes are used to specify the signing key for the assembly, -// if desired. See the Mono documentation for more information about signing. - -//[assembly: AssemblyDelaySign(false)] -//[assembly: AssemblyKeyFile("")] - diff --git a/Claunia.RsrcFork/ResourceFork.cs b/Claunia.RsrcFork/ResourceFork.cs index ce32353..00eff09 100644 --- a/Claunia.RsrcFork/ResourceFork.cs +++ b/Claunia.RsrcFork/ResourceFork.cs @@ -68,7 +68,7 @@ namespace Claunia.RsrcFork ~ResourceFork() { if(rsrcStream != null) - rsrcStream.Close(); + rsrcStream.Dispose(); } ///