소스 검색

Fixed release builds 2

Tig 3 달 전
부모
커밋
27f5a2d2ba
3개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      Examples/NativeAot/NativeAot.csproj
  2. 1 1
      Examples/SelfContained/SelfContained.csproj
  3. 5 3
      Terminal.Gui/Configuration/DeepCloner.cs

+ 1 - 1
Examples/NativeAot/NativeAot.csproj

@@ -13,7 +13,7 @@
   </ItemGroup>
 
   <ItemGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
-	  <ProjectReference Include="..\..\Terminal.Gui\Terminal.Gui.csproj" />
+    <PackageReference Include="Terminal.Gui" />
     <TrimmerRootAssembly Include="Terminal.Gui" />
   </ItemGroup>
 

+ 1 - 1
Examples/SelfContained/SelfContained.csproj

@@ -16,7 +16,7 @@
   </ItemGroup>
 
   <ItemGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
-	  <ProjectReference Include="..\..\Terminal.Gui\Terminal.Gui.csproj" />
+    <PackageReference Include="Terminal.Gui" />
     <TrimmerRootAssembly Include="Terminal.Gui" />
   </ItemGroup>
 

+ 5 - 3
Terminal.Gui/Configuration/DeepCloner.cs

@@ -56,9 +56,11 @@ public static class DeepCloner
 
             // If in AOT but source generation failed, throw an exception
             // instead of silently falling back to reflection
-            throw new InvalidOperationException (
-                                                 $"Type {typeof (T).FullName} is not properly registered in SourceGenerationContext " +
-                                                 $"for AOT-compatible cloning.");
+            //throw new InvalidOperationException (
+            //                                     $"Type {typeof (T).FullName} is not properly registered in SourceGenerationContext " +
+            //                                     $"for AOT-compatible cloning.");
+            Logging.Error ($"Type {typeof (T).FullName} is not properly registered in SourceGenerationContext " +
+                          $"for AOT-compatible cloning.");
         }
 
         // Use reflection-based approach, which should have better performance in non-AOT environments