-
Notifications
You must be signed in to change notification settings - Fork 4
(GH-80) existing icons will be honored #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Additionally no local copy of the icon is needed anymore. The setting $(CakeContribGuidelinesIconDestinationLocation) has been removed. Any old build/project using this setting will now fail.
3022e37 to
f8e9d0f
Compare
|
Automatically setting the |
Codecov Report
@@ Coverage Diff @@
## develop #107 +/- ##
===========================================
+ Coverage 80.39% 87.47% +7.07%
===========================================
Files 11 13 +2
Lines 306 431 +125
Branches 48 64 +16
===========================================
+ Hits 246 377 +131
+ Misses 41 33 -8
- Partials 19 21 +2
Continue to review full report at Codecov.
|
|
Since this is a major overhaul of the CCG001/2/3 detection I'd love to have a couple of eyes on this: |
|
I can certainly give it a go. Where do you publish beta packages? |
|
@Jericho They are published "here" in GitHub, however not for PRs.
The package is at https://github.com/cake-contrib/CakeContrib.Guidelines/suites/2217423096/artifacts/45894859 |
|
For CCG0007
That the rest worked for you I'll take as a |
|
Why are the targeting rules different depending on whether an addin targets Cake.Core or not? Shouldn't we be consistent and always make the same recommendation? Also, did you see my comment about that fact that my csproj is missing |
I did, sorry for not commenting on that. When no
The rules "follow" the Cake version: If you are targeting Cake ≥ 1.0.0 the "requirement" is for Now, the question arises what to do in cases where no reference to |
This did not work as expected: the value was not automatically set for either of my two addins. |
|
You are right. Additionally I see two icons packed when packing |
and pinned gh-actions environment.
|
The "two icons" being packed was me using a wrong nupkg. |


Additionally no local copy of the icon is needed anymore.
The setting $(CakeContribGuidelinesIconDestinationLocation) has
been removed. Any old build/project using this setting will now fail.
fixes #80
What has changed
Activate this on a project with no
PackageIcon-property, no referenced icon:You'll get the default icon as
icon.pngin the nupkg, automatically. No files added to the project.Activate this on a project with
PackageIconset to some arbitrarypng(e.g.<PackageIcon>my-cool-icon.png</PackageIcon>), but no referenced icon:You'll get the default icon renamed (e.g. to
my-cool-icon.pngin the nupkg. Still, no files added to the project.Activate this on a project with
PackageIconand a corresponding referenced icon (probably the default for all existing packages):On build the icon will be checked and overridden/updated, if needed.
Additionally:
PackageIconUrlwill automatically be set tohttps://cdn.jsdelivr.net/gh/cake-contrib/graphics/png/cake-contrib-medium.pngif not specifiedCakeContribGuidelinesIconDestinationLocationwas removed. This is a breaking change.