Skip to content

Instantly share code, notes, and snippets.

@stirno
Last active August 29, 2015 14:01
Show Gist options
  • Save stirno/c3eddfb7300020e3f2fb to your computer and use it in GitHub Desktop.
Save stirno/c3eddfb7300020e3f2fb to your computer and use it in GitHub Desktop.
Debugging a PVC Plugin
1. Pull source for pvc
git clone https://github.com/pvcbuild/pvc.git
2. Build source.
3. Add reference to your compiled plugin.
4. Open Pvc.CLI/Commands/TaskCommand.cs, add your plugin to the scriptcs context after 'services.Executor.Initialize(assemblies, scriptPacks);'
services.Executor.AddReferenceAndImportNamespaces(new[] { typeof(PvcPlugin) });
5. Run debugger, step into your plugin and make things happen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment