Steps to reproduce:
- Create a new WinForms Core App.
- Add the following Code to the Form's constructor.
public Form1()
{
InitializeComponent();
System.Windows.Forms.PictureBox pb = new PictureBox();
pb.ImageLocation = @"\\winformssrvvm01\BAQAFiles\v-mikou\OGF Doc\picture\myLargeImage1.bmp";
pb.LoadAsync();
}
- Run the app.
Expected Result: LoadAsync should be executed. (NOTE: Although LoadAsync implies this, the method does not return Task but void, so the usage here is correct with regards to async/await.)
Actual Result: An exception pops up, please see following screenshot and exception log.

Exception log:
System.PlatformNotSupportedException
HResult=0x80131539
Message=Operation is not supported on this platform.
Source=System.Private.CoreLib
StackTrace:
at System.Threading.WaitCallback.BeginInvoke(Object state, AsyncCallback callback, Object object)
at System.Windows.Forms.PictureBox.LoadAsync()
at XpictureIssue.Form1..ctor() in C:\Users\v-zheshi\source\winforms\XpictureIssue\Form1.cs:line 20
at XpictureIssue.Program.Main() in C:\Users\v-zheshi\source\winforms\XpictureIssue\Program.cs:line 19
Steps to reproduce:
Expected Result:
LoadAsyncshould be executed. (NOTE: AlthoughLoadAsyncimplies this, the method does not returnTaskbutvoid, so the usage here is correct with regards toasync/await.)Actual Result: An exception pops up, please see following screenshot and exception log.
Exception log: