preview of UserControls not working in a class library | The element "foo" could not be displayed due to missing assemblies

  • Thread starter Thread starter D.Jonas
  • Start date Start date
D

D.Jonas

Guest
I have a UWP solution with three projects:

App1 ,ClassLibrary1 and ClassLibrary2

In the App1 and ClassLibraries are each with a custom UserControl. While it's possible to get a preview (of the UserControls) in the designer of the the App1.Page1, the preview in ClassLibrary1.Page1 is not working.

I always get the following error message: The element "foo" could not be displayed due to missing assemblies


View: https://i.imgur.com/JuInWnu.png



View: https://i.imgur.com/iEA3yBQ.png



ErrorMessage:

View: https://i.imgur.com/XlFF4rb.png



Solution file:

files.dominic-jonas.de/stackoverflow/App1.zip


The following steps I tried so far (without success):

  • clean solution
  • rebuild project
  • deleted cache
  • dotnet clean
  • dotnet restore
  • restarted windows
  • updated VisualStudio (v16.6.0) and tried v16.7.0 preview 1

Anyone know how I can get the preview fixed?


As my account is not verified, I cannot post the images..


Thanks!

Continue reading...
 
Back
Top