You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><ahref="#icon-include-in-project">Icon include in project</a></li>
128
127
</ul>
129
128
</li>
@@ -146,44 +145,35 @@ <h2 id="usage">Usage</h2>
146
145
<p>Using this package automatically enables this guideline.</p>
147
146
<p>With no special settings at all (i.e. "The Standard"):</p>
148
147
<ul>
149
-
<li>the current cake-contrib icon will be copied as "icon.png" in the project-directory</li>
150
-
<li>the icon will be included in the project</li>
148
+
<li>if no <code>PackageIcon</code> property is specified, a default will be assigned.</li>
149
+
<li>if no icon (matching the <code>PackageIcon</code> property) is referenced in the project, a default will be referenced.</li>
150
+
<li>if the referenced icon is not binary equal to the default icon, it will be updated.</li>
151
+
<li>if no <code>PackageIconUrl</code> property is specified, a default will be assigned.</li>
151
152
</ul>
152
153
<h2id="settings">Settings</h2>
153
-
<h3id="icon-location">Icon-Location</h3>
154
-
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
155
-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
156
-
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
157
-
<p>The default location of the cake-contrib icon is <code>icon.png</code>, next to the csproj (i.e. <code>$(MSBuildProjectDirectory)/icon.png</code>).</p>
158
-
<p>Setting <code>CakeContribGuidelinesIconDestinationLocation</code> makes it possible to override the default location of the Icon. For example setting</p>
<p>This error will only show, if <code>CakeContribGuidelinesIconOmitImport</code> is <code>True</code> and no manual include of the icon was done.</p>
131
+
<p>To fix this error, you need to remove the definition of <code>CakeContribGuidelinesIconOmitImport</code> or define a <code>PackageIcon</code> manually.</p>
Copy file name to clipboardExpand all lines: rules/ccg0003.html
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ <h1>CCG0003</h1>
109
109
</section>
110
110
<sectionclass="content">
111
111
<blockquoteclass="blockquote">
112
-
<p>PackageIcon points to wrong place</p>
112
+
<p>The PackageIcon source (path/to/icon.jpeg) has an extension of jpeg. It can not be set from the CakeContrib-Icon.</p>
113
113
</blockquote>
114
114
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
115
115
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
@@ -122,12 +122,21 @@ <h2 id="table-of-contents">Table of Contents</h2>
122
122
</ul>
123
123
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
124
124
<h2id="cause">Cause</h2>
125
-
<p>This warning is raised, when <code>PackageIcon</code>does not point to the copied icon.
126
-
(I.e. <code>PackageIcon</code> is not equal to <code>$(CakeContribGuidelinesIconDestinationLocation)</code>)</p>
125
+
<p>This warning/error is raised, when the source of <code>PackageIcon</code>was outdated
126
+
but could not be updated.</p>
127
127
<h2id="description">Description</h2>
128
-
<p>Since the correct icon is copied to <code>$(CakeContribGuidelinesIconDestinationLocation)</code> it is expected, that this icon is packaged into the nupkg.</p>
128
+
<p>The default package icon is a <code>png</code> and will be used to update outdated icons.
129
+
If a different icon format than <code>png</code> is used, simply updating that icon with a
130
+
<code>png</code> content will break the icon.</p>
131
+
<p>If a <code>PackageIcon</code> is set, but no corresponding icon reference could be
132
+
found, a reference should be added automatically. However, if <code>PackageIcon</code>
133
+
is not set to a <code>png</code> file, such reference would not be possible.
134
+
In this case <code>CCG0003</code> is an error and will break the build.</p>
135
+
<p>If a <code>PackageIcon</code> is set with a corresponding icon reference but not to
136
+
a <code>png</code> file, a test whether the icon is up-to-date is not possible.
137
+
In this case <code>CCG0003</code> is a warning .</p>
129
138
<h2id="how-to-fix-violations">How to fix violations</h2>
130
-
<p>Modify <code>PackageIcon</code> to point to the same place as <code>$(CakeContribGuidelinesIconDestinationLocation)</code>.</p>
139
+
<p>Modify <code>PackageIcon</code> to point to a <code>png</code> file or remove the custom file entirely.</p>
0 commit comments