-
Notifications
You must be signed in to change notification settings - Fork 987
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
Need an alternative solution for the ImageList.ImageStream in the .NET 9 designer. #12310
Comments
@everyone - Could you please share the work around to overcome this? |
@SathiyathanamSathish, thanks for your update. reference this known issue #9701, if your Visual Studio version newer than 17.12 preview2, and when your project upgrade to .NET 9 any form/control using an ImageList will not cause anything to break. See comments that actually the System.Runtime.Serialization.Formatters nuget package will be installed by default if you Visual Studio version more than 17.12 preview2. |
@ElavazhaganSF4422 binary formatted designer resources (designer.resx) will work without needing to take the The .NET runtime can extract most embedded binary formatted resources without needing the |
@Zheng-Li01 |
@ElavazhaganSF4422 as I mentioned above #12310 (comment) this scenario was enabled in the most recent previews of .NET 9. |
This submission has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 14 days. It will be closed if no further activity occurs within 7 days of this comment. |
Environment
VS professional 2022 preview
17.12.0 preview 2.1
.NET version
.NET 9.0
Did this work in a previous version of Visual Studio and/or previous .NET release?
Yes, in the .NET 8.0 version, we are able to see the images in the designer. The ImageList.ImageStream is not supported starting from .NET 9 due to binary formatter serialization. Therefore, we have tried to avoid using ImageStream and added the images directly to the ImageList. In this case, the images load properly at runtime, but we are unable to see the images in the designer of projects targeted for .NET 9.
Issue description
Due to BinaryFormatter not supported in .NET 9 the ImageList.ImageStream will not support in .NET 9. . Therefore, we have tried to avoid using ImageStream and added the images directly to the ImageList. In this case, the images load properly at runtime, but we are unable to see the images in the designer of projects targeted for .NET 9.
Refer the screenshot from below,
ImageList with ImageStream screenshots in .NET 9 designer
**.ImageList with directly added images in .NET 9 designer **
We expected the image should be shown in the designer, but it is not shown properly. Is there any alternative solution we have to achieve this in both runtime and DesignTime
Steps to reproduce
1.Open the sample.
2.And then try to open the designer.
ImageList.zip
Observed Behavior : The Image List images are not shown in the designer.
Expected Behavior : The Image List images should be shown in the designer.
Diagnostics
No response
The text was updated successfully, but these errors were encountered: