Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed three typos.

...

Start Visual Studio and create a new C# project (File | New | Project...) by configuring the project wizard as shown in the following image:

 

A new solution should will be created with the structure shown in the following figure:


The default
Remove the class added by default, named Class1.cs, must be removed.

Add the Delta Shell application plugin package to the project using NuGet

...

Once it has been set up where the NuGet package for Delta Shell application pluginm can plugin can be found, this package needs to be installed in the solution that we have created at the beginning of this tutorial. In order to do this, open the NuGet package manager (right click the solution | Manage NuGet Packages for Solution...) and search for the Delta Shell application plugin package in the source that you want to use. For example, if you select tyhe source called TeamCityAuth, shown in a solid blue line in the left of the figure, Visual Studio will contact the build server specified above, and it will show the available packages in there:

...

In either case, proceed to install the Delta Shel Shell Application plugin onto the solutiionsolution.

In Visual Studio 2013, you will be asked to select the project into which you want to INSTALL the NuGet package. Select Deltashell.Plugins.VolumeModel :

...

Add a new class named VolumeModelApplicationPlugin to the project, using . Use the following code underneath in that file to describe the application part of the plugin:

Code Block
languagec#
using DelftTools.Shell.Core;
using Mono.Addins;

namespace DeltaShell.Plugins.VolumeModel
{
    [Extension(typeof(IPlugin))]
    public class VolumeModelApplicationPlugin : ApplicationPlugin
    {
        public override string Name
        {
            get { return "VolumeModelApplication"; }
        }
        public override string DisplayName
        {
            get { return "Volume model application"; }
        }
        public override string Description
        {
            get { return "Application plugin of the volume model application"; }
        }
        public override string Version
        {
            get { return "1.0"; }
        }
        public override string FileFormatVersion
        {
            get { return "1.0"; }
        }
    }
}

...

Now, create a new class called VolumeModelGuiPlugin to the project and add the following code describing Gui part of the plugin:

Code Block
languagec#
using DelftTools.Shell.Core;
using DelftTools.Shell.Gui;
using Mono.Addins;
namespace DeltaShell.Plugins.VolumeModel
{
    [Extension(typeof(IPlugin))]
    public class VolumeModelGuiPlugin : GuiPlugin
    {
        public override string Name
        {
            get { return "VolumeModelApplicationUI"; }
        }
        public override string DisplayName
        {
            get { return "Volume model application (UI)"; }
        }
        public override string Description
        {
            get { return "Gui plugin of the volume model application"; }
        }
        public override string Version
        {
            get { return "1.0"; }
        }
        public override string FileFormatVersion
        {
            get { return "1.0"; }
        }
    }
}

...