为什么我不能 "Configure Azure AD Authentication"
Why can't I "Configure Azure AD Authentication"
我在 Visual Studio 2015 年打开了一个 ASP.NET Web 项目。我右键单击,然后 select "Configure Azure AD Authentication"。我收到以下错误:
The Connected Services component 'Azure AD Authentication' failed:
(HRESULT:0x80131509) Could not resolve mscorlib for target framework
'.NETFramework,Version=v4.5'. This can happen if the target framework
is not installed or if the framework moniker is incorrectly formatted.
我是运行 Windows 10,所以我尝试将项目的目标框架更改为4.6,但我得到了类似的错误。我还查看了 Windows 功能并确保我安装了所有 .NET 复选框。
维维克,
-- 检查你的 Nuget 包并确保它们是最新的 --
我遇到了同样的问题。这是我刚刚在另一个工作站上创建的项目,并在前一天晚上将其存放在 Git 存储库中。在我的第二个工作站上克隆并打开后,我 right-clicked 项目并像您一样选择了 "Configure Azure AD Authentication" 选项。我得到了同样的错误。然后我去了我的 Nuget 包管理器并检查我的包是否是最新的。我立即收到来自 Nuget 的错误,指出缺少一个包,我单击 'Restore' 按钮将其恢复。完成后,我发现有几个项目需要更新。更新需要更新的 Nuget 包后,我返回 right-click 项目和 "Configure Azure AD Authentication"。没有错误,我能够继续。希望对你有用。
我在 Visual Studio 2015 年打开了一个 ASP.NET Web 项目。我右键单击,然后 select "Configure Azure AD Authentication"。我收到以下错误:
The Connected Services component 'Azure AD Authentication' failed: (HRESULT:0x80131509) Could not resolve mscorlib for target framework '.NETFramework,Version=v4.5'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted.
我是运行 Windows 10,所以我尝试将项目的目标框架更改为4.6,但我得到了类似的错误。我还查看了 Windows 功能并确保我安装了所有 .NET 复选框。
维维克,
-- 检查你的 Nuget 包并确保它们是最新的 --
我遇到了同样的问题。这是我刚刚在另一个工作站上创建的项目,并在前一天晚上将其存放在 Git 存储库中。在我的第二个工作站上克隆并打开后,我 right-clicked 项目并像您一样选择了 "Configure Azure AD Authentication" 选项。我得到了同样的错误。然后我去了我的 Nuget 包管理器并检查我的包是否是最新的。我立即收到来自 Nuget 的错误,指出缺少一个包,我单击 'Restore' 按钮将其恢复。完成后,我发现有几个项目需要更新。更新需要更新的 Nuget 包后,我返回 right-click 项目和 "Configure Azure AD Authentication"。没有错误,我能够继续。希望对你有用。