This error seems to be posted all over the place but each one seems to have its own solution, none of which solved my problem.
I am getting an error for a Resource D
it's an old question but, the problem comes from the .csproj. Be sure the "page" element is defined before the "compile" element in the "itemgroup" section.
Good :
<ItemGroup>
...
<Page Include="ScreenComponents\StatusBar.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Compile Include="ScreenComponents\StatusBar.xaml.cs">
<DependentUpon>StatusBar.xaml</DependentUpon>
</Compile>
…
Not good :
<ItemGroup>
...
<Compile Include="ScreenComponents\StatusBar.xaml.cs">
<DependentUpon>StatusBar.xaml</DependentUpon>
</Compile>
<Page Include="ScreenComponents\StatusBar.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
…
regards,