Log in or register to post comments

Missing Directive or Assembly Reference: IUnzipper & VuforiaAbstractConfigurationEditor

July 6, 2017 - 9:58am #1

I've started getting two errors involving missing Vuforia Editor Classes when building my Unity project: 

 

SharpZipLibUnzipper.cs

Error CS0246 The type or namespace name 'IUnzipper' could not be found (are you missing a using directive or an assembly reference?) 

VuforiaConfigurationEditor.cs

Error CS0246 The type or namespace name 'VuforiaAbstractConfigurationEditor' could not be found (are you missing a using directive or an assembly reference?) 

 

Using: 

Unity 5.6.1p1

vuforia-unity-6-2-10.unitypackage

 

Matt

Missing Directive or Assembly Reference: IUnzipper & VuforiaAbstractConfigurationEditor

July 27, 2017 - 1:45pm #5

I'm still getting these same errors even with the newest versions of both the SDK and Unity. Now what I take a closer look I think it might have something to do with the .NET framework assembly 'mscorlib'. I'm getting a warning saying that "Vuforia.UnityExtensions.Editor" can not be resolved because it has an indirect dependency on mscorlib 4.0.0.0 and my current target framework is 2.0.0.0. 

"Vuforia.UnityExtensions.Editor" is where both 'IUnzipper' and 'VuforiaAbstractConfigurationEditor' live so my guess is it's this version problem causing the errors. 

I'm not very familiar with .NET so I'm not sure if I need to somehow update my project or Visual Studio target framework to mscorlib 4.0.0.0 or if Vuforia.UnityExtensions.Editor is supposed to be readable on 2.0.0.0. Any insight would be great. Error message below: 

 

Severity Code Description Project File Line Suppression State

Warning  The primary reference "Vuforia.UnityExtensions.Editor" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework. BlueAR_videoserver.Editor

Windows 10

Mivrosoft Visual Studio 2017

Unity 2017.1.0f3

Vuforia 6-2-10

Matt

Missing Directive or Assembly Reference: IUnzipper & VuforiaAbstractConfigurationEditor

July 7, 2017 - 9:50am #4

I've tested on Unity 5.6.1f1, 5.6.1p1, and 5.6.2 and it has worked on all of them. I'm using MonoDevelop in these cases, but MVS shouldn't be an issue. I'll see if I can get a test with Visual Studio to see if I can repro the issue that way.

It might be worth re-downloading the SDK and trying a different version of Unity and test that in the meantime.

Thanks,

-Vuforia Support

Missing Directive or Assembly Reference: IUnzipper & VuforiaAbstractConfigurationEditor

July 6, 2017 - 6:42pm #3

Hm. I tried importing the Unity SDK into a new blank project and am still getting both errors.

The errors also only print to my VisualStudio Error List when building (not during Play) and if I have the scripts open, they don't print at all.

I'm hoping it's a version issue or something. What versions of Unity are supported by vuforia-unity-6-2-10? I'm currently using Unity 5.6.1p1 (a patched version) and Microsoft Visual Studio Community 2015 but I'll try to upgrade to 5.6.2 if that's a tried-and-true platform. 

Thanks! 

Missing Directive or Assembly Reference: IUnzipper & VuforiaAbstractConfigurationEditor

July 6, 2017 - 4:30pm #2

Hello Matt,

These references should be included with the Vuforia SDK. A fresh install of the SDK in a new Unity project isn't showing these issues for me.

The first thing I can think for you to check is make sure these two files are in the proper namespace. Both of these files should be in the namespace "Vuforia.EditorClasses."

If that is correct in both files, you could try re-importing the Vuforia SDK Unity Package to make sure all the files got added. Make sure you create a back-up of your project just to be safe.

Thanks,

-Vuforia Support

Log in or register to post comments