-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 Missing Resources Exception leading to VS Designer crash #4310
Fix Missing Resources Exception leading to VS Designer crash #4310
Conversation
It just takes up too much space in the DLL's size.
The "EmbeddedResourceUseDependentUponConvention" does not automatically nest the generated sources to its parent files.
This leads to embedded resources being not found and the VS Designer crashes
Since, we only use the same Root Namespace for all controls, we don't need to specify them.
Thanks Nirmal4G for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
92cb60f
to
c5d4a5b
Compare
@michael-hawker All done. The Designer no longer crashes for me in both VS16 and VS17 IDEs. Can you check and confirm? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with the Layout package in a VS 2019 file new project. Was failing with 7.1, updated package and worked great. Thanks @Nirmal4G for figuring this out! 🦙❤
@XAML-Knight want to test this out with another package or two on your side? I didn't check about hot reload failing with 7.1, but was working fine with the new layout package.
Bug fix confirmed. Was only able to repro XAML Hot reload VS crash once (VS 2019, 16.11.3, x86).
|
Fixes #4279
In addition to fixing the incorrect
RootNamespace
, Icon naming is simplified andEmbeddedResource
items will now properly nest the generated sources.See individual commit info more details.
PR Type
What kind of change does this PR introduce?
What is the current behavior?
VS Designer crashes due to missing resources. The actual problem is that the
RootNamespace
is wrong and it generates incorrect manifest. This leads to missing resources whenResourceManager
tries to resolve the embedded files.What is the new behavior?
Fixed the Namespace to use correct the
RootNamspace
both in sources and in project files.PR Checklist
Please check if your PR fulfills the following requirements:
Other information
rebase
on latestHEAD
and then commit, without updating from the latestHEAD
.Merge pull request #xxxx from repo/branch
, and commit message to either PR message or messages of individual commits. Theauto-merge
bot does this by default.