Table of Contents

Method Compile

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

Compile(string, string)

Compiles a plugin given as a folder with a .csproj into an assembly and its PDB, or takes them from the cache where the project and its sources are unchanged since they were last compiled. This loader cannot (CanCompile is false).

public virtual CadPluginBuild Compile(string name, string projectPath)

Parameters

name string

The plugin's name, which names its folder in the cache.

projectPath string

The full path of the plugin's .csproj; its folder holds the sources.

Returns

CadPluginBuild

The assembly built, or the errors that kept it from being built.

Exceptions

NotSupportedException

Always: this loader compiles nothing.