Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Embedded resources may not have extension in the name#37048

Merged
danmoseley merged 7 commits intodotnet:masterfrom
dreddy-work:user/dreddy/ImageLogicalNameChange
Apr 25, 2019
Merged

Embedded resources may not have extension in the name#37048
danmoseley merged 7 commits intodotnet:masterfrom
dreddy-work:user/dreddy/ImageLogicalNameChange

Conversation

@dreddy-work
Copy link
Copy Markdown
Member

Winforms run-time is replacing the embedded bitmap resources to Icons that match with VisualStudio styles. Winforms also made change to logical names ( earlier they contain file name with extension ".bmp". now that the files are changed ti .ICO files, we are removing the extension from logical names for future proof)

@dreddy-work
Copy link
Copy Markdown
Member Author

Corresponding Winforms run-time changes are in this PR.

@danmoseley
Copy link
Copy Markdown
Member

danmoseley commented Apr 20, 2019

Is this for Preview 5? With the last merge into release in Monday, if there is a matching winforms change, we should make sure both are in or both are out.

My suggestion is we hold on both, since this repo is so close to the last merge.


// All bitmap images from winforms runtime are changed to Icons
// and logical names, now, does not contain any extension.
rawbmpname = name;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is a test possible? We do have tests for this class.

@dreddy-work
Copy link
Copy Markdown
Member Author

dreddy-work commented Apr 21, 2019

This is a less risky change on corefx side and independant of Winforms change (if winforms change can't make it, it will be no-op on corefx). Modernizing winforms icons was Preview 5 item. I can look into a possible test.

@dreddy-work
Copy link
Copy Markdown
Member Author

@danmosemsft, are you suggesting we hold this until Preview snap is done and go to Preview 6?

@danmoseley
Copy link
Copy Markdown
Member

@dreddy-work it's up to you. If it's not needed for preview 5 I suggest to wait a few hours. If it is required, feel free to merge.

@dreddy-work
Copy link
Copy Markdown
Member Author

@danmosemsft , @safern can you please help merge this?

@danmoseley danmoseley merged commit 27d0597 into dotnet:master Apr 25, 2019
@danmoseley
Copy link
Copy Markdown
Member

done.

@dreddy-work dreddy-work deleted the user/dreddy/ImageLogicalNameChange branch April 25, 2019 18:07
@karelz karelz added this to the 3.0 milestone May 4, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…37048)

* Bitmaps are replaced with Icons and Logical names are changed to not having any extensions.

* Checking for Rawformat before calling MakeTransparent method.

* Adding a test attribute

* Adding test.


Commit migrated from dotnet/corefx@27d0597
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants