Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gemhost_csharp_example [2020/05/12 18:39] wikiadmin created |
gemhost_csharp_example [2023/03/14 21:40] (current) wikiadmin |
||
---|---|---|---|
Line 4: | Line 4: | ||
Once you have this SECS/GEM model, you can deploy it with one-button push to a .NET assembly. | Once you have this SECS/GEM model, you can deploy it with one-button push to a .NET assembly. | ||
+ | |||
+ | **One-time .NET Project Setup** | ||
+ | |||
+ | When you first create your project you will need to modify your .csproj to include the TransSECS generated jar. You need to modify the ItemGroup to include the generated .jar file Reference and AssemblyName. | ||
+ | |||
+ | The names should follow your TransSECS project name, so if you're using the GEMHost sample project included with TransSECS and you have copied that jar in the lib folder of your project then you may have a lines like this: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | If your project was " | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | |||
+ | Here's the detailed steps using the GEMHost sample project as an example: | ||
+ | |||
+ | * Open a command prompt or PowerShell window. | ||
+ | |||
+ | * Navigate to your project directory. | ||
+ | |||
+ | * Run the following commands: | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | * Open your project' | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | * Add the following lines to your .csproj file: | ||
+ | | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | * Remember to replace " | ||
+ | |||
+ | * Save and close the .csproj file. | ||
+ | |||
+ | **Sample Host** | ||
The attached example demonstrates a host application. | The attached example demonstrates a host application. | ||
Line 55: | Line 104: | ||
Here's the full code for the C# Host example. | Here's the full code for the C# Host example. | ||
- | !!GEMHostExample.cs | + | GEMHostExample.cs |
<code c#> | <code c#> |