Web解决方案和NameSpace问题

时间:2011-02-21 19:08:11

标签: c# asp.net namespaces

我在Visual Studio 2010中有一个Web项目我使用asp.net 4 c#。

我有一个像这样的文件夹结构:

~Cms/AdminCms/MasterPages/AdminCms.Master

和相对命名空间:

WebProject.Web.Cms.AdminCms.MasterPages

我需要在我的代码中引用母版页:路径应该是:

WebProject.Web.Cms.AdminCms.MasterPages.AdminCms.Master

我的母版页.cs的命名空间是:

Cms.AdminCms.MasterPages

我收到错误,我无法引用文件夹MasterPages:

The type or namespace name 'MasterPages' does not exist in the namespace 'WebProject.Web.Cms.AdminCms' (are you missing an assembly reference?

我可以引用Web应用程序中的任何文件夹,但不能引用“MasterPages”。

知道出了什么问题吗? 我可以强制Visual Studio获取此文件夹吗?

感谢您的帮助!

0 个答案:

没有答案