locked
Question on assembly loading in multiplatform libraries RRS feed

  • Question

  • Different platforms need different assemblies with the same name, for example of type "System" or "System.Data". Our library wants to support both xbox and Windows. Windows uses a different assembly for System stuff, than the .net compact framework assembly in Xbox. 

    Some code is only valid when assembly XYZ is loaded.

    1. Is it possible to dynamically load the required assembly/ add a project reference based on what project configuration was selected?

    2. Is it possible to successfully compile code that only works with assembly ABC loaded, even though ABC is currently not loaded/referenced. For example with preprocessor defines? (i tried #if(xbox) but that didnt prevent compiler errors)

    Friday, March 26, 2010 11:53 AM

Answers

  • Try the CLR forum under the .Net development category.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    • Marked as answer by Dreada Friday, March 26, 2010 4:09 PM
    Friday, March 26, 2010 4:02 PM