Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Unit with Nuget Package  #9

@simeon052

Description

@simeon052

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:

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions