tag does not exist in XML namespace

后端 未结 7 1240
闹比i
闹比i 2021-01-03 22:34

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

相关标签:
7条回答
  • 2021-01-03 22:57

    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,

    0 讨论(0)
提交回复
热议问题