IdentityServer4教程AccountController抛出错误

时间:2017-06-27 17:31:50

标签: asp.net-core identityserver4

尝试在http://docs.identityserver.io/en/release/quickstarts处遵循快速入门教程并正在完成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')) 并没有修改任何东西。当我构建解决方案时,我得到以下内容: error screenshot

1 个答案:

答案 0 :(得分:1)

(HttpContext.User is WindowsPrincipal wp)是C#7功能。

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

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

相关问题