Skip to content

Designer can't load assembly in VS 2022 for .NET Framework #4226

Answered by RayCarrot
RayCarrot asked this question in Q&A
Discussion options

You must be logged in to vote

After a bunch of testing I figured out it apparently only happens in projects where I use Costura.Fody. As soon as I remove its reference (or simply remove it from the FodyWeavers.xml file) then it works fine.
It's also worth noting that if I include the resource dictionaries directly in the xaml file I'm editing then the designer loads them fine. It only gives me an error when they're only defined in my app.xaml.
I'm at a bit of a loss about what to do though since I never experienced this issue before. I still believe it's related to VS22 since it started around the time I upgraded. I tried downgrading Costura to see if it was an update there which broke it, but that made no difference.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RayCarrot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants