-
Notifications
You must be signed in to change notification settings - Fork 998
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
Clipboard behaves different between net8 and net9 #12665
Comments
@LeafShi1 could your team take an initial look? My initial thought is perhaps we had accidentally changed something in The codepath for |
I proceeded to do binary search on the issue and arrived at the same conclusion as @Epica3055 : The faulty commit is |
Calling |
@ricardobossan - please add a unit test for this issue and create a PR with this test disabled, we'll enable when the fix is ready. |
@Tanya-Solyanik This is already been addressed by @lonitra on #12738 , class ClipboardTests.cs. |
Fix will be available in 9.0.2 release |
.NET version
net9.0-windows
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
It does work on net8.0
Issue description
The Clipboard method ContainsText returns false when a string is placed on the clipboard using SetDataObject. In previous versions of the runtime this method would return true.
Steps to reproduce
The following code returns true on net8.0 and returns false on net9.0
The text was updated successfully, but these errors were encountered: