I got a new app working from home on .Net4.5, using your example code:
var task = Task.Run((Func<Task>)MainWindow.GetCurrentAccount);
task.Wait();
However, at work they use .Net4.0, so I targeted that version.
Now the compiler tells me:
Error 'System.Threading.Tasks.Task' does not contain a definition for 'Run'
How should I do calls now?
Best regards, Frans