Add built-in ThumbnailViewer plugin

This commit is contained in:
ema
2025-07-05 04:22:25 +08:00
parent 3de93386cc
commit f99a786510
13 changed files with 508 additions and 20 deletions

View File

@@ -124,7 +124,7 @@
<DEVICE_TYPES>裝置類型</DEVICE_TYPES>
<APP_MIN_API_VERSION>最低支援 API 版本</APP_MIN_API_VERSION>
<APP_TARGET_API_VERSION>目標 API 版本</APP_TARGET_API_VERSION>
<COMPILE_SDK_VERSION>編譯 SDK 版本</COMPILE_SDK_VERSION>
<COMPILE_SDK_VERSION>編譯 SDK 版本</COMPILE_SDK_VERSION>
<ARCHITECTURE>架構</ARCHITECTURE>
<MAINTAINER>維護者</MAINTAINER>
<DESCRIPTION>描述</DESCRIPTION>

View File

@@ -20,13 +20,50 @@ using System;
using System.IO;
using System.Reflection;
using System.Text;
using System.Windows;
using System.Windows.Media.Imaging;
namespace QuickLook.Plugin.ImageViewer;
internal class Helper
internal static class Helper
{
public static void DpiHack(BitmapSource img)
public static BitmapSource InvertColors(this BitmapSource source)
{
WriteableBitmap writableBitmap = new(source);
writableBitmap.Lock();
nint pBackBuffer = writableBitmap.BackBuffer;
int stride = writableBitmap.BackBufferStride;
int width = writableBitmap.PixelWidth;
int height = writableBitmap.PixelHeight;
int bytesPerPixel = (writableBitmap.Format.BitsPerPixel + 7) / 8;
unsafe
{
byte* pPixels = (byte*)pBackBuffer;
for (int y = 0; y < height; y++)
{
Span<byte> row = new(pPixels + y * stride, width * bytesPerPixel);
for (int x = 0; x < width; x++)
{
int index = x * bytesPerPixel;
row[index] = (byte)(255 - row[index]);
row[index + 1] = (byte)(255 - row[index + 1]);
row[index + 2] = (byte)(255 - row[index + 2]);
}
}
}
writableBitmap.AddDirtyRect(new Int32Rect(0, 0, width, height));
writableBitmap.Unlock();
return writableBitmap;
}
public static void DpiHack(this BitmapSource img)
{
// a dirty hack... but is the fastest

View File

@@ -102,7 +102,24 @@
Content="&#xE8C8;"
Style="{StaticResource CaptionButtonStyle}"
Visibility="{Binding ElementName=imagePanel, Path=CopyIconVisibility}" />
<Button x:Name="buttonSaveAs"
Width="24"
Height="24"
Margin="0,8,8,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Content="&#xE792;"
Style="{StaticResource CaptionButtonStyle}"
Visibility="{Binding ElementName=imagePanel, Path=SaveAsVisibility}" />
<Button x:Name="buttonReverseColor"
Width="24"
Height="24"
Margin="0,8,8,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Content="&#xE746;"
Style="{StaticResource CaptionButtonStyle}"
Visibility="{Binding ElementName=imagePanel, Path=ReverseColorVisibility}" />
<Button x:Name="buttonMeta"
Width="24"
Height="24"
@@ -110,7 +127,6 @@
Content="&#xE946;"
Style="{StaticResource CaptionButtonStyle}"
Visibility="{Binding ElementName=imagePanel, Path=MetaIconVisibility}" />
<Button x:Name="buttonBackgroundColour"
Width="24"
Height="24"
@@ -119,7 +135,6 @@
Style="{StaticResource CaptionButtonStyle}"
Visibility="{Binding ElementName=imagePanel, Path=BackgroundVisibility}" />
</StackPanel>
<TextBlock x:Name="textMeta"
Margin="0,40,8,0"
Padding="5,5,5,5"

View File

@@ -15,6 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using Microsoft.Win32;
using QuickLook.Common.Annotations;
using QuickLook.Common.ExtensionMethods;
using QuickLook.Common.Helpers;
@@ -23,6 +24,7 @@ using QuickLook.Plugin.ImageViewer.NativeMethods;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
@@ -47,9 +49,7 @@ public partial class ImagePanel : UserControl, INotifyPropertyChanged, IDisposab
private bool _isZoomFactorFirstSet = true;
private DateTime _lastZoomTime = DateTime.MinValue;
private double _maxZoomFactor = 3d;
private Visibility _copyIconVisibility = Visibility.Visible;
private MetaProvider _meta;
private Visibility _metaIconVisibility = Visibility.Visible;
private double _minZoomFactor = 0.1d;
private BitmapScalingMode _renderMode = BitmapScalingMode.Linear;
private bool _showZoomLevelInfo = true;
@@ -60,6 +60,11 @@ public partial class ImagePanel : UserControl, INotifyPropertyChanged, IDisposab
private double _zoomToFitFactor;
private bool _zoomWithControlKey;
private Visibility _copyIconVisibility = Visibility.Visible;
private Visibility _saveAsVisibility = Visibility.Collapsed;
private Visibility _reverseColorVisibility = Visibility.Collapsed;
private Visibility _metaIconVisibility = Visibility.Visible;
public ImagePanel()
{
InitializeComponent();
@@ -68,6 +73,10 @@ public partial class ImagePanel : UserControl, INotifyPropertyChanged, IDisposab
buttonCopy.Click += OnCopyOnClick;
buttonSaveAs.Click += OnSaveAsOnClick;
buttonReverseColor.Click += OnReverseColorOnClick;
buttonMeta.Click += (sender, e) =>
textMeta.Visibility = textMeta.Visibility == Visibility.Collapsed
? Visibility.Visible
@@ -153,16 +162,6 @@ public partial class ImagePanel : UserControl, INotifyPropertyChanged, IDisposab
}
}
public Visibility MetaIconVisibility
{
get => _metaIconVisibility;
set
{
_metaIconVisibility = value;
OnPropertyChanged();
}
}
public Visibility CopyIconVisibility
{
get => _copyIconVisibility;
@@ -173,6 +172,36 @@ public partial class ImagePanel : UserControl, INotifyPropertyChanged, IDisposab
}
}
public Visibility SaveAsVisibility
{
get => _saveAsVisibility;
set
{
_saveAsVisibility = value;
OnPropertyChanged();
}
}
public Visibility ReverseColorVisibility
{
get => _reverseColorVisibility;
set
{
_reverseColorVisibility = value;
OnPropertyChanged();
}
}
public Visibility MetaIconVisibility
{
get => _metaIconVisibility;
set
{
_metaIconVisibility = value;
OnPropertyChanged();
}
}
public Visibility BackgroundVisibility
{
get => _backgroundVisibility;
@@ -307,6 +336,51 @@ public partial class ImagePanel : UserControl, INotifyPropertyChanged, IDisposab
}
}
private void OnSaveAsOnClick(object sender, RoutedEventArgs e)
{
if (_source == null)
{
return;
}
var dialog = new SaveFileDialog()
{
Filter = "PNG Image|*.png",
DefaultExt = ".png",
FileName = Path.GetFileNameWithoutExtension(ContextObject.Title)
};
if (dialog.ShowDialog() == true)
{
try
{
if (File.Exists(dialog.FileName))
{
File.Delete(dialog.FileName);
}
PngBitmapEncoder encoder = new();
encoder.Frames.Add(BitmapFrame.Create(_source));
using FileStream stream = new(dialog.FileName, FileMode.Create, FileAccess.Write);
encoder.Save(stream);
}
catch
{
///
}
}
}
private void OnReverseColorOnClick(object sender, RoutedEventArgs e)
{
if (_source == null)
{
return;
}
Source = _source.InvertColors();
}
private void OnBackgroundColourOnClick(object sender, RoutedEventArgs e)
{
Theme = Theme == Themes.Dark ? Themes.Light : Themes.Dark;

View File

@@ -64,6 +64,12 @@
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.3296.44">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Memory" Version="4.6.3">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.2">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup Condition=" '$(DefineConstants)' != '' and $(DefineConstants.Contains('USESVGSKIA')) ">

View File

@@ -0,0 +1,20 @@
using System.IO;
using System.Windows.Media.Imaging;
namespace QuickLook.Plugin.ThumbnailViewer;
internal static class Helper
{
public static BitmapImage ReadAsBitmapImage(this Stream imageData)
{
imageData.Seek(0U, SeekOrigin.Begin);
BitmapImage bitmap = new();
bitmap.BeginInit();
bitmap.CacheOption = BitmapCacheOption.OnLoad;
bitmap.StreamSource = imageData;
bitmap.EndInit();
bitmap.Freeze();
return bitmap;
}
}

View File

@@ -0,0 +1,98 @@
// Copyright © 2017-2025 QL-Win Contributors
//
// This file is part of QuickLook program.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using QuickLook.Common.Plugin;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media.Imaging;
namespace QuickLook.Plugin.ThumbnailViewer;
public class Plugin : IViewer
{
private static readonly HashSet<string> WellKnownImageExtensions = new(
[
".xd", // AdobeXD
//".xmind", // XMind
//".fig", // Figma
]);
private ThumbnailImagePanel _ip;
public int Priority => 0;
public void Init()
{
}
public bool CanHandle(string path)
{
return !Directory.Exists(path) && WellKnownImageExtensions.Contains(Path.GetExtension(path.ToLower()));
}
public void Prepare(string path, ContextObject context)
{
try
{
using Stream imageData = ProductExtractor.ViewImage(path);
BitmapImage bitmap = imageData.ReadAsBitmapImage();
context.SetPreferredSizeFit(new Size(bitmap.PixelWidth, bitmap.PixelHeight), 0.8d);
}
catch (Exception e)
{
_ = e;
context.PreferredSize = new Size { Width = 1200, Height = 900 };
}
}
public void View(string path, ContextObject context)
{
_ip = new ThumbnailImagePanel
{
ContextObject = context,
};
_ = Task.Run(() =>
{
using Stream imageData = ProductExtractor.ViewImage(path);
BitmapImage bitmap = imageData.ReadAsBitmapImage();
if (_ip is null) return;
_ip.Dispatcher.Invoke(() =>
{
_ip.Source = bitmap;
_ip.DoZoomToFit();
});
context.IsBusy = false;
context.Title = $"{bitmap.PixelWidth}x{bitmap.PixelHeight}: {Path.GetFileName(path)}";
});
context.ViewerContent = _ip;
context.Title = $"{Path.GetFileName(path)}";
}
public void Cleanup()
{
GC.SuppressFinalize(this);
_ip = null;
}
}

View File

@@ -0,0 +1,56 @@
// Copyright © 2017-2025 QL-Win Contributors
//
// This file is part of QuickLook program.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using PureSharpCompress.Archives.Zip;
using PureSharpCompress.Common;
using PureSharpCompress.Readers;
using System;
using System.IO;
namespace QuickLook.Plugin.ThumbnailViewer;
internal static class ProductExtractor
{
public static Stream ViewImage(string path)
{
if (path.EndsWith(".xd", StringComparison.OrdinalIgnoreCase))
{
using ZipArchive archive = ZipArchive.Open(path, new());
using IReader reader = archive.ExtractAllEntries();
while (reader.MoveToNextEntry())
{
if (reader.Entry.Key!.Equals("preview.png", StringComparison.OrdinalIgnoreCase))
{
MemoryStream ms = new();
using EntryStream stream = reader.OpenEntryStream();
stream.CopyTo(ms);
return ms;
}
if (reader.Entry.Key!.Equals("thumbnail.png", StringComparison.OrdinalIgnoreCase))
{
MemoryStream ms = new();
using EntryStream stream = reader.OpenEntryStream();
stream.CopyTo(ms);
return ms;
}
}
}
return null;
}
}

View File

@@ -0,0 +1,50 @@
// Copyright © 2017-2025 QL-Win Contributors
//
// This file is part of QuickLook program.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System.Reflection;
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("QuickLook.Plugin.ThumbnailViewer")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("pooi.moe")]
[assembly: AssemblyProduct("QuickLook.Plugin.ThumbnailViewer")]
[assembly: AssemblyCopyright("Copyright © 2017-2025 QL-Win Contributors")]
[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("b4f7c88d-c79d-49e7-a1fb-fb69cf72585f")]
// 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.*")]

View File

@@ -0,0 +1,92 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net462</TargetFramework>
<RootNamespace>QuickLook.Plugin.ThumbnailViewer</RootNamespace>
<AssemblyName>QuickLook.Plugin.ThumbnailViewer</AssemblyName>
<FileAlignment>512</FileAlignment>
<SignAssembly>false</SignAssembly>
<UseWPF>true</UseWPF>
<LangVersion>latest</LangVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<ProjectGuid>{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}</ProjectGuid>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Build\Debug\QuickLook.Plugin\QuickLook.Plugin.ThumbnailViewer\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\Build\Release\QuickLook.Plugin\QuickLook.Plugin.ThumbnailViewer\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<OutputPath>..\..\Build\Debug\QuickLook.Plugin\QuickLook.Plugin.ThumbnailViewer\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>..\..\Build\Release\QuickLook.Plugin\QuickLook.Plugin.ThumbnailViewer\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="PureSharpCompress" Version="0.40.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Memory" Version="4.6.3">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.2">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\QuickLook.Common\QuickLook.Common.csproj">
<Project>{85FDD6BA-871D-46C8-BD64-F6BB0CB5EA95}</Project>
<Name>QuickLook.Common</Name>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\QuickLook.Plugin.ImageViewer\QuickLook.Plugin.ImageViewer.csproj">
<Project>{FE5A5111-9607-4721-A7BE-422754002ED8}</Project>
<Name>QuickLook.Plugin.ImageViewer</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<Target Name="ReduceReleasePackaging" AfterTargets="Build" Condition="'$(Configuration)' == 'Debug'">
<Delete Files="$(OutputPath)\QuickLook.Plugin.HtmlViewer.dll" Condition="Exists('$(OutputPath)\QuickLook.Plugin.HtmlViewer.dll')" />
<Delete Files="$(OutputPath)\QuickLook.Plugin.HtmlViewer.pdb" Condition="Exists('$(OutputPath)\QuickLook.Plugin.HtmlViewer.pdb')" />
<Delete Files="$(OutputPath)\lib*.dll" />
<RemoveDir Directories="$(OutputPath)\runtimes" Condition="Exists('$(OutputPath)\runtimes')" />
</Target>
<ItemGroup>
<Compile Include="..\..\GitVersion.cs">
<Link>Properties\GitVersion.cs</Link>
</Compile>
</ItemGroup>
</Project>

View File

@@ -0,0 +1,24 @@
// Copyright © 2017-2025 QL-Win Contributors
//
// This file is part of QuickLook program.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using QuickLook.Plugin.ImageViewer;
namespace QuickLook.Plugin.ThumbnailViewer;
public class ThumbnailImagePanel : ImagePanel
{
}

View File

@@ -54,6 +54,7 @@ Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "QuickLook.Installer", "Quic
{EB7D1F10-6E04-4F7E-96A0-4E18359FBD30} = {EB7D1F10-6E04-4F7E-96A0-4E18359FBD30}
{88B6FFC8-AD86-41D9-B03D-BD83886CFC18} = {88B6FFC8-AD86-41D9-B03D-BD83886CFC18}
{63C00175-0FF3-42C7-8621-2F1959F26064} = {63C00175-0FF3-42C7-8621-2F1959F26064}
{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F} = {B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QuickLook.Native64", "QuickLook.Native\QuickLook.Native64\QuickLook.Native64.vcxproj", "{794E4DCF-F715-4836-9D30-ABD296586D23}"
@@ -80,6 +81,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickLook.Plugin.OfficeView
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickLook.Plugin.ELFViewer", "QuickLook.Plugin\QuickLook.Plugin.ELFViewer\QuickLook.Plugin.ELFViewer.csproj", "{63C00175-0FF3-42C7-8621-2F1959F26064}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickLook.Plugin.ThumbnailViewer", "QuickLook.Plugin\QuickLook.Plugin.ThumbnailViewer\QuickLook.Plugin.ThumbnailViewer.csproj", "{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -256,6 +259,14 @@ Global
{63C00175-0FF3-42C7-8621-2F1959F26064}.Release|Any CPU.Build.0 = Release|Any CPU
{63C00175-0FF3-42C7-8621-2F1959F26064}.Release|x64.ActiveCfg = Release|Any CPU
{63C00175-0FF3-42C7-8621-2F1959F26064}.Release|x64.Build.0 = Release|Any CPU
{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}.Debug|x64.ActiveCfg = Debug|Any CPU
{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}.Debug|x64.Build.0 = Debug|Any CPU
{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}.Release|Any CPU.Build.0 = Release|Any CPU
{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}.Release|x64.ActiveCfg = Release|Any CPU
{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F}.Release|x64.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -279,6 +290,7 @@ Global
{EB7D1F10-6E04-4F7E-96A0-4E18359FBD30} = {06EFDBE0-6408-4B37-BCF2-0CF9EBEA2E93}
{88B6FFC8-AD86-41D9-B03D-BD83886CFC18} = {06EFDBE0-6408-4B37-BCF2-0CF9EBEA2E93}
{63C00175-0FF3-42C7-8621-2F1959F26064} = {06EFDBE0-6408-4B37-BCF2-0CF9EBEA2E93}
{B4F7C88D-C79D-49E7-A1FB-FB69CF72585F} = {06EFDBE0-6408-4B37-BCF2-0CF9EBEA2E93}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D3761C32-8C5F-498A-892B-3B0882994B62}

View File

@@ -111,8 +111,12 @@
<PackageReference Include="UnblockZoneIdentifier" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<!--<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.2" />-->
<!--<PackageReference Include="System.Memory" Version="4.6.3" />-->
<PackageReference Include="System.Memory" Version="4.6.3">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.2">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<!--<PackageReference Include="System.Buffers" Version="4.6.1" />-->
</ItemGroup>