Build the native into the native folder, and then link into the project
This commit is contained in:
Родитель
3545960a6c
Коммит
0b924240fd
|
@ -179,12 +179,6 @@ Task ("externals-uwp")
|
|||
EnsureDirectoryExists (outDir);
|
||||
CopyFileToDirectory ($"source/SkiaSharp.Views.Interop.UWP/bin/{arch}/Release/SkiaSharp.Views.Interop.UWP.dll", outDir);
|
||||
CopyFileToDirectory ($"source/SkiaSharp.Views.Interop.UWP/bin/{arch}/Release/SkiaSharp.Views.Interop.UWP.pdb", outDir);
|
||||
|
||||
// copy SkiaSharp.Views.Interop.UWP to output
|
||||
outDir = $"output/SkiaSharp.Views/nuget/runtimes/win10-{dir}/nativeassets/uap10.0";
|
||||
EnsureDirectoryExists (outDir);
|
||||
CopyFileToDirectory ($"source/SkiaSharp.Views.Interop.UWP/bin/{arch}/Release/SkiaSharp.Views.Interop.UWP.dll", outDir);
|
||||
CopyFileToDirectory ($"source/SkiaSharp.Views.Interop.UWP/bin/{arch}/Release/SkiaSharp.Views.Interop.UWP.pdb", outDir);
|
||||
});
|
||||
|
||||
buildInteropArch ("Win32", "x86");
|
||||
|
|
|
@ -17,6 +17,11 @@
|
|||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\binding\SkiaSharp.UWP\SkiaSharp.UWP.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\..\output\native\uwp\x64\SkiaSharp.Views.Interop.UWP.dll" Link="nuget\runtimes\win10-x64\nativeassets\uap10.0\SkiaSharp.Views.Interop.UWP.dll" />
|
||||
<None Include="..\..\..\output\native\uwp\x86\SkiaSharp.Views.Interop.UWP.dll" Link="nuget\runtimes\win10-x86\nativeassets\uap10.0\SkiaSharp.Views.Interop.UWP.dll" />
|
||||
<None Include="..\..\..\output\native\uwp\arm\SkiaSharp.Views.Interop.UWP.dll" Link="nuget\runtimes\win10-arm\nativeassets\uap10.0\SkiaSharp.Views.Interop.UWP.dll" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\SkiaSharp.Views.Shared\**\*.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче