ASP.Net / C# - missing an assembly reference

穿精又带淫゛_ 提交于 2019-12-11 06:37:07

问题


Hi, I am a newbie in C# and visual studio. As Figure1 shown, I am trying to use the classes from other project in similar solution.

For example: I try to write "Using LibraryMS.Framework" at UserDto.cs from "LibraryMS.MasterSetup".

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?)"

Does anyone know how can I solve this? Also, do you have any good ASP.net website development online tutorial?

Visual studio version: 2010 .Net Framework 4.0

Thank you.


回答1:


Its asking you if you missed an assembly reference. So check the references in your class library for 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.




回答2:


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. Thank you guys. :) now I feel that Programming is a fun thing. Many thx!



来源:https://stackoverflow.com/questions/40758885/asp-net-c-sharp-missing-an-assembly-reference

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!