- I have my library with one file that contains:
public class SomeClassWithAwait
{
public async Task<int> MethodAsync()
{
return await Task.Run(() => 1 + 1);
}
}
- I turn on the feature "Show compiler-generated Code".
- I see changes in "Assembly Explorer", for example - state machine for await. But I cannot see changes in the file. I see only async\await as before when I turn on feature from step 2.
What I tried: close\open file, close\open dotPeek, rebuild library in release\debug mode.
Version dotPeek: 2020.2.2 build on 2020-09-09 (latest for today).
Any ideas?
UPDATED
About "Use sources from symbol files when available" feature: Still doesn't work for me, I got this:
public async Task<int> MethodAsync()
{
int num = await Task.Run<int>((Func<int>) (() => 2));
return num;
}
So, I still have async/await.
Uncheck "Use sources from symbol files when available". Then close the window with the code and reopen it.