Windows 8 Windows应用商店应用程序:抑制";普通的;文件夹生成?

Windows 8 Windows应用商店应用程序:抑制";普通的;文件夹生成?,windows-8,windows-runtime,windows-store-apps,Windows 8,Windows Runtime,Windows Store Apps,我正在编写一个Windows应用商店应用程序,我想知道是否有可能禁止生成包含Microsoft代码的“公共”文件夹,我不需要它 有什么想法吗 CheersCommon包含StandardStyles.xaml,每个App.xaml: <!-- Styles that define common aspects of the platform look and feel Required by Visual Studio project and item templates --&

我正在编写一个Windows应用商店应用程序,我想知道是否有可能禁止生成包含Microsoft代码的“公共”文件夹,我不需要它

有什么想法吗


Cheers

Common包含StandardStyles.xaml,每个App.xaml:

<!-- 
  Styles that define common aspects of the platform look and feel
  Required by Visual Studio project and item templates
-->
<ResourceDictionary Source="Common/StandardStyles.xaml"/>

在StandardStyles.xaml中:

<!--
    This file contains XAML styles that simplify application development.

    These are not merely convenient, but are required by most Visual Studio project and item templates.
    Removing, renaming, or otherwise modifying the content of these files may result in a project that
    does not build, or that will not build once additional pages are added.  If variations on these
    styles are desired it is recommended that you copy the content under a new name and modify your
    private copy.
-->


也就是说,如果你确定它不是什么东西,你只需要删除它,这比破解T4模板(或使用任何机制)生成代码更简单、更不脆弱。

问题是,我正在创建一个模块化应用程序,在我的每个模块组件中,我都生成了这个文件夹。真烦人。为什么有N倍的公共文件夹,而不是在一个位置相同的东西?我所寻找的是抑制其生成的选项:)您是否获得了除主应用程序之外的项目类型的公共值?像类库还是Windows运行时组件?我觉得我在这里遗漏了一些东西。是的,我在Windows应用商店应用程序的类库中生成了它,当添加“页面”项时,如果你在类库中获得它,你也会得到一些对页面类的操作至关重要的类(注意,空白页面不会带来公共文件夹)。每个库都是一个单元,但是如果您在不同的库中有页,并且它们不需要不同的公共实现,为什么不使用基本页并将inherits from Page to LayoutWarePage中的类更改为包含一个公共文件实例的程序集的范围?我明白你的意思,但似乎有10%的情况,不难克服?