Version 2 (modified by dglaser, 9 years ago) (diff) |
---|
How to Implement A New HeuristicLab WebApp Plugin
In the following Guide we will create a simple HeuristicLab WebApp plugin.
A new project
We will now create a new Visual Studio project which will become the WebApp plugin.
- In Visual Studio select "File > New > Project..." or press <Ctrl+Shift+N>
- Use the "Class Library" template
- Use "HeuristicLab.Services.WebApp.Example" as name
Configuring the project
References
Every plugin has at least a reference to Microsoft ASP.NET Web API, which is needed to create a controller.
- Open the NuGet Package Manager and add a reference to Microsoft ASP.NET Web API
- If database access is required, add project references to HeuristicLab.Services.Hive and HeuristicLabServices.DataAccess
- Set the "Copy Local" property on these references to false. This references are provided by the WebApp and thus don't have to be deployed with every plugin.
Folder structure
Creating the Plugin definition file
TODO
Example Plugin
TODO
WebApi
TODO
WebApp
TODO
View
TODO
Controller
TODO
Service
TODO
Attachments (5)
- create_project_vs.PNG (30.7 KB) - added by dglaser 9 years ago.
- nuget_project_references.PNG (48.9 KB) - added by dglaser 9 years ago.
- references.PNG (9.4 KB) - added by dglaser 9 years ago.
- solution_project_references.PNG (25.1 KB) - added by dglaser 9 years ago.
- folder_structure.PNG (4.6 KB) - added by dglaser 9 years ago.
Download all attachments as: .zip