Thank you very much for always promptly responding to and fixing software issues.
Here is the problem:
Code: Select all
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("async start");
T().Wait();
Console.WriteLine("Finished"); <------------------ Can't run into here
Console.ReadLine();
}
[Obfuscation(Exclude = false,Feature = "ultra")]
static async Task T()
{
var a = new AsyncClass();
await a.DoAsyncWork();
}
[Obfuscation(Feature = "ultra", Exclude = false)]
public class AsyncClass
{
public async System.Threading.Tasks.Task DoAsyncWork()
{
await System.Threading.Tasks.Task.Delay(1000);
Console.WriteLine("Async work completed");
}
}
vmp 2023 with default settings and .net framework 4.8.1