1 | using HeuristicLab.PluginInfrastructure;
|
---|
2 |
|
---|
3 | namespace RegressionProblemInstances {
|
---|
4 | [Plugin("RegressionProblemInstances", "1.0")]
|
---|
5 | [PluginFile("RegressionProblemInstances.dll", PluginFileType.Assembly)] // each plugin represents a collection of files. The minimum is one file; the assembly.
|
---|
6 |
|
---|
7 | // Usually your plugin references other HeuristicLab dlls. If you are referencing files (e.g. assemblies)
|
---|
8 | // from another plugin the corresponding plugin should be added as a dependency.
|
---|
9 | // Usually, if this information is incorrect you will still be able to use you plugin, but HL functionality
|
---|
10 | // which uses plugin dependency resolution will not work correctly. For instance if plugin dependencies are
|
---|
11 | // not correct then your plugin cannot be used on HeuristicLab.Hive
|
---|
12 | //
|
---|
13 | [PluginDependency("HeuristicLab.Common", "3.3")]
|
---|
14 | [PluginDependency("HeuristicLab.Core", "3.3")]
|
---|
15 | [PluginDependency("HeuristicLab.Data", "3.3")]
|
---|
16 | [PluginDependency("HeuristicLab.Optimization", "3.3")]
|
---|
17 | [PluginDependency("HeuristicLab.Problems.DataAnalysis", "3.4")]
|
---|
18 | [PluginDependency("HeuristicLab.Problems.Instances", "3.3")]
|
---|
19 | [PluginDependency("HeuristicLab.Random", "3.3")]
|
---|
20 |
|
---|
21 | // HL plugin infrastructure discovers plugins on startup by trying to load all .dll and .exe files and looking for
|
---|
22 | // classes deriving from PluginBase. The meta-information for the plugin class is specified in the attributes
|
---|
23 | // above, and used by plugin infrastructure primarily for plugin dependency resolution.
|
---|
24 |
|
---|
25 | // Steps:
|
---|
26 | // (1) Check out HL source code (e.g. the trunk version)
|
---|
27 | // (2) Build external libraries HeuristicLab.ExtLibs.sln using the Build.cmd (in the path of the HL source code)
|
---|
28 | // (3) Build HeuristicLab 3.3.sln using the Build.cmd
|
---|
29 | // (4) Build this project. The output path for binaries is set to "".
|
---|
30 | // this assumes you have the following folder structure
|
---|
31 | // <ROOT>
|
---|
32 | // |..hl
|
---|
33 | // |..branches
|
---|
34 | // | |..Templates
|
---|
35 | // | |..EmptyPlugin
|
---|
36 | // |..trunk
|
---|
37 | // |.. bin
|
---|
38 |
|
---|
39 | // (5) Check that the output file has been added to the HL binaries folder (hl/trunk/bin/EmptyPlugin.dll)
|
---|
40 | // (6) Start hl/trunk/bin/HeuristicLab.exe and open the "Plugin Manager".
|
---|
41 | // Make sure your EmptyPlugin appears in the list of loaded plugins
|
---|
42 | public class Plugin : PluginBase {
|
---|
43 | }
|
---|
44 | }
|
---|