Skip to content
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

Fix assembly lookup for type reference (IIDOptimizer) #979

Merged
merged 8 commits into from
Sep 2, 2021

Conversation

j0shuams
Copy link
Contributor

@j0shuams j0shuams commented Aug 28, 2021

WinAppSDK 0.8.2 had a regression because of an issue with the IIDOptimizer. When adding a type reference in the IL, the wrong assembly was used to lookup the definition (e.g. it was failing to find a type in Microsoft.WinUI.dll that was really in WinRT.Runtime.dll).

To test this fix, I have added a sample app that uses the Windows App SDK. This is a good to have for future testing of WinUI/WinApp bugs. I took out the sample app as it required updating the ObjectLifetimeTests to a newer Reunion version, and that caused a lot of headaches. I will add the sample app as part of the work here - #778.

Fixes #971

@manodasanW
Copy link
Member

Consider removing the cache file as it is a binary file and probably want to remove the pfx file too.

@j0shuams
Copy link
Contributor Author

j0shuams commented Sep 2, 2021

Using private ProjectReunion build, verified the fix works on both net5 and net6 apps -- including Ready2Run scenarios / Publish

@j0shuams j0shuams merged commit 6354547 into master Sep 2, 2021
@j0shuams j0shuams deleted the jlarkin/iidfix branch September 2, 2021 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeInitializationException in PointCollection regression in 0.8.2
2 participants