User Tools

Site Tools


gemhost_csharp_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gemhost_csharp_example [2023/03/14 22:33] – wikiadmingemhost_csharp_example [2023/03/14 22:40] (current) – wikiadmin
Line 22: Line 22:
 Here's the detailed steps using the GEMHost sample project as an example: Here's the detailed steps using the GEMHost sample project as an example:
  
-  -     Open a command prompt or PowerShell window. +* Open a command prompt or PowerShell window. 
-  -  +    
-  -     Navigate to your project directory. +* Navigate to your project directory. 
-  -  +    
-  -     Run the following commands: +* Run the following commands: 
-  -  +    
-  -     dotnet add package IKVM +       dotnet add package IKVM 
-  -     dotnet add package IKVM.Image.JRE +       dotnet add package IKVM.Image.JRE 
-  -  +    
-  -     Open your project's .csproj file in a text editor; you should see the following lines (your IKVM version can be different): +* Open your project's .csproj file in a text editor; you should see the following lines (your IKVM version can be different): 
-  -     <ItemGroup> +        
-  -     <PackageReference Include="IKVM" Version="8.4.5" /> +       <ItemGroup> 
-  -     <PackageReference Include="IKVM.Image.JRE" Version="8.4.5" /> +           <PackageReference Include="IKVM" Version="8.4.5" /> 
-  -     </ItemGroup> +           <PackageReference Include="IKVM.Image.JRE" Version="8.4.5" /> 
-  -  +       </ItemGroup> 
-  -     Add the following lines to your .csproj file: +    
-  -     <ItemGroup> <IkvmReference Include="lib\GEMHostDotNetRuntime.jar"> <AssemblyName>GEMHostDotNetRuntime</AssemblyName> <AssemblyVersion>1.0.0.0</AssemblyVersion> <AssemblyFileVersion>1.0.0.0</AssemblyFileVersion> </IkvmReference> </ItemGroup> +* Add the following lines to your .csproj file: 
-  -  +       
-  -     Replace "lib\GEMHostDotNetRuntime.jar" with the path to the generated jar file. You can also change the assembly information as needed. +      <ItemGroup>  
-  -  +          <IkvmReference Include="lib\GEMHostDotNetRuntime.jar">  
-  -     Save and close the .csproj file. +              <AssemblyName>GEMHostDotNetRuntime</AssemblyName>  
-  - +              <AssemblyVersion>1.0.0.0</AssemblyVersion>  
 +              <AssemblyFileVersion>1.0.0.0</AssemblyFileVersion>  
 +          </IkvmReference>  
 +      </ItemGroup> 
 +  
 +* Remember to replace "lib\GEMHostDotNetRuntime.jar" with the path to the generated jar file. You can also change the assembly information as needed. 
 + 
 +* Save and close the .csproj file. 
 + 
 +**Sample Host** 
 The attached example demonstrates a host application.  It is a complete, functioning GEM host. The attached example demonstrates a host application.  It is a complete, functioning GEM host.
  
gemhost_csharp_example.1678847639.txt.gz · Last modified: by wikiadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki