IdentityServer4 教程 AccountController 抛出错误

IdentityServer4 tutorial AccountController throwing errors

正在尝试按照 http://docs.identityserver.io/en/release/quickstarts and am working through http://docs.identityserver.io/en/release/quickstarts/3_interactive_login.html 上的快速入门教程进行操作。我只是 运行 iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/IdentityServer/IdentityServer4.Quickstart.UI/release/get.ps1')) 并没有修改任何东西。当我构建解决方案时,我得到以下信息:

(HttpContext.User is WindowsPrincipal wp) 是 C# 7 的特性。

您可以在此处阅读更多内容 - Pattern matching with is

因此,您需要启用 C# 7。Enabling c# 7 in a asp.net application