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:
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.
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