Skip to content

Move ResXResourceWriter out of System.Windows.Forms #1342

Closed

Description

@bricelam

In Entity Framework 6, we need to generate resx files at design time.

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)

cc @divega @ajcvickers @Pilchie

Activity

  1. merriemcgaw commented on Jul 11, 2019

    @merriemcgaw
    Contributor

    @ericstj What are your thoughts?

  2. added
    design-discussion
    on Jul 11, 2019
  3. ericstj commented on Jul 11, 2019

    @ericstj
    Member

    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.

  4. added this to the Future milestone on Jul 11, 2019
  5. bricelam commented on Jul 12, 2019

    @bricelam
    Author

    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

  6. changed the title [-]Move ResXResourceWriter to System.Resources.Writer.dll[/-] [+]Move ResXResourceWriter out of System.Windows.Forms[/+] on Jul 12, 2019
  7. merriemcgaw commented on Jul 13, 2019

    @merriemcgaw
    Contributor

    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.

  8. bricelam commented on Jul 13, 2019

    @bricelam
    Author

    Would you accept a PR?

  9. merriemcgaw commented on Jul 15, 2019

    @merriemcgaw
    Contributor

    Where would you suggest having this? I don't think @ericstj would be wanting it in corefx but I could be wrong.

  10. ericstj commented on Jul 16, 2019

    @ericstj
    Member

    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.

  11. bricelam commented on Jul 16, 2019

    @bricelam
    Author

    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.

  12. removed this from the Future milestone on Jun 16, 2020
  13. ghost locked as resolved and limited conversation to collaborators on Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    design-discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions