Windows应用商店应用:抑制“Common”文件夹生成?

时间:2012-12-04 20:41:34

标签: windows-8 windows-runtime windows-store-apps

我正在编写一个Windows应用商店应用,我想知道是否有可能抑制“Common”文件夹的生成,其中包含来自Microsoft的代码 - 我不需要这些代码。

有什么想法吗?

干杯

1 个答案:

答案 0 :(得分:0)

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模板(或任何使用的机制)更简单,更不易碎。