8

如果我在 Visual Studio 2012 Express 中使用“创建空白 C++ XAML 应用程序”,则创建的项目有 18 个文件,源代码超过 25 KB。查看该代码很难区分 Windows 8 应用程序所需的内容和编写的内容,因为负责示例应用程序的经理最近阅读了一些“利维坦企业应用程序的最佳实践模式”一书:)。

所以也许有人知道,可以用 msbuild 编译并显示“hello world”窗口的最小工作 C++ XAML Windows 8 应用程序的源代码是什么?

4

1 回答 1

2

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.

于 2012-08-19T20:21:20.463 回答