-
Notifications
You must be signed in to change notification settings - Fork 19
Unit with Nuget Package #9
Description
I got an error with Nuget Package on Test
[Test]
public void PCLStorage_test ()
{
var path = Path.Combine (Path.GetTempPath (), Path.GetTempFileName ());
var file = new PCLStorage.FileSystemFile (path);
Console.WriteLine (file.ToString ());
}
NUnitLite 0.9.0 (.NET 4.5)
Copyright 2012, Charlie Poole
Runtime Environment -
OS Version: Unix 15.5.0.0
Mono Version: 4.0.50524.0
2016-06-14 00:07:08.053 GuiUnit[4274:323137] warning: Could not load signature of PCLStorage.FileSystemFile:OpenAsync due to: Could not load file or assembly or one of its dependencies. assembly:System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member:
2016-06-14 00:07:08.054 GuiUnit[4274:323137] warning: Could not load signature of PCLStorage.IFile:OpenAsync due to: Could not load file or assembly or one of its dependencies. assembly:System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member:
Tests run: 3, Passed: 2, Errors: 1, Failures: 0, Inconclusive: 0
Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
Elapsed time: 00:00:00.0920000
Errors and Failures:
- PCLStorage_test (MacLibTest_Test.MyClass.PCLStorage_test)
System.TypeLoadException : Could not load type 'PCLStorage.FileSystemFile' from assembly 'PCLStorage, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null'.
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x10abee5a0 + 0x000c6> in :0