I don't know if this is the final solution, but it seems to work so far:
- Open csproj file with Notepad
- Search App.xaml and App.xaml.cs. Make sure that every link to this file has the same case. These files were called App.xaml and App.xaml.cs, so I left such links.
I used to have something like this:
<Compile Include="app.xaml.cs"> <DependentUpon>App.xaml</DependentUpon> <SubType>Code</SubType> </Compile>
So, I changed it, and now this:
<Compile Include="app.xaml.cs"> <DependentUpon>App.xaml</DependentUpon> <SubType>Code</SubType> </Compile>
Another thing I did was to find BootstrapperPackage and remove old versions of the .Net Framework, although I don't think it is a good idea if your project uses libraries that depend on older versions of .Net. I am not sure if this was causing the problem either.
source share