Repository navigation
MSBuild fork of ResX reader/writer - #4090
Closed
rainersigwald wants to merge 20 commits into
Closed
rainersigwald wants to merge 20 commits into
rainersigwald wants to merge 20 commits into
Conversation
- Merge imported source from the winforms repo - Change types to internal - Build them in Tasks - Scoped resource import to only what's needed in referenced code - Let MSBuild's loc pass translate stuff
Member
Author
|
Marking as WIP since dotnet/winforms#212 just landed and I should adopt it too. |
danmoseley
reviewed
Jan 23, 2019
|
If you didn't already, you might checkout https://github.com/dotnet/corefx/compare/master...danmosemsft:resx2?expand=1 and diff those files against yours, as I know I made various cleanup changes, possibly something will pop out that should come along. Or not. |
Special-case ResXFileRef to use forked types when reading resx files that refer to the original, framework type.
These now pass, or fail for a different reason. Fixes dotnet#308. fixup! Enable UnsupportedTextType test
Clearly, instead of through many confusing traits.
rainersigwald
force-pushed
the
resx-reader-copypasta
branch
from
January 23, 2019 23:49
1a64cf9 to
66d12bf
Compare
danmoseley
reviewed
Jan 24, 2019
``` update.cmd s:\winforms fa4cdb0 ``` dotnet/winforms@fa4cdb0
Including dotnet/winforms#212.
Translate backslashes to forward slashes when considering relative paths read for ResXFileRefs.
This test failed in CI because the CI machines don't have libgdiplus.dylib available, and the bitmap constructor used doesn't work without it.
rainersigwald
force-pushed
the
resx-reader-copypasta
branch
from
February 13, 2019 16:59
c6aa446 to
e2ddf9c
Compare
These operations have always been unsupported on .NET Core, but with improved support for resources in .NET Core 3 in general, it's likely that they'll be encountered more now.
This was referenced Mar 13, 2019
rainersigwald
force-pushed
the
resx-reader-copypasta
branch
2 times, most recently
from
March 13, 2019 19:12
d99c8dd to
09291a5
Compare
This was moved in dotnet/winforms@43de673
``` update.cmd S:\winforms f753f5b ``` dotnet/winforms@f753f5b
rainersigwald
force-pushed
the
resx-reader-copypasta
branch
from
March 14, 2019 19:08
09291a5 to
6477233
Compare
Member
Author
|
FYI @merriemcgaw, @dreddy-work |
Member
Author
|
This is no longer the approach we're going with. I'll put up a new PR shortly with an implementation that uses dotnet/corefx#36906. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #308, #2221, https://github.com/dotnet/corefx/issues/34204.
ResX types are available and functional on .NET Core, but are in the winforms layer, which we don't want MSBuild to have to be on top of. Fortunately, they're pretty isolated, so we can pull a fork of that source into our repo and use it.
This will also probably help with future work to avoid deserialization/serialization during resource building, but doesn't directly address that yet.
Recommended review strategy:
To do: