0

我正在编写一个 Windows Store 应用程序,我想知道是否可以禁止生成包含 Microsoft 代码的“Common”文件夹,我不需要。

有任何想法吗?

干杯

4

1 回答 1

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 模板(或使用的任何机制)来生成代码更简单且更不易碎。

于 2012-12-04T21:06:56.113 回答