Windows 通用平台应用程序的文件结构

File Structure of Windows Universal Platforms Apps

我来自 Android 开发背景,正在考虑 Window 应用程序中的文件结构到底是什么?

The file Structure in Android having Res,Manifests,Activities,and so on is pretty clear to me, I was thinking it will be cool if anyone can explain windows app using those terminologies

我总结了一些东西

Windows in android is..

xaml is .xml

Page is Activity

Asset is Res

欢迎光临! :-)

在您的 Windows 应用程序中,您将拥有一个 :

  • XAML 页面 .xaml 这是您应用程序的设计/ UI .. 可以定义连同 .cs 文件 =>

  • XAML 页面有一个 代码隐藏 如果您使用的是 C#,它就是 .cs 文件。

  • Any Image/ ICON/ JSON/ SQL/ File/ Anything actually can save it on your app path in your project and you can't add files to this运行时的路径 .. 但是你有本地存储 'ApplicationData' 命名空间 .. 所有这些东西都可以称为 Assets .

请在 Windows 的开发中心查看本指南: https://msdn.microsoft.com/en-us/library/windows/apps/dn894631.aspx

更新:

  • 在每个应用程序中,我们都有一个叫做 'Package.appxmanifest' 的东西,您可以编辑与应用程序和视觉/声明/功能和包装..应用名称/语言/外观屏幕通知/磁贴更新..

  • 您始终可以通过单击 'References' 添加参考/图书馆并浏览到您的参考路径,它可以从在线'NuGet' .

  • 最后,我们有项目的属性,例如构建/调试设置、目标 .NET 版本等

就这些了!