Skip to content
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

Cannot open WinForms designer when project path contains an apostrophe #13044

Open
devcsantos opened this issue Feb 28, 2025 · 3 comments
Open
Labels
area-VSDesigner Windows Forms out-of-proc designer related issues waiting-author-feedback The team requires more information from the author
Milestone

Comments

@devcsantos
Copy link

devcsantos commented Feb 28, 2025

Environment

Visual Studio 2022 17.13 or 17.14 (preview)

.NET version

.NET 8 or .NET 9

Did this work in a previous version of Visual Studio and/or previous .NET release?

N/A

Issue description

When the directory/path that contains the project includes an apostrophe - the WinForms designer does not work and you cannot edit a form's designer.

Steps to reproduce

  1. Create a folder and rename it to include an apostrophe
  2. Create a new WinForms project and place it inside this directory
  3. Open WinForms project
  4. Attempt to open a form's designer

Current Results:
WinForms is unable to resolve forms and open their designer.

Image

Expected Results:
WinForms is able to resolve forms and open their designer
(For comparison the image below has a project that is inside a folder/directory with no apostrophes (') in its name)

Image

Attached video with full reproduction steps.

vZZfpW16Kn.mp4

Diagnostics


@devcsantos devcsantos added the untriaged The team needs to look at this issue in the next triage label Feb 28, 2025
@Zheng-Li01
Copy link
Member

Zheng-Li01 commented Feb 28, 2025

@devcsantos, the Form1.cs[Design] can be loaded successfully even though the project path contains an apostrophe. attached the reproduce video, please have a check.

13044.mp4

@Zheng-Li01
Copy link
Member

And there have a similar issue in designer repro to track https://github.com/microsoft/winforms-designer/issues/6205

@elachlan elachlan added the area-VSDesigner Windows Forms out-of-proc designer related issues label Feb 28, 2025
@Tanya-Solyanik Tanya-Solyanik added this to the VS release milestone Feb 28, 2025
@Tanya-Solyanik Tanya-Solyanik removed the untriaged The team needs to look at this issue in the next triage label Feb 28, 2025
@Shyam-Gupta
Copy link
Member

@devcsantos: As @Zheng-Li01 mentioned we couldn't repro the issue due to apostrophe in the path. However, the issue you are seeing seems similar to the one described in this VS Feedback ticket. We are investigating this issue. For time being the workaround I mentioned in the ticket should unblock you.

@Tanya-Solyanik Tanya-Solyanik added the waiting-author-feedback The team requires more information from the author label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-VSDesigner Windows Forms out-of-proc designer related issues waiting-author-feedback The team requires more information from the author
Projects
None yet
Development

No branches or pull requests

5 participants