CS0246: The type or namespace 'IApplication' could not be found

喜夏-厌秋 提交于 2019-12-11 14:59:52

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/48070897/cs0246-the-type-or-namespace-iapplication-could-not-be-found

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