Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Can I use DoNet4.0 as an external library in unity?

Discussion in 'Scripting' started by chansey97, Mar 7, 2015.

  1. chansey97

    chansey97

    Joined:
    Sep 21, 2012
    Posts:
    59
    I have written some code which used some donet4.0 feature (eg: covariance) with vs2012.

    These code can't be compiled successfully in unity 4.x. (It could be compiled sucessfully in vs2012 - Target Framework 4.0)

    My question is :
    1. Can I compile my source code as an external library (Target Framework 4.0) with vs2012 and import it to unity?

    2. Does the newest unity(5.0) support donet4.0 or 4.5?
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    1. any dll should in theory work, providing you write the essential glue.
    2. no, but it's planned after IL2CPP has been rolled out.