Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

[unity 2017.1.1] Compatibility of .Net Framework (4.6) dll with mono dlls

Discussion in 'Experimental Scripting Previews' started by migupta, Jan 25, 2018.

  1. migupta

    migupta

    Joined:
    Jan 23, 2018
    Posts:
    11
    I am using player settings : Experimental .Net 4.6, backend .Net.
    I have following two questions
    1. are dlls present in C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.5 only supported for reference in visual studio 2017.
    2. There few dlls present in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\ are not available in mono. Why? Is there any workaround for it?
     
  2. joncham

    joncham

    Unity Technologies

    Joined:
    Dec 1, 2011
    Posts:
    276
    1. If you want to reference assemblies not included by default you should add a mcs.rsp file with the needed references: https://docs.unity3d.com/Manual/PlatformDependentCompilation.html

    2. What assemblies are these?
     
  3. migupta

    migupta

    Joined:
    Jan 23, 2018
    Posts:
    11
  4. joncham

    joncham

    Unity Technologies

    Joined:
    Dec 1, 2011
    Posts:
    276
    These assemblies would definitely fall outside the scope of APIs we support.

    First, these assemblies from .NET just wrap native functionality already present on Windows. I don't think we will put in the effort to emulate this API across other platforms.

    Second, again you are mentioning a path involving reference assemblies. Even if we supported this API/assembly, reference assemblies are not what you run again. You cannot copy/use them in any case.
     
  5. migupta

    migupta

    Joined:
    Jan 23, 2018
    Posts:
    11