Closed Nora-Zhou01 closed 8 months ago
@Nora-Zhou01 can you please copy this one to the designer - I think we're most likely dealing with this error when we launch the server process, rather than doing something in the runtime. You can close this one when you're done. It might be interesting to also test what happens in WPF apps when this is turned on.
@merriemcgaw Filed issue 5827 to track it ,this issue cannot be reproduced in WPF project.
.NET version
.NET 9.0.100-preview.3.24128.12
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
It doesn't repro on .NET 7.0, repro from .NET 8.0 to .NET 9.0.
Issue description
An error occurred in the design interface after addingtrue to the .csproj file
Call stack:
https://github.com/dotnet/winforms/assets/104609169/62ac4311-c81a-482f-9e74-56218398cad6
Expected result:
https://github.com/dotnet/winforms/assets/104609169/e9635126-cd65-42ed-aa1a-09cc7fc3c817
Steps to reproduce
<PublishAot>true</PublishAot>
More info:
The error is different in .NET8.0 project Exception Message: