Open
Description
For the migration of my Winforms app to be successful, I have to use Visual Studio 16.10 Preview 2 and edit resx files.
As there were error in loading some of the forms, I found that I need to remove some data in *.resx files in order for Designer to be able to load the forms without errors. The data to be removed are serialized images in the *.resx files. For example
<data name="createStreamingEndpointToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAA0SURBVDhPY/j//z9FGKsgKRhCYAcgCRjGAKMGYBqA
rJgoPPgMwAaQNWCAUQPQDCAf/2cAAPWXSMZeEajdAAAAAElFTkSuQmCC
</value>
</data>
So I removed all these sections in resx files and forms now load. Then I have to reconfigure the images in the menus etc.
The localization feature for winforms with .Net 5 works but I had to use Visual Studio 16.10 Preview 2. It was not working with Visual Studio 16.9.4.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 98778ad1-6c20-6310-e4bc-9d9851a2270a
- Version Independent ID: d1ef1f43-00e2-b46f-4f38-6274a34f07f6
- Content: Migrate a Windows Forms app to .NET 5 - Windows Forms .NET
- Content Source: dotnet-desktop-guide/net/winforms/migration/index.md
- Product: dotnet-desktop
- Technology: dotnet-winforms
- GitHub Login: @adegeo
- Microsoft Alias: adegeo
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
adegeo commentedon Apr 20, 2021
@kennethhovsnow fyi
adegeo commentedon May 5, 2021
@kennethhovsnow is this a bug? what is the data the customer is removing? Is it expected?