-
Notifications
You must be signed in to change notification settings - Fork 635
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
DYN-6808-NodeIcons-P4-P5-P6 Automatic Process #15283
DYN-6808-NodeIcons-P4-P5-P6 Automatic Process #15283
Conversation
I done a fix due that when the resx file contains entries referencing a png image, the tool was not replacing attributes so the Dynamo solution was not compiling. I've used the Update Node Icon tool for the folders P4, P5 and P6 folders using the 400 dpi folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-6808
UI Smoke TestsTest: success. 2 passed, 0 failed. |
if (currentElementValue.ToLower().Contains(".png") || currentElementValue.ToLower().Contains(".jpg")) | ||
{ | ||
//If the resx file is referencing a png image then we need to update/add the type and mimetype attributes | ||
XAttribute attRemove = oldElement.Attribute("type"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zeusongit I thought you mentioned there is no resx file referencing a legacy png, maybe I got it wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@QilongTang I've found 4 entries in DSCoreNodesImages.resx that are referencing the png image directly (without using base64).
<value>Resources\DSCore.Data.ParseJSON.Large.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@QilongTang I was wrong, there were 2 icons which were still using the png, we discussed this in slack, roberto will remove these icons after updating them to b64.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just commited a change for removing the png files
6c591c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, then the logic here is more for future proofing when things goes wrong from my understanding.
Removing not used png images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Purpose
Updating several icons using the Update Node Icon tool
I done a fix due that when the resx file contains entries referencing a png image, the tool was not replacing attributes so the Dynamo solution was not compiling.
I've used the Update Node Icon tool for the folders P4, P5 and P6 folders using the 400 dpi folder.
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Updating several icons using the Update Node Icon tool
Reviewers
@QilongTang
FYIs
@zeusongit