11---
22Order : 3
33Title : CCG0003
4- Description : PackageIcon points to wrong place
4+ Description : PackageIcon can not be updated
55---
66
7- > PackageIcon points to wrong place
7+ > The PackageIcon source (path/to/icon.jpeg) has an extension of jpeg. It can not be set from the CakeContrib-Icon.
88
99<!-- START doctoc generated TOC please keep comment here to allow auto update -->
1010<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
@@ -19,16 +19,27 @@ Description: PackageIcon points to wrong place
1919
2020## Cause
2121
22- This warning is raised, when ` PackageIcon ` does not point to the copied icon.
23- (I.e. ` PackageIcon ` is not equal to ` $(CakeContribGuidelinesIconDestinationLocation) ` )
22+ This warning/error is raised, when the source of ` PackageIcon ` was outdated
23+ but could not be updated.
2424
2525## Description
2626
27- Since the correct icon is copied to ` $(CakeContribGuidelinesIconDestinationLocation) ` it is expected, that this icon is packaged into the nupkg.
27+ The default package icon is a ` png ` and will be used to update outdated icons.
28+ If a different icon format than ` png ` is used, simply updating that icon with a
29+ ` png ` content will break the icon.
30+
31+ If a ` PackageIcon ` is set, but no corresponding icon reference could be
32+ found, a reference should be added automatically. However, if ` PackageIcon `
33+ is not set to a ` png ` file, such reference would not be possible.
34+ In this case ` CCG0003 ` is an error and will break the build.
35+
36+ If a ` PackageIcon ` is set with a corresponding icon reference but not to
37+ a ` png ` file, a test whether the icon is up-to-date is not possible.
38+ In this case ` CCG0003 ` is a warning .
2839
2940## How to fix violations
3041
31- Modify ` PackageIcon ` to point to the same place as ` $(CakeContribGuidelinesIconDestinationLocation) ` .
42+ Modify ` PackageIcon ` to point to a ` png ` file or remove the custom file entirely .
3243
3344## Related guidelines
3445
0 commit comments