From 0455b6a6bf9b9167cba52fc199c99201edb3a49d Mon Sep 17 00:00:00 2001 From: myd7349 Date: Thu, 25 Jul 2024 21:20:50 +0800 Subject: [PATCH] Fix native libs packaging without using SkiaSharp's black magic --- Source/Directory.Build.props | 3 +- Source/SharpLSL.Natives/Directory.Build.props | 14 +++----- .../SharpLSL.Native.win-x86.csproj | 33 ++++++++----------- 3 files changed, 19 insertions(+), 31 deletions(-) diff --git a/Source/Directory.Build.props b/Source/Directory.Build.props index 92b0b16..bfbbb57 100644 --- a/Source/Directory.Build.props +++ b/Source/Directory.Build.props @@ -3,12 +3,11 @@ net35;netcoreapp3.1;net6.0 latest + true true true false - diff --git a/Source/SharpLSL.Natives/Directory.Build.props b/Source/SharpLSL.Natives/Directory.Build.props index ad02b67..f18d14f 100644 --- a/Source/SharpLSL.Natives/Directory.Build.props +++ b/Source/SharpLSL.Natives/Directory.Build.props @@ -3,22 +3,16 @@ - false - - true - runtimes - false - None false + false + false + false LICENSE + false diff --git a/Source/SharpLSL.Natives/SharpLSL.Native.win-x86/SharpLSL.Native.win-x86.csproj b/Source/SharpLSL.Natives/SharpLSL.Native.win-x86/SharpLSL.Native.win-x86.csproj index 73ead04..48d3ef8 100644 --- a/Source/SharpLSL.Natives/SharpLSL.Native.win-x86/SharpLSL.Native.win-x86.csproj +++ b/Source/SharpLSL.Natives/SharpLSL.Native.win-x86/SharpLSL.Native.win-x86.csproj @@ -24,16 +24,23 @@ - + - + - + @@ -54,22 +61,10 @@ - - - - - - - - <_CompletedNativeWindowsPackageFile - Include="@(_NativeWindowsPackageFileToUse)" - TargetFramework="%(RuntimeIdentifier)" - TargetPath="%(Folder)\%(Filename)%(Extension)" - PackagePath="runtimes\%(RuntimeIdentifier)\%(Folder)\%(Filename)%(Extension)" /> - <_BuildOutputInPackage Remove="@(_BuildOutputInPackage)" /> - <_BuildOutputInPackage Include="@(_CompletedNativeWindowsPackageFile)" Condition="'%(Extension)' != '.pdb'" /> - <_TargetPathsToSymbols Remove="@(_TargetPathsToSymbols)" /> - <_TargetPathsToSymbols Include="@(_CompletedNativeWindowsPackageFile)" Condition="'%(Extension)' == '.pdb'" /> + +