Skip to content

[resgen] Remove dependency on WinForms and use it in mobile profiles#4667

Merged
akoeplinger merged 1 commit intomono:masterfrom
akoeplinger:remove-resgen
Apr 10, 2017
Merged

[resgen] Remove dependency on WinForms and use it in mobile profiles#4667
akoeplinger merged 1 commit intomono:masterfrom
akoeplinger:remove-resgen

Conversation

@akoeplinger
Copy link
Member

resgen.exe used to load WinForms via reflection which is a pretty large dependency. Instead we can just embed the few types that are used for reading/writing resx files directly into the app.

Add System.Drawing.dll to the "build" profile so we can put resgen there as well and allow us to no longer rely on system resgen for mobile profiles like monotouch/monodroid.

Copy link
Member

Choose a reason for hiding this comment

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

We could remove this, as resgen_dir from build/ should be used

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think we can remove it as we wouldn't install the resgen from the build profile?

Copy link
Member

Choose a reason for hiding this comment

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

no, but we can (probably already do) build resgen standard way in tools/

Copy link
Member Author

Choose a reason for hiding this comment

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

you're right, I'll remove it.

Copy link
Member

Choose a reason for hiding this comment

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

What needs resgen here?

Copy link
Member Author

@akoeplinger akoeplinger Apr 10, 2017

Choose a reason for hiding this comment

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

Adding resgen to the build profile (it needs a dependency here in case tools/ and class/ are built in parallel).

Copy link
Member

Choose a reason for hiding this comment

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

same question what needs resgen/had dependency on it here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this may have just been a fallout from the other change that broke parallel build, I'll try removing it.

resgen.exe used to load WinForms via reflection which is a pretty
large dependency. Instead we can just embed the few types that
are used for reading/writing resx files directly into the app.

Add System.Drawing.dll to the "build" profile so we can put
resgen there as well and allow us to no longer rely on system
resgen for mobile profiles like monotouch/monodroid.
@akoeplinger akoeplinger merged commit 9635b9c into mono:master Apr 10, 2017
@akoeplinger akoeplinger deleted the remove-resgen branch April 10, 2017 18:15
akoeplinger added a commit that referenced this pull request Apr 10, 2017
…4667)

resgen.exe used to load WinForms via reflection which is a pretty
large dependency. Instead we can just embed the few types that
are used for reading/writing resx files directly into the app.

Add System.Drawing.dll to the "build" profile so we can put
resgen there as well and allow us to no longer rely on system
resgen for mobile profiles like monotouch/monodroid.
(cherry picked from commit 9635b9c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants