mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixed release builds 2
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user