.NET Framework dependency errors in Unity 2017.1
Re: .NET Framework dependency errors in Unity 2017.1
Ok, thanks Joel, I'll wait for the next Unity update.
Re: .NET Framework dependency errors in Unity 2017.1
Appreciate it Joel, hope this gets sorted out!
Re: .NET Framework dependency errors in Unity 2017.1
Hi all,
Could anyone who's encountering this issue do me a quick favour...
Would you be able to send a bug report to Unity? Because we can't replicate the error at our end, I'm unable to send them a project which replicates the error.
If you could tell them that the issue seems to be that their build process is changing the dependencies of our ES2.dll to System 4.0.0.0 and System.Core 4.0.0.0, when they should be 2.0.0.0 and 3.5.0.0 respectively. If it's easier, just give them a link to this post
For anyone who wants to test this out for themselves, I've created a very basic script which outputs the dependencies of ES2.dll and outputs them to console in the Editor.
And here's the dependency tree of the DLL after Unity seems to have post-processed it (kindly emailed to me by someone who is also encountering this issue):
Could anyone who's encountering this issue do me a quick favour...
Would you be able to send a bug report to Unity? Because we can't replicate the error at our end, I'm unable to send them a project which replicates the error.
If you could tell them that the issue seems to be that their build process is changing the dependencies of our ES2.dll to System 4.0.0.0 and System.Core 4.0.0.0, when they should be 2.0.0.0 and 3.5.0.0 respectively. If it's easier, just give them a link to this post
For anyone who wants to test this out for themselves, I've created a very basic script which outputs the dependencies of ES2.dll and outputs them to console in the Editor.
using UnityEngine; using System.Reflection; public class RecursivelyGetDependencies : MonoBehaviour { // Use this for initialization void Start () { var assembly = Assembly.Load("ES2"); foreach(var a in assembly.GetReferencedAssemblies()) Debug.Log(a.ToString()); } }Which for us outputs:
And here's the dependency tree of the DLL after Unity seems to have post-processed it (kindly emailed to me by someone who is also encountering this issue):
Re: .NET Framework dependency errors in Unity 2017.1
I'll give that a shot tonight. Just to reiterate, I'm able to run the project just fine via Unity, but I can't compile in MonoDevelop. Is that the same issue everyone else is having?
Re: .NET Framework dependency errors in Unity 2017.1
Yep, that's the same issue I'm having jinxology. I've had to remove ES2 from my project for the time being so I can start up the debugger.
Re: .NET Framework dependency errors in Unity 2017.1
That is indeed the same error. If you could send a bug report to Unity that would be greatly appreciated.jinxology wrote:I'll give that a shot tonight. Just to reiterate, I'm able to run the project just fine via Unity, but I can't compile in MonoDevelop. Is that the same issue everyone else is having?
Also just one thing for everybody to check...
When you import Easy Save and it asks if you want to run the API updater, are you pressing Yes or No? There's a bug where the API updater sometimes incorrectly modifies the DLL, making the DLL unusable, but I'm unsure if this is related. If someone could try removing and re-importing Easy Save and ensure that it doesn't run the API updater, that would be greatly appreciated.
All the best,
Joel
Re: .NET Framework dependency errors in Unity 2017.1
Hey Joel, I gave your suggestion of not updating the APIs a shot and it actually works now! I can start up the debugger and I don't get those dependency errors anymore. Anyone else having this problem should see if it works for them as well.
Re: .NET Framework dependency errors in Unity 2017.1
That's fantastic news, thanks for trying it out for me!CantSleep wrote:Hey Joel, I gave your suggestion of not updating the APIs a shot and it actually works now! I can start up the debugger and I don't get those dependency errors anymore. Anyone else having this problem should see if it works for them as well.
In that case we might be able to provide a workaround to this also, but in the meantime anyone who has this issue should:
- Remove Assets/Plugins/ES2.dll from your project.
- Reimport from the Asset Store.
- Ensure that you do not let it run the API Updater when prompted.
Joel
Re: .NET Framework dependency errors in Unity 2017.1
That worked for me! I am still getting this warning:
E:\Data\Dev\MMOSim\Assets\Easy Save 2\Types\ES2_AudioClip.cs(14,14): Warning CS0618: 'UnityEngine.AudioClip.Create(string, int, int, int, bool, bool)' is obsolete: 'The _3D argument of AudioClip is deprecated. Use the spatialBlend property of AudioSource instead to morph between 2D and 3D playback.' (CS0618) (Assembly-CSharp)
Outside of this, I've had so many weird "I just need to reboot" or "this suddenly stopped happening" problems with Unity since upgrading to 2017.1.
E:\Data\Dev\MMOSim\Assets\Easy Save 2\Types\ES2_AudioClip.cs(14,14): Warning CS0618: 'UnityEngine.AudioClip.Create(string, int, int, int, bool, bool)' is obsolete: 'The _3D argument of AudioClip is deprecated. Use the spatialBlend property of AudioSource instead to morph between 2D and 3D playback.' (CS0618) (Assembly-CSharp)
Outside of this, I've had so many weird "I just need to reboot" or "this suddenly stopped happening" problems with Unity since upgrading to 2017.1.
Re: .NET Framework dependency errors in Unity 2017.1
Thankfully the AudioClip warning is unrelated, and happens because we have to include a deprecated (but still functioning) method to ensure backwards compatibility.
However, if you're not saving/loading AudioClips, you can remove the warning by deleting Assets/Easy Save 2/Types/ES2_AudioClip.cs, and then go to Assets > Easy Save 2 > Manage Types and press Refresh ES2Init.
All the best,
Joel
However, if you're not saving/loading AudioClips, you can remove the warning by deleting Assets/Easy Save 2/Types/ES2_AudioClip.cs, and then go to Assets > Easy Save 2 > Manage Types and press Refresh ES2Init.
All the best,
Joel