-
Notifications
You must be signed in to change notification settings - Fork 992
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
Support for copy/paste of controls in WinForms Designer #10055
Comments
.NET deprecated the binary formatter due to fundamental security issues with it. This among other things has lead the team to refactor the winforms interop layer to add better support for COM Wrappers to enable better copy paste support. It's still ongoing and it looks like better support will be added in .NET9. See #6269 |
Cc: @JeremyKuhne |
@Leon99 Could you clarify your scenario here? Is copy and paste not working for you in the designer? If BinaryFormatter is enabled, copy and paste should be working |
Correct
#1831 explains the reason why it doesn't work. |
@Leon99 to be super explicit here, is Copy/paste still work in general, we removed |
@JeremyKuhne, yes, We solved the issue, but it took lots of effort as it involved switching to another serializer that doesn't require |
Also related: #9110 |
@Leon99 Copy and paste still works for standard scenarios (say, string). In order for us to follow up on your specific scenario we need an explicit repro (code) to fully understand our options here and to give you clear answers. You've also stated that you have a workaround, is this actually a blocker? @Tanya-Solyanik had marked this type as being only used for internal scenarios but clearly this isn't true. I'm not specifically opposed to putting the attribute back, but:
|
Copy/paste of controls in the WinForms designer.
We're not blocked anymore, but the workaround is not particularly maintainable. |
Environment
N/A
.NET version
.NET 6
Did this work in a previous version of Visual Studio and/or previous .NET release?
.NET Framework
Issue description
According to #1831, there were changes in .NET 6 that broke the copy/paste support. However, I couldn't find anything like "copy/paste is no longer supported in .NET Core" in the official documentation. Is there any other recommended way to implement it, or it's an omission from the documentation and there won't be any support for copy/paste now?
Steps to reproduce
N/A
Diagnostics
No response
The text was updated successfully, but these errors were encountered: