oxygeneremobjects

remobjects c# share code between classes


Using remobjects c#, does anyone know how code can be shared between projects.

I've created a class library and added it as a reference to my android and osx project but i cant access the classes from my library on android or osx using remobject c#

Thanks.


Solution

  • found an answer to my question:

    If you want to share code between different platforms you can add 1 file to multiple projects (when in the Add Existing File dialog, use the "Add As Link" option under the "Add" button). So say you have 3 projects, one for android, one for .net and one for osx you could have a layout like:

    Android\MyProject.hydrogene<< these use linked files
    iOS\MyProject.hydrogene<< these use linked files
    Net\MyProject.hydrogene << these use linked files
    Common\*.pas << shared files here
    

    Reference: http://talk.remobjects.com/t/share-code-between-projects/4790/4