grigoryvp
grigoryvp

Reputation: 42593

Minimal Windows 8 C++ XAML application?

If i used "create blank C++ XAML application" in Visual Studio 2012 Express, the created project has 18 files with more that 25 kilobytes of source code. Looking on that code it's hard to separate what is required for Windows 8 application and what is written just because manager in charge for sample apps read some "best practice patterns for leviathan enterprise apps" book recently :).

So maybe anyone knows, what is the source code of minimum working C++ XAML Windows 8 app that can be compiled with msbuild and displays a "hello world" window?

Upvotes: 8

Views: 701

Answers (1)

user1146887
user1146887

Reputation:

Well, I can tell you from C#, which the folder structure should be similar to C++.

  • Required: Properties -> Holds the Assembly Info.
  • Required: References -> Holds the necessary frameworks for metro & .NET.
  • Optional?: Assets -> Holds the Splash Screen Images & Icons. If you dereference them I guess you can remove them.
  • Optional?: Common -> Holds the Standard XAML Styles. I suppose if you don't need to use them you can remove them.
  • Required: App.xaml -> Handles the startup and management of the W8 App.

Tell me if you can see any of these files in your C++ Project.

Upvotes: 2

Related Questions