Skip to content
Snippets Groups Projects
Commit 74a0f499 authored by Sylvain Renault's avatar Sylvain Renault
Browse files

New descr.

parent 72505b3a
No related branches found
No related tags found
1 merge request!2Compatibility with new NSwag (14.0.7.0)
...@@ -27,16 +27,39 @@ The simplest way to check out the project including the submodule is to use the ...@@ -27,16 +27,39 @@ The simplest way to check out the project including the submodule is to use the
The referenced submodule contains the OpenAPI specification of the ISG ARF World Storage. To checkout the newest version of it use the following commands: The referenced submodule contains the OpenAPI specification of the ISG ARF World Storage. To checkout the newest version of it use the following commands:
cd ARF005WorldStorageAPI cd openapi
git checkout master git checkout master
cd .. cd ..
# Installing NSwag
npm install nswag -g
You can check the version with
npx nswag version
# Code Generation # Code Generation
To generate the code and the DLLs use the following commands: To generate the code and the DLLs use the following commands:
npm install npx nswag run WorldStorageNSwag.json
npm run build npx nswag run WorldAnalysisNSwag.json
The generated C# modules (one per definition file) are then contained in the folder `client/csharp-nswag`.
# How to proceed then?
Copy the cs file(s) to your CSharp project or Unity asset folder
## Unity
Add the NewtonSoft package:
"com.unity.nuget.newtonsoft-json": "3.2.1",
Change the Unity prefs to use the NET Framework (not only 2.1)
Add a file "csc.rsp":
-r:System.ComponentModel.DataAnnotations.dll
The generated library and its depencies are then contained in the folder `generated_client/bin`.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment