title: UWP Initialize components not recognised after clean System.Xaml could not be found
body: <p>So I got a problem with my UWP project after I <strong>cleaned</strong> my project... The <code>InitializeComponent()</code> method was no longer recognized and found by Visual Studio, so I was not able to build and so on... <br><br>
  I've been searching the whole day and did'nt find anything helpfull... Also the error message was a charm...<br><br>
  So these where the steps I made before I got the error:<br></p>
  
  <ul>
  <li> Wrote some XAML in the XAML-Designer</li>
  <li> Accidentally cleaned the solution instead of building it</li>
  <li> Then built it</li>
  </ul>
  
  <p>→ The project could not be built because <b>System.Xaml</b> was missing and if I missed an assembly reference... but I never used System.Xaml never and did nether change the references in code file nor did I change the project references<br><br></p>
  
  <p>The question was <strong>"How to solve this problem?"</strong></p>
  
  <p>So after searching and analyzing the project I noticed that <strong>there was a reference</strong> to a project in my project references which I've never seen before... It was something like <strong>Presentation</strong>...</p>
  
  <p>So the solution was to remove this reference and build the project then it worked so if you get this error the only reference you need for it is <strong>UniversalWindows</strong> and maybe the <code>Microsoft.NetCore.UniversalWindowsPlatform</code> NuGet package.</p>
  
  <p>So remove all and just leave those... If the error disappears add the missing references again... 
  Hopefully this works for you too.</p>