Class CadPluginBuild
What compiling a plugin given as a folder with a .csproj gave (Compile(string, string)): the assembly and
its PDB, or the errors that kept it from being built. A plugin folder Stairs that compiles gives Stairs.dll and
Stairs.pdb in the cache; one with an unknown name on line 12 of Stairs.cs gives one error,
Stairs.cs(12,9): error CS0103: The name 'x' does not exist in the current context; one whose Stairs.csproj
holds a condition, which is not evaluated, gives the build and the warning
Stairs.csproj: <PropertyGroup Condition="'$(Configuration)' == 'Debug'"> was not read (conditions are not evaluated).
public sealed class CadPluginBuild
- Inheritance
-
CadPluginBuild
- Inherited Members
Constructors
- CadPluginBuild(int, IReadOnlyList<string>)
Initializes a build that failed.
- CadPluginBuild(string, string, bool, IReadOnlyList<string>)
Initializes a build that succeeded.
Properties
- AssemblyPath
Gets the full path of the assembly; null where the build failed.
- ErrorCount
Gets the number of errors; 0 where the build succeeded.
- Errors
Gets the error lines, at most the first 20, sorted by file, line, column and id; empty where the build succeeded.
- FromCache
Gets whether the assembly was taken from the cache, the project and its sources unchanged since they were last compiled.
- PdbPath
Gets the full path of the assembly's PDB; null where the build failed.
- Succeeded
Gets whether the assembly was built (or found in the cache).
- Warnings
Gets the lines about what the project holds that is not read (a condition, a Directory.Build.props, a target framework that is not .NET 8), in the order the project gives them; empty where the build failed or the project was read whole.