Skip to content

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

Open
@xpouyat

Description

@xpouyat

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.

Activity

adegeo

adegeo commented on Apr 20, 2021

@adegeo
Contributor
adegeo

adegeo commented on May 5, 2021

@adegeo
Contributor

@kennethhovsnow is this a bug? what is the data the customer is removing? Is it expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @xpouyat@dotnet-bot@PRMerger19@adegeo

        Issue actions

          For the migration to be successful, I have to remove some data in *.resx files · Issue #1036 · dotnet/docs-desktop