From version < 19.1 >
edited by sylvain
on 2017/04/21 16:52
To version < 20.1 >
edited by sylvain
on 2017/04/21 16:58
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -7,10 +7,16 @@
7 7  
8 8  = Generating the C# wrapper =
9 9  
10 -The C# wrapper is automatically generated from the documentation in the code (like the Python/C++ wrappers).
10 +The C# wrapper is automatically generated from the documentation in the code (like the Python/C++ wrappers) which is created when Linphone is compiled.
11 11  
12 -The output of is one file named LinphoneWrapper.cs that contains everything. Depending on your project structure, you must copy it to the right place:
12 +So to generate the C# wrapper, you must first compile Linphone successfuly. Once you did it, go into the wrappers/csharp/ directory of the linphone repository, and execute the following command:
13 13  
14 +{{code}}
15 +python genwrapper.py $LINPHONE_PATH/coreapi/help/doc/xml/
16 +{{/code}}
17 +
18 +The output of is one file named LinphoneWrapper.cs that contains everything. Depending on your project structure, you must copy it to the right place (you can use genwrapper's -o argument to create the file directly at the right place):
19 +
14 14  * If you use a Native Portable project (using Portable Class Library, PCL), LinphoneWrapper.cs can't go in it because DllImport ins't supported. This means you have to copy LinphoneWrapper.cs in each one of your target Projects (for example LinphoneXamarin.Droid, LinphoneXamarin.iOS, etc...) ;
15 15  * If you use a Native Shared project, LinphoneWrapper.cs can go in the shared project as long as each target project references the shared one.
16 16