简体   繁体   English

类型或名称空间名称“ Membership”在名称空间“ Microsoft.AspNet”中不存在

[英]The type or namespace name 'Membership' does not exist in the namespace 'Microsoft.AspNet'

I'm trying to maintain an application that contains the following line in several different files: 我正在尝试维护一个在几个不同文件中包含以下行的应用程序:

using Microsoft.AspNet.Membership.OpenAuth;

I've tried everything I could find. 我已经尝试了所有可能找到的东西。 Removed and re-added the reference; 删除并重新添加了参考; cleared the MEF cache and rebuilt; 清除MEF缓存并重建; added a different file as a reference. 添加了其他文件作为参考。 Nothing works. 什么都没有。 It's bizarre because VS2017 doesn't report this error in the Error List window, but it does show up in the Output window. 这很奇怪,因为VS2017不在“错误列表”窗口中报告此错误,但确实会在“输出”窗口中显示。 Anyway, can someone please suggest a possible solution that maybe I haven't tried yet? 无论如何,有人可以建议一个可能尚未尝试的解决方案吗? Thanks. 谢谢。

I was able to compile the project and I will describe how I got it. 我能够编译该项目,并将描述如何获得它。

1 - I delete all using Microsoft.AspNet.Membership.OpenAuth; 1-我using Microsoft.AspNet.Membership.OpenAuth;删除所有内容using Microsoft.AspNet.Membership.OpenAuth; and build project. 并建立项目。

2 - After build the code show many errors I use the resource of VS2015 help fixes errors on code Show potential fixes and set again using Microsoft.AspNet.Membership.OpenAuth; 2-构建代码后显示许多错误,我使用VS2015帮助的资源修复了代码上的错误显示潜在的修复using Microsoft.AspNet.Membership.OpenAuth;再次using Microsoft.AspNet.Membership.OpenAuth;设置using Microsoft.AspNet.Membership.OpenAuth; build project. 建立专案。

3 - Set a new framework 4.6 and build project. 3-设置新框架4.6并构建项目。

https://drive.google.com/open?id=0B4aywYtmwk6lT1dDNnIxRmtQcUk https://drive.google.com/open?id=0B4aywYtmwk6lT1dDNnIxRmtQcUk

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 类型或名称空间名称“ FriendlyUrls”在名称空间“ Microsoft.AspNet”中不存在 - The type or namespace name 'FriendlyUrls' does not exist in the namespace 'Microsoft.AspNet' 命名空间“Microsoft”中不存在类型或命名空间名称“TeamFoundation” - The type or namespace name 'TeamFoundation' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“Azure” - The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“ServiceBus”? - The type or namespace name 'ServiceBus' does not exist in the namespace 'Microsoft'? 类型或名称空间名称“ Lync”在名称空间“ Microsoft”中不存在 - The type or namespace name 'Lync' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“Practices” - The type or namespace name 'Practices' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“AspNetCore” - The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' 类型或名称空间名称“ Kinect”在名称空间“ Microsoft”中不存在 - The type or namespace name `Kinect' does not exist in the namespace `Microsoft' 命名空间'microsoft'中不存在类型或命名空间名称'directx' - the type or namespace name 'directx' does not exist in the namespace 'microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“EntityFrameworkCore” - The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Microsoft
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM