locked
XAML designer is unable to see namespace (VS2012 and Blend too)

    Question

  • I have working solution one one computer, this solution even show me my namespaces in XAML designer code IntelliSense when I start "xmlns" typing

    But after move app on second computer (same path) I am in situation when this don't work and XAML designer don't want display XAML because "some custome element have not been build yet" as I have design time binding.

    Situation :

    - solution built and run (Native / Mixed , x86 for Local and also for Simulator) ok

    - one root namespace "A" where is MainPage and under it I have A.Data namespace where data binding classes resides

    - #include with .h which defines "A.Data" is in main page .cpp and .h files

    - in Debug folder I have A.winmd file, I can see A.Data namespace

    - Vs2012 loads A.winmd file correctly (verified with Process Monitor)

    but XAML designer is still unable to load namespace (or included classes) :-(((

    Friday, August 31, 2012 10:54 AM

Answers

  • I found it - designer is running under different user token and thus don't see subst/mapped drives from user.
    • Marked as answer by Radek Voltr cz Monday, November 05, 2012 5:36 PM
    Monday, November 05, 2012 5:36 PM

All replies

  • Hi,

    Did you set DependentUpon property in vcxproj file?
    Right Click your project->Unload Project, Right Click again->Edit your project name.vcxproj

    You should add it like this
      <ItemGroup>
        <ClInclude Include="pch.h" />
        <ClInclude Include="App.xaml.h">
            <DependentUpon>App.xaml</DependentUpon>
        </ClInclude>
        <ClInclude Include="MainPage.xaml.h">
            <DependentUpon>MainPage.xaml</DependentUpon>
        </ClInclude>
      </ItemGroup>

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Monday, September 03, 2012 8:57 AM
  • Hi

    I didn't set this but I have it set so this is not this case :-(

    Monday, September 03, 2012 7:23 PM
  • I found it - designer is running under different user token and thus don't see subst/mapped drives from user.
    • Marked as answer by Radek Voltr cz Monday, November 05, 2012 5:36 PM
    Monday, November 05, 2012 5:36 PM