ubuntumonodevelopappindicator

monodevelop ubuntu c# appindicator


I am just starting out with Mono-GTK app development. I wanted to setup a appindicator icon in systray. But C# returns namespace is missing.

code: using AppIndicator;

returns error: The type of namespace name 'AppIndicator' could not be found.Are you missing directive or an assembly reference?

What to do?


Solution

  • Install dependencies:

    sudo apt-get install libappindicator0.1-cil-dev
    

    And then compile with

    dmcs -pkg:gtk-sharp-2.0,appindicator-sharp-0.1 file.cs