Open Eudora-Li01 opened 1 year ago
This is not specific to templates. From an internal discussion:
This is the bug I see when I create a new winforms Core application named WinformsApp, then rename it to Winforms-App, with a hyphen, and then add a resource to it:
namespace WinForms-App2.Properties { using System;
Application name is used for the namespace name as is, project system had not escaped namespace name when I renamed the application. This is incorrect because the minus sign will be interpreted as an operator. It should have been replaced with an underscore (all unsupported chars are), as it is done when a new project with a hyphen is created. In the legacy project system, the old namespace name is retained in this scenario -
namespace WindowsFormsApp1.Properties { using System;
It's apparently a problem related to invalid characters in code symbols.
We should investigate to come up with more focussed repro steps.
Visual Studio Version
17.7.0 Preview 3.0 [33814.344.main]
Steps to Reproduce
https://github.com/microsoft/winforms-designer/assets/130345015/14dbb178-b393-4a24-b403-8c68d6ea10ef
Expected Behavior
The button’s background image should display.
https://github.com/microsoft/winforms-designer/assets/130345015/636056ce-9b90-4061-a1c7-5a6662b0ced8
Actual Behavior
The button’s background image will be gone.
Have you experienced this same issue with previous previews of VisualStudio?
Yes, it also repro on VS 16.11.20 and 17.5.2.
More Info