Added yucky #if ASPNETCORE50 directives in resource designer files to work around KRuntime bug (https://github.com/aspnet/KRuntime/issues/738).