UWP Value cannot be null. Parameter name: path1
<p>I am creating a blank UWP using Visual Studio 2015</p>

<p>I am getting the following errors every time i try to build </p>

<pre><code>Error   CS1061  'MainPage' does not contain a definition for 'InitializeComponent' and no extension method 'InitializeComponent' accepting a first argument of type 'MainPage' could be found (are you missing a using directive or an assembly reference?)


Error       Value cannot be null.
Parameter name: path1
</code></pre>

<p><a href="https://i.stack.imgur.com/c4kTT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c4kTT.png" alt="enter image description here"></a></p>

<p>I tried uninstalling the windows software developement kit then installing it with no luck</p>

<p>I had a working project but now it's giving the same error</p>

<p>The targets in the .csproj are as following </p>

<pre><code>&lt;TargetPlatformVersion&gt;10.0.14393.0&lt;/TargetPlatformVersion&gt;
&lt;TargetPlatformMinVersion&gt;10.0.14393.0&lt;/TargetPlatformMinVersion&gt;
</code></pre>