dotnet / dotnet/project-system
Background image disappears while newly project name with hyphen using project template
- Dominant language
- C#
- Stars
- 1k
- Forks
- 415
- PR merge metrics
- No merged PRs in 30d
Description
## Visual Studio Version
17.7.0 Preview 3.0 [33814.344.main]
## Steps to Reproduce
1. Create Winforms .Net Core application
2. Add a button and set its background image to a png via Project resource file, probably any graphic will work
3. Export this project as a Template
4. Start a new WinForms project using the exported template
5. For the new project name, put a hyphen in the same, e.g. Test-App (This is key step)
6. Open Form1.cs[Design] and observe the button
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
1. It doesn't repro for Local resource.
2. The initial feedback ticket is: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1833409
Contributor guide
Assessment
This issue has not been assessed yet.