Explorar o código

Change debug and release configuration

Ruben hai 5 meses
pai
achega
0eb0d6633b

+ 17 - 1
src/PicView.Avalonia.MacOS/PicView.Avalonia.MacOS.csproj

@@ -44,7 +44,23 @@
   <PropertyGroup Condition="'$(Platform)' == 'arm64'">
   <PropertyGroup Condition="'$(Platform)' == 'arm64'">
     <PlatformTarget>ARM64</PlatformTarget>
     <PlatformTarget>ARM64</PlatformTarget>
   </PropertyGroup>
   </PropertyGroup>
-  
+
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|arm64' ">
+    <DebugType>full</DebugType>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
+    <DebugType>full</DebugType>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|arm64' ">
+    <DebugType>none</DebugType>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
+    <DebugType>none</DebugType>
+  </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\PicView.Avalonia\PicView.Avalonia.csproj" />
     <ProjectReference Include="..\PicView.Avalonia\PicView.Avalonia.csproj" />

+ 16 - 3
src/PicView.Avalonia.Win32/PicView.Avalonia.Win32.csproj

@@ -23,9 +23,6 @@
     <StartupObject>PicView.Avalonia.Win32.Program</StartupObject>
     <StartupObject>PicView.Avalonia.Win32.Program</StartupObject>
     <LangVersion>preview</LangVersion>
     <LangVersion>preview</LangVersion>
   </PropertyGroup>
   </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
-    <DebugType>none</DebugType>
-  </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <AvaloniaResource Include="icon.ico">
     <AvaloniaResource Include="icon.ico">
       <CopyToOutputDirectory>Never</CopyToOutputDirectory>
       <CopyToOutputDirectory>Never</CopyToOutputDirectory>
@@ -40,6 +37,22 @@
     <PlatformTarget>ARM64</PlatformTarget>
     <PlatformTarget>ARM64</PlatformTarget>
   </PropertyGroup>
   </PropertyGroup>
 
 
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|arm64' ">
+    <DebugType>full</DebugType>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
+    <DebugType>full</DebugType>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|arm64' ">
+    <DebugType>none</DebugType>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
+    <DebugType>none</DebugType>
+  </PropertyGroup>
+
   <ItemGroup>
   <ItemGroup>
     <PackageReference Include="Clowd.Clipboard.Avalonia" Version="1.1.4" />
     <PackageReference Include="Clowd.Clipboard.Avalonia" Version="1.1.4" />
   </ItemGroup>
   </ItemGroup>

+ 17 - 7
src/PicView.Avalonia/PicView.Avalonia.csproj

@@ -15,15 +15,9 @@
     <TrimmerRemoveSymbols>true</TrimmerRemoveSymbols>
     <TrimmerRemoveSymbols>true</TrimmerRemoveSymbols>
     <OptimizationPreference>Speed</OptimizationPreference>
     <OptimizationPreference>Speed</OptimizationPreference>
     <HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
     <HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
-    <IsAotCompatible>False</IsAotCompatible>
-    <IsTrimmable>True</IsTrimmable>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
     <IsAotCompatible>True</IsAotCompatible>
     <IsAotCompatible>True</IsAotCompatible>
     <IsTrimmable>True</IsTrimmable>
     <IsTrimmable>True</IsTrimmable>
-	  <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
+    <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup Label="Avalonia">
   <PropertyGroup Label="Avalonia">
     <AvaloniaXamlIlDebuggerLaunch>False</AvaloniaXamlIlDebuggerLaunch>
     <AvaloniaXamlIlDebuggerLaunch>False</AvaloniaXamlIlDebuggerLaunch>
@@ -38,6 +32,22 @@
     <PlatformTarget>ARM64</PlatformTarget>
     <PlatformTarget>ARM64</PlatformTarget>
   </PropertyGroup>
   </PropertyGroup>
 
 
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|arm64' ">
+    <DebugType>full</DebugType>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
+    <DebugType>full</DebugType>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|arm64' ">
+    <DebugType>none</DebugType>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
+    <DebugType>none</DebugType>
+  </PropertyGroup>
+
   
   
   <ItemGroup>
   <ItemGroup>
     <AvaloniaResource Include="Assets\**" />
     <AvaloniaResource Include="Assets\**" />

+ 3 - 2
src/PicView.Core/PicView.Core.csproj

@@ -6,12 +6,13 @@
     <Platforms>x64;arm64</Platforms>
     <Platforms>x64;arm64</Platforms>
     <LangVersion>preview</LangVersion>
     <LangVersion>preview</LangVersion>
   </PropertyGroup>
   </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug*'">
     <IsAotCompatible>True</IsAotCompatible>
     <IsAotCompatible>True</IsAotCompatible>
     <IsTrimmable>True</IsTrimmable>
     <IsTrimmable>True</IsTrimmable>
     <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
     <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
+    <DebugSymbols>True</DebugSymbols>
   </PropertyGroup>
   </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release*'">
     <IsAotCompatible>True</IsAotCompatible>
     <IsAotCompatible>True</IsAotCompatible>
     <IsTrimmable>True</IsTrimmable>
     <IsTrimmable>True</IsTrimmable>
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>