title: Xamarin: Any universal fix for ContentPage/StackLayout/AnyControl was not found
body: <p>Sometimes I get an error that Nothing in the Xaml-file is not found. This sometimes is fixed by restarting VS, Restore NuGetPackages, re-installing xamarin.forms nuget in combination with clean and removing obj-folders. But this is getting rather tiresome, and non of that works now. </p>
  
  <blockquote>
    <p>The type 'StackLayout' was not found. Verify that you are not missing
    an assembly reference and that all referenced assemblies have been
    built.</p>
  </blockquote>
  
  <p>Is there any universal fix on this or perhaps get a more accurate error message? </p>
  
  <p>As I understand, this has been a problem for a long time with Xamarin forms</p>
  
  <p>Seems to work reasonably well if you make sure the xaml-file´s Build Action is "Embedded resource" and not for example "Page". You can at least build, but you still get Intellisense-errors when you look at the pages</p>
  
  <p>Many thanks in advance</p>