diff --git a/src/Microsoft.Diagnostics.TestHelpers/PrebuiltDebuggeeCompiler.cs b/src/Microsoft.Diagnostics.TestHelpers/PrebuiltDebuggeeCompiler.cs index 0c6cb51f07..c7544da462 100644 --- a/src/Microsoft.Diagnostics.TestHelpers/PrebuiltDebuggeeCompiler.cs +++ b/src/Microsoft.Diagnostics.TestHelpers/PrebuiltDebuggeeCompiler.cs @@ -32,7 +32,7 @@ public PrebuiltDebuggeeCompiler(TestConfiguration config, string debuggeeName) public Task Execute(ITestOutputHelper output) { - return Task.Factory.StartNew(() => new DebuggeeConfiguration(_sourcePath, _binaryPath, _binaryExePath)); + return Task.FromResult(new DebuggeeConfiguration(_sourcePath, _binaryPath, _binaryExePath)); } } } \ No newline at end of file diff --git a/src/Microsoft.Diagnostics.TestHelpers/SdkPrebuiltDebuggeeCompiler.cs b/src/Microsoft.Diagnostics.TestHelpers/SdkPrebuiltDebuggeeCompiler.cs index 53fd4187fc..67e374a0fd 100644 --- a/src/Microsoft.Diagnostics.TestHelpers/SdkPrebuiltDebuggeeCompiler.cs +++ b/src/Microsoft.Diagnostics.TestHelpers/SdkPrebuiltDebuggeeCompiler.cs @@ -31,7 +31,7 @@ public SdkPrebuiltDebuggeeCompiler(TestConfiguration config, string debuggeeName public Task Execute(ITestOutputHelper output) { - return Task.Factory.StartNew(() => new DebuggeeConfiguration(_sourcePath, _binaryPath, _binaryExePath)); + return Task.FromResult(new DebuggeeConfiguration(_sourcePath, _binaryPath, _binaryExePath)); } } } \ No newline at end of file