-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbreaking-changeThis issue / pr will introduce a breaking change, when resolved / merged.This issue / pr will introduce a breaking change, when resolved / merged.enhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing one
Milestone
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
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbreaking-changeThis issue / pr will introduce a breaking change, when resolved / merged.This issue / pr will introduce a breaking change, when resolved / merged.enhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing one