CS0246:找不到类型或命名空间“IApplication" [英] CS0246: The type or namespace 'IApplication' could not be found

查看:33
本文介绍了CS0246:找不到类型或命名空间“IApplication"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在自定义仪表板时,我尝试添加新功能区,如媒体和设置.我遵循了

导致此错误的代码有什么问题?

解决方案

确保正确导入文件中的 umbraco.interfaces 命名空间.不这样做可能会导致您看到的错误.

While customizing the Dashboard, I tried to add a new Ribbon like media and settings. I have followed the documentation...

[Application("siteExporter", "Site Exporter", "tray-icon.png", 10)]
public class SiteExporterApplication : IApplication 
{    
    public SiteExporterApplication () {} 
}

... but I have received the following compilation error:

CS0246: The type or namespace 'IApplication' could not be found (are you missing a using directive or an assembly reference?)

What is wrong with the code that is causing this error?

解决方案

Make sure you are properly importing the umbraco.interfaces namespace in your file. Not doing so may cause the error you're seeing.

这篇关于CS0246:找不到类型或命名空间“IApplication"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆