Changes between Version 13 and Version 14 of Documentation/DevelopmentCenter/CreateNewPluginUsingVS
- Timestamp:
- 06/26/14 19:00:52 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/DevelopmentCenter/CreateNewPluginUsingVS
v13 v14 11 11 * In this guide we'll use "GreatIdea" as name and choose the `extension` folder as location 12 12 13 [[Image(create_solution.png )]]13 [[Image(create_solution.png, 70%, align=center)]] 14 14 15 15 Next we add a new project to this solution. … … 31 31 32 32 '''Assembly information''' 33 We set the assembly version to the same value as the current HeuristicLab version by convention. I n the official HeuristicLab repository the revision part is synchronized with the SVN revision number, it can be simply set to 0 in our case. Changing major or minor version numbers in the course of development marks a breaking change to previously saved files. If HeuristicLab wants to load an item of a plugin with version 3.3.8 it will accept the same plugin in version 3.3.9 to open it. However, it will reject the plugin when its major or minor is different (e.g. 3.2.7, 3.4.3 or 4.0.1). The "Assembly file version" is not used by HeuristicLab and can be set without any restrictions.33 We set the assembly version to the same value as the current HeuristicLab version by convention. It should only include major and minor, build and revision should always remain 0. In the official HeuristicLab repository the revision part is synchronized with the SVN revision number, it can be simply set to 0 in our case. The assembly file version can include the whole version string. 34 34 35 35 '''Build''' … … 39 39 On the "Debug" tab choose "Start external program" and select HeuristicLab.exe inside StableRoot\bin - this setting is stored in the .csproj.user file. 40 40 41 [[Image(debug_options.png )]]41 [[Image(debug_options.png, align=center)]] 42 42 43 43 '''Signing''' 44 44 Activate "Sign the assembly" and create a new key or use the HeuristicLab.snk inside the plugins of StableRoot. Otherwise call the new key "TheKey", but deselect the password option. 45 45 46 Save and close the project's properties. 46 Save and close the project's properties. These changes ensure that the generated plugin is automatically added as a plugin to the HeuristicLab build and that we can use our solution to start a debugging session (shortcut <F5>). Now, we want to make this class library a HeuristicLab plugin. 47 47 48 48 === References === 49 Every HL plugin has at least a reference to !PluginInfrastructure as this is needed for the Plugin.cs file. Therefore add a reference to this plugin:49 Every plugin has at least a reference to HeuristicLab.PluginInfrastructure as this is needed for the Plugin.cs file. Therefore add a reference to this plugin: 50 50 51 51 [[Image(add_reference.png)]] … … 73 73 }}} 74 74 75 '''Important''': Changing major or minor version numbers in the course of development marks a breaking change to previously saved files. If HeuristicLab wants to load an item of a plugin with version 3.3.8 it will accept the same plugin in version 3.3.9 to open it. However, it will reject the plugin when its major or minor is different (e.g. 3.2.7, 3.4.3 or 4.0.1). The "Assembly file version" is not used by HeuristicLab and can be set without any restrictions. 75 76 76 77 === Build path ===