Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

 

scrollbar

Exercise outline

The goal of this exercise is to show how a new plugin can be developed using the Delta Shell Application plugin Nuget package. The Delta Shell NuGet package will be used in order to make a quick start.

...

Info

General information about NuGet can be found at http://docs.nuget.org/.

Information on how to install NuGet as a Visual Studio extension can be found at http://docs.nuget.org/docs/start-here/installing-nuget.

Note

Since As of Visual Studio 2013, NuGet is installed by default. However, you have to make sure that it is updated to the latest version by checking the Extension and Updates window (click TOOLS | Extensions and Updates... | Updates | Visual Studio Gallery). When If a previous version is used - , installing the Delta Shell application plugin package might result in the following error:

...

The Delta Shell application plugin package is build built on the teamcity TeamCity build server, and so we . We must add the build server package feed address to the package locations of nuget. Open NuGet. This can be done, by opening the options of Visual studio (click TOOLS | Options) and browse to the Nuget package manager settings.section Package Sources in the settings for the NuGet Package Manager.

 

Image Added

In the Package Sources, add a new source by using the + button and add the following information :

 

Image Removed

It is also possible to use the packages from a local source, if you have the files on your system. In this case, the source would be the folder in the computer in which the NuGet package files can be found. For example:

NameLocal Packages
SourceD:\localNuGet

 Image Added


In order to make use of the Delta Shell Application Plugin, open 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 TeamCityAuth like shown in the following image:

Image Removed

source that you want to use. For example, if you select TeamCityAuth, shown in a solid line in the figure, Visual Studio will contact the build server above indicated, and will show the available packages in there:

Image Added

Alternatively, if you want to use your local source, simply select the previously indicated feed source, Local packages in a dashed line in the figure above.

In other versions of Visual Studio, the interface can be slightly different, for example in VS 2015, the source of the packages can be found in a drop down menu on the NuGet Solution view (highlighted in orange):

Image Added

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

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 Select the Deltashell.Plugins.VolumeModel project as project to add the Nuget package to :

Complete the install by pressing ok. This may take a while because Nuget will now download the DeltaShell framework and runs install scripts to configure your project for use as a deltashell plugin.

...

Run the application and open the Plugins window (File | Plugins ). Ensure both the application plugin and the gui plugin are visible in the overview of loaded plugins:

scrollbar