Startup.cs中的代码如下:
public void Configure(IApplicationBuilder app) { app.UseErrorPage(); }
用dnx命令运行时会出现下面的错误:
IApplicationBuilder' does not contain a definition for 'UseErrorPage' and no extension method 'UseErrorPage' accepting a first argument of type 'IApplicationBuilder' could be found (are you missing a using directive or an assembly reference?)
请问如何解决这个问题?
原来是被改名了,现在叫 UseDeveloperExceptionPage() 。
详见:Breaking changes: UseErrorHandler & UseErrorPage extensions have been renamed