¿En qué podemos ayudarte?
< Todos los temas

Creation of PlugIn TPV

Here are the steps to create an example plugin from Visual Studio:

We will start Visual Studio we will select Create a new project in Get started or using the menu choose the option File / New / Project…

In the screen of Create a new project we will select Class Library (.NET Framework) and click on Next.

In the screen of Configure your new project we will indicate the Project name, Location and Framework that we are going to use, version .NET Framework 4 should be selected.

Once the project is created we must add the reference to the library AliquoTPV.Core and AliquoTPV.Extensibility, which can be found in the installation directory of Aliquo TPV, "C:\Program Files (x86)\Aliquo TPV" and System.ComponentModel.Composition that can be found in Assemblies. It is important that you mark not to make a local copy of these references.

Once the references have been added, you must implement the Command class, which is inside the namespace AliquoTPV.Extensibility.

In addition to implementing the plugin interface to develop and give functionality to the plugin, we must also include the attributes and metadata that allow identifying the plugin type, so that Aliquo TPV can recognize it.

To start the debugging, you will specify, in the properties of the project, where the application and the compilation folder are located.

In the section Build we will choose as configuration option Debug, indicating the Output path "C:\Program Files (x86)\Aliquo TPV\PlugIn\"

In the section Debug we will select the Start external program of Start action and indicate the complete path where Aliquo TPV is installed (C:\Program Files (x86)\Aliquo TPV\ AliquoTPV.exe).

Tabla de contenidos