For the migration to be successful, I have to remove some data in *.resx files

Open
#1,036 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
documentation

Research direction

Start with dotnet-desktop-guide/net/winforms/migration/index.md and compare its migration steps with the reported Visual Studio 16.10 and .resx serialized-image behavior. Reproduce or verify the reported form-loading problem if possible; done means determining whether the migration guidance needs clarification about this workaround and documenting the confirmed behavior.

Written by the indexing model from the issue text.

Description

doc-enhancement dotnet-desktop/svc Pri2 winforms/subsvc

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.

Dominant language
C#
Stars
241
Forks
192
Avg merge
10h 23m
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/docs-desktop

All issues in dotnet/docs-desktop

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.