Hi there - I was intending on using Visual Studio when building the solution whenever I wanted to modify some of the code. However, I had an issue with the .NET framework ( http://puu.sh/nzIIj/c06c62c4e5.png ) requiring a one-way upgrade. Once I built with all the references set up ( http://puu.sh/nzJ4J/84f594bbf1.png ) I had many errors.

I changed the target framework from .NET Framework 2 to .NET Framework 4 and the build errors were fixed, but when I imported the new ORKFramework.dll to Unity I got an unhandled exception ( http://puu.sh/nzJuh/e390952f1f.png ).

Any ideas on what to do to fix this - or if you anybody has compiled the project with Visual Studio before?

Thanks!
  • I'm using VS all the time, you need to change the framework to 3.5 at most.
  • edited March 2016
    When you say at most do you mean 3.5 and below?
    Post edited by deckrocket on
  • I've had no problem compiling with VS on PC, I imported the VS Tools choice in Unity 5.

    But....I went back to using mono because I do my serious game-making on Mac where I use mono and somehow I think it's better to keep that the same on both platforms.

    I use Visual Studio 2015 on PC but not for Unity right now. When I did use it for Unity I had no problem.
  • I'm compiling in VS since about half a year and had similar issues first. I'm compiling with the Unity 3.5 .net Subset Base Class Libraries target framework - which should be available when you've installed the Unity VS extension.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Ah perfect! I think that was the problem. I have now set my target framework to Unity 3.5 .net Subset Base Class Libraries and when I import the DLL to Unity I do not get any compile errors.

    Thank you for the support forum friends!
  • One more thing - do you have the ORK Framework inside the Unity project, or do you have it in its own separate project solution and you just build and move the DLL to the appropriate folder whenever you make changes?

    I'm trying to figure out what the best method is - and currently I will have two solutions (one for the Unity project and scripts I add there, one for the ORK Framework and changes I make there).
  • I'd recommend having them as separate solutions. If you want them in a single solution make sure you don't have the ORK source files in your Unity project (folder), otherwise this'll lead to problems due to the source and DLL files having duplicate classes.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.