[英]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.