Closed
Description
From @jeremymeng on August 28, 2017 18:31
Version Used:
Steps to Reproduce:
- create a ASP.NET Core project
- select MVC template, create the project, and F5 to make sure the home page is shown
- open HomeController.cs
- changing return type of
Index()
toTask<IActionResult>
- Add
await Task.Delay(1);
insideIndex()
- Invoke code fix to make the method async
Now the method looks like
public async Task<IActionResult> IndexAsync()
{
await Task.Delay(300);
return View();
}
- F5
Actual Behavior:
HTTP 404
if rename the method back to Index()
F5 works again.
Copied from original issue: dotnet/roslyn#21770