1) Create a (C++/CX) "Windows Runtime Component" (let's say "MyComponent") add a namespace call it "XamlStuff" with a "UserControl";
2) Create a (C++/CX) "Blank App (XAML)" Windows Store app and add the "UserControl" to your "MainPage";
3) Build it. And surprise, it doesn't.
The result is that (for some reason) it creates a directory for you XAML called "../Debug/XamlStuff/zzz" in where you will find your XAML stuff. Still while building it will try to find the needed XAML (zzz) IN "../Debug/MyComponent/XamlStuff/...".
What should I do?
1) Just create a directory "../Debug/MyComponent";
2) copy the "zzz" into this new folder;
3) Build it. It just works!
I couldn't find a way to influence the compile/build process to place the XAML resources where it is expecting to find those.
It is OK to do it by hand and once or twice, but every time I do an update, it is annoying. Please fix this thing, else tell me how I influence the compiler/linker/builder to do right thing! (hopefully it will be an easy task...)
Ed.