简体   繁体   English

ASP.Net/C#-缺少程序集参考

[英]ASP.Net / C# - missing an assembly reference

在此处输入图片说明 Hi, I am a newbie in C# and visual studio. 嗨,我是C#和Visual Studio的新手。 As Figure1 shown, I am trying to use the classes from other project in similar solution. 如图1所示,我试图在类似的解决方案中使用其他项目中的类。

For example: I try to write "Using LibraryMS.Framework" at UserDto.cs from "LibraryMS.MasterSetup". 例如:我尝试从“ LibraryMS.MasterSetup”在UserDto.cs上编写“使用LibraryMS.Framework”。

And I get the following error message: 我收到以下错误消息:

"the type or namespace name 'framework' does not exist in the namespace 'LibraryMS' (are you missing an assembly reference?)" “类型或名称空间名称'framework'在名称空间'LibraryMS'中不存在(您是否缺少程序集引用?)”

Does anyone know how can I solve this? 有谁知道我该怎么解决? Also, do you have any good ASP.net website development online tutorial? 此外,您是否有任何不错的ASP.net网站开发在线教程?

Visual studio version: 2010 .Net Framework 4.0 Visual Studio版本:2010 .Net Framework 4.0

Thank you. 谢谢。

Its asking you if you missed an assembly reference. 它询问您是否错过了装配参考。 So check the references in your class library for LibraryMS.Framework. 因此,请在类库中检查LibraryMS.Framework的引用。 If you can't find the reference then you can always add it by hitting "Add Reference" then under Reference Manager, click Project and select the class library which you would like to add. 如果找不到引用,则始终可以通过单击“添加引用”来添加它,然后在“引用管理器”下单击“项目”,然后选择要添加的类库。

Along these two days, finally I have find out what is going on. 这两天,我终于知道发生了什么。 The root case is because I am using ASP.NET Empty Web Application instead of using ASP.NET Server Control. 根本原因是因为我使用的是ASP.NET空Web应用程序,而不是ASP.NET服务器控件。 Thank you guys. 感谢大伙们。 :) now I feel that Programming is a fun thing. :)现在,我觉得编程是一件有趣的事。 Many thx! 多谢!

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

相关问题 C#asp.net-找不到类型或名称空间名称“ Helper”(您是否缺少using指令或程序集引用?) - C# asp.net - The type or namespace name 'Helper' could not be found (are you missing a using directive or an assembly reference?) 名称空间“系统”中不存在类型或命名空间名称“事务”(您是否缺少程序集引用?) - C#ASP.NET - The type or namespace name 'Transactions' does not exist in the namespace 'System' (are you missing an assembly reference?) - C# ASP.NET ASP.Net Core MVC缺少程序集参考 - ASP.Net Core MVC missing assembly reference ASP.net MVC缺少using指令或程序集引用 - ASP.net MVC missing a using directive or an assembly reference ASP.NET“网站预测”在哪里存储VB / C#的默认参考/程序集设置? - Where do ASP.NET “website prejects” store default reference/assembly settings for VB/C#? 使用c#asp.net添加Facebook.dll后缺少assembely参考错误 - Missing assembely reference error after adding Facebook.dll using c# asp.net C#ASP.NET MVC PayPal未找到程序集 - C# ASP.NET MVC PayPal not finding assembly ASP.NET 5控制台应用程序dnxcore50缺少`System.Net.Http'程序集参考? - ASP.NET 5 Console Application dnxcore50 missing `System.Net.Http' assembly reference? 具有旧程序集参考的ASP.NET Publishing - ASP.NET Publishing with old assembly reference C#GridViewColumns缺少程序集参考 - c# GridViewColumns missing assembly reference
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM