Browse Source

Enable `AllowUnsafeBlocks` in macOS project for unsafe code support

Ruben 1 week ago
parent
commit
19524d0a24
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/PicView.Core.MacOS/PicView.Core.MacOS.csproj

+ 3 - 0
src/PicView.Core.MacOS/PicView.Core.MacOS.csproj

@@ -2,6 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>net10.0</TargetFramework>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     <ImplicitUsings>enable</ImplicitUsings>
     <Nullable>enable</Nullable>
     <Platforms>arm64;x64</Platforms>
@@ -11,7 +12,9 @@
     <TrimmerRemoveSymbols>true</TrimmerRemoveSymbols>
     <OptimizationPreference>Speed</OptimizationPreference>
     <HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
+      
   </PropertyGroup>
+    
 
   <ItemGroup>
     <ProjectReference Include="..\PicView.Core\PicView.Core.csproj" />