如何在wix安装项目中停止生成wixpdb文件?

时间:2017-12-06 06:49:06

标签: wix wix3

是否有任何配置可用于停止生成wixpdb文件。 由于我们在部署期间不需要该文件。

3 个答案:

答案 0 :(得分:4)

请参阅灯光构建任务中的SuppressPdbOutput设置:

+---------+-------+---------------------+-----------+
| item_id | count |        date         | diffCount |
+---------+-------+---------------------+-----------+
|       0 |    20 | 02.11.2017 00:00:00 |        10 |
|       0 |    30 | 03.11.2017 00:00:00 |        10 |
|       0 |    40 | 04.11.2017 00:00:00 |        10 |
|       1 |    20 | 02.11.2017 00:00:00 |         5 |
|       1 |    25 | 03.11.2017 00:00:00 |         5 |
|       1 |    30 | 04.11.2017 00:00:00 |         5 |
|       2 |    22 | 02.11.2017 00:00:00 |        20 |
|       2 |    42 | 03.11.2017 00:00:00 |        20 |
|       2 |    62 | 04.11.2017 00:00:00 |        20 |
|       3 |   101 | 02.11.2017 00:00:00 |         1 |
|       3 |   102 | 03.11.2017 00:00:00 |         1 |
|       3 |   103 | 04.11.2017 00:00:00 |         1 |
+---------+-------+---------------------+-----------+

答案 1 :(得分:3)

右键单击“ Wix项目”,然后转到“属性”, 构建→输出→(检查)禁止wixpdb文件的输出

enter image description here

答案 2 :(得分:1)

只需在.wixproj文件中添加以下内容即可。

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
     <OutputPath>bin\$(Configuration)\</OutputPath>
     <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
     <-- Just Add below line to avoid generation of wixpdb file -->
     <SuppressPdbOutput>true</SuppressPdbOutput>
</PropertyGroup>