https://github.com/aspnet/Mvc/issues/8486 There isn't a very good workaround for this and the code fix is fairly trivial.