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

Extra Control.ContextMenu code is added in designer's InitializeComponent() automatically with warning when adding control to form #12836

Closed
Olina-Zhang opened this issue Jan 24, 2025 · 2 comments · Fixed by #12838
Assignees
Labels
💥 regression-preview Regression from a preview release 🚧 work in progress Work that is current in progress
Milestone

Comments

@Olina-Zhang
Copy link
Member

.NET version

.NET 10.0 SDK: 10.0.100-alpha.1.25073.20

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Yes, not repro in previous .NET versions

Issue description

In the latest .NET 10 SDK build, when adding control to form designer, extra code "Control.ContextMenu" is added in designer's InitializeComponent() automatically, build project with a warning:

Image

Steps to reproduce

  1. Create a Winforms .NET 10 application
  2. Add a button to form designer
  3. Build application
@Olina-Zhang Olina-Zhang added untriaged The team needs to look at this issue in the next triage 💥 regression-preview Regression from a preview release labels Jan 24, 2025
@Olina-Zhang
Copy link
Member Author

Looks like it is because of PR: #10913.

@Tanya-Solyanik Tanya-Solyanik self-assigned this Jan 24, 2025
@Tanya-Solyanik Tanya-Solyanik removed the untriaged The team needs to look at this issue in the next triage label Jan 24, 2025
Tanya-Solyanik added a commit to Tanya-Solyanik/winforms that referenced this issue Jan 24, 2025
@dotnet-policy-service dotnet-policy-service bot added the 🚧 work in progress Work that is current in progress label Jan 24, 2025
Tanya-Solyanik added a commit to Tanya-Solyanik/winforms that referenced this issue Jan 24, 2025
@Olina-Zhang
Copy link
Member Author

Verified in the latest .NET 10 SDK build+ binaries built from main branch of Winforms repo, it was fixed.

@Olina-Zhang Olina-Zhang added this to the 10.0 Preview1 milestone Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💥 regression-preview Regression from a preview release 🚧 work in progress Work that is current in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants