mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fixed release builds 2
This commit is contained in:
@@ -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