Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winforms .NET 4.8 application conversion does not automatically include EmbeddedResourceUseDependentUponConvention property #1569

Open
abrguyt opened this issue Jun 17, 2024 · 0 comments

Comments

@abrguyt
Copy link

abrguyt commented Jun 17, 2024

Using the VS Upgrade Assistant on a fairly large Winforms .NET 4.8 project I noticed that the Upgrade Assistant does not automatically include the property in the project file:

<EmbeddedResourceUseDependentUponConvention>true</EmbeddedResourceUseDependentUponConvention>

When having Forms where the class name of the Form differs from the filename for the form.cs + .resx file, the .resx file does not get properly embedded and compiled with the correct namespace, leading to a MissingManifestResourceException exception when the Form in question is instantiated.

Adding the aforementioned property manually solves the problem. It would save a lot of time when this property would be included automatically for Winforms projects.

I got hinted at this solution by https://github.com/dotnet/winforms/issues/638

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

No branches or pull requests

1 participant