-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET 5 SDK produces broken WPF 3.1 app when trimming and R2R are both enabled #14260
Comments
Created a separate issue for the |
Dup of dotnet/wpf#3811 |
I don't think this is a dupe of trimming issues alone. Note this in the original issue:
The fact that just trimming or just R2R alone doesn't break the app means that it's only the combination of the two which is problematic - which is something we should try to understand I think. |
If the app works when trimmed, then fails after R2R, that sounds like R2R would be the first place to look. Do you agree? |
Could be - granted this is on .NET 5 - not sure how much priority we want to give to it. (On 6 even the trimmed app breaks and now we actually produce a warning, so the experience is very different). |
.NET 6 also uses crossgen2 instead, so this doesn't sound like a high priority. |
Still occurs at .NET 5 for me, if publish by enable |
Create a WPF template app for
netcoreapp3.1
"Running the app will not have any visible effect (no window appears). Checking event log shows that there was an exception in the process, but no details. Attaching a debugger shows that there was a failure to load one of the diag assemblies which eventually leads to the process crashing.
Enabling R2R warnings shows:
This was done with:
Doing the same with 3.1.403 SDK works - the app will start just fine. Note though that R2R reports MANY more warnings.
Note:
Doing the same for
net5.0
also breaks but it seems to be for a slightly different reason - in the 5.0 case just trimming the app (without R2R) breaks the app.The text was updated successfully, but these errors were encountered: