Clone the code to VS and use in a test Project

For easy access to the latest version and build your own plugin DLL from code, clone the Project in Visual Studio. First, copy the URL from this Projects home page:

https://git.lightsinline.se/products/VSTT-Plugins.git

Open Visual Studio Team Explorer, and click "Clone" under "Local Git Repositories"

gitclone

Click the "Clone" button at the bottom.

Open the solution and change to the Release config:

release

Build the solution. Copy the path of the DLL to clipboard:

build

In your Test Project, right click on References and choose add:

reference

Click on Browse -> Browse again, paste the path to the DLL you just built:

addreference

Verify the LIL_VSTT_Plugin has been added under References and is pointing to the correct DLL (the one you just built)

verifyref

Put the plugin DLL in a Project folder and commit it to your version Control

Instead of referencing the DLL you built above, you can copy it into a folder in your Project, and if you want, commit it to your repository with the Project. This way, your Project always has the correct version of the plugin when it is cloned/checked out somewhere else.

Create a folder for your plugin, for example Plugins, in your Project:

newfolder

Right click your new folder, and choose to add an existing item:

newitem

Paste the path which you copied from the output window after building for the DLL and click OK.

dlladded

Add a reference to the DLL as described earlier (see above). Make sure the path is correct and now Points to the one inside your Projects folder you just created. If not, remove it and add it again with the correct path (see above).

Make sure to check in the DLL if you want this. DLL files are not automatically put into the staging area in GIT, you need to manually stage it. You will find it under "Untracked" or "Excluded":

adduntracked

Once committed/checked in, it will now always be available to your Project.