In a VS Package (Visual Studio Extensibility), I have a custom extension registered (for ex ".custx") with XamlLanguageService, so that in Visual Studio when the user opens .custx, it opens up in Xaml Designer/editor just like a .xaml file.
However when I compile it as "Page" (BuildAction), the WINFX targets / Compiler errors out with the following error message.
MySample\Page1.custx : error : Markup file is not valid. Specify a source markup file with an .xaml extension.
I am looking for a solution, so that .custx pages compile as page, just like the .xaml pages in a WPF application
Any help is greatly appreciated