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
{{ message }}
Repository navigation
Move ResXResourceWriter out of System.Windows.Forms #1342
Now that we're porting to .NET Core, it's infeasible for us to depend on System.Windows.Forms.
Would it be possible to move this type to the existing System.Resources.Writer assembly in corefx or even just its own new package independent of Microsoft.WindowsDesktop.App? (e.g. System.Resources.ResX)
Resources.Writer is for resources format, not resx. The resx writer does a lot more, including use binaryformatter, typeconverter, and system.drawing types which aren’t part of the shared framework. @bricelam what sort of data types are you putting in ResX? It may make sense to have something lighter weight like what @rainersigwald did in msbuild.
changed the title [-]Move ResXResourceWriter to System.Resources.Writer.dll[/-][+]Move ResXResourceWriter out of System.Windows.Forms[/+]on Jul 12, 2019
I'm glad you were able to unblock yourself. I don't think we're considering moving it from where it's historically been at this point, so I'm going to close this issue.
I suspect you’ll receive pushback if you put a type in corefx. I think it’s better to depend on the format and have a simple writer implemented on top of the xml library of your choice.
You are welcome to open an issue in corefx for future to have that discussion.
Activity
merriemcgaw commentedon Jul 11, 2019
@ericstj What are your thoughts?
ericstj commentedon Jul 11, 2019
Resources.Writer is for resources format, not resx. The resx writer does a lot more, including use binaryformatter, typeconverter, and system.drawing types which aren’t part of the shared framework. @bricelam what sort of data types are you putting in ResX? It may make sense to have something lighter weight like what @rainersigwald did in msbuild.
bricelam commentedon Jul 12, 2019
We just use strings; I’ve unblock myself with a simple implementation.
But it always seemed strange to me that this class was part of WinForms
[-]Move ResXResourceWriter to System.Resources.Writer.dll[/-][+]Move ResXResourceWriter out of System.Windows.Forms[/+]merriemcgaw commentedon Jul 13, 2019
I'm glad you were able to unblock yourself. I don't think we're considering moving it from where it's historically been at this point, so I'm going to close this issue.
bricelam commentedon Jul 13, 2019
Would you accept a PR?
merriemcgaw commentedon Jul 15, 2019
Where would you suggest having this? I don't think @ericstj would be wanting it in corefx but I could be wrong.
ericstj commentedon Jul 16, 2019
I suspect you’ll receive pushback if you put a type in corefx. I think it’s better to depend on the format and have a simple writer implemented on top of the xml library of your choice.
You are welcome to open an issue in corefx for future to have that discussion.
bricelam commentedon Jul 16, 2019
It's just been a pet peeve for years, so I wanted to test how much push back there would be. Doesn't sound like it's worth pursuing.