[wix-users] Using WixCop

Phill Hogland phill.hogland at rimage.com
Sat Oct 24 14:46:49 PDT 2015


I have been reading and experimenting with WixCop (in the context of using it to validate source checked into multiple build servers).

The docs give examples of targeting only a .wxs file.

1)      Is there an example 'setting file' that matches the style of the Wix Toolset source?
I ask this because when I look at a wix toolset source file like Setup\Bundle\Bundle.wxs the namespace attributes are formatted in a vertical column.
The Bundle element is also formatted on multiple lines (with some lines having multiple attributes).  I have created my projects following this style.
Yet when I run WixCop it crunches everything onto a single line.  I could get used to this, but I would prefer to use the same as the Wix Toolset source so that if I submit a change I am doing the same as would be expected in the Pull request.


2)      Should I target other types of files with WixCop like wxl or wxi, or even MSBuild project files (.wixproj)?

At this point I am not trying to change major versions of Wix Toolset, but I figured in preparation for experimenting with 4.x, I wanted to understand what WixCop was going to do to my Wix 3.10 files.

Thanks for any advice.
Phill


More information about the wix-users mailing list