Commit 74a0f499 authored by Sylvain Renault's avatar Sylvain Renault
Browse files

New descr.

parent 72505b3a
Loading
Loading
Loading
Loading
+27 −4
Original line number Diff line number Diff line
@@ -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:

    cd ARF005WorldStorageAPI
    cd openapi
    git checkout master
    cd ..

# Installing NSwag

    npm install nswag -g

You can check the version with

    npx nswag version

# Code Generation

To generate the code and the DLLs use the following commands:

    npm install
    npm run build
    npx nswag run WorldStorageNSwag.json
    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`.