Hi,
I have an ASP.Net Core 1.1.1 app that uses the DropBox API. When starting Visual Studio 2017 I get an error message:
Package Dropbox.Api 4.3.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Dropbox.Api 4.3.0 supports: - net45 (.NETFramework,Version=v4.5) - portable-dnxcore50+net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=net45+wp80+win8+wpa81+dnxcore50) - portable-net40+sl5+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile328)
However, this message disappears when I compile and things seem to run just fine, except when I do Unit tests (XUnit). Then I get this error :
System.AggregateException : One or more errors occurred. (Could not load file or assembly 'Dropbox.Api, Version=4.0.0.0, Culture=neutral, PublicKeyToken=310f0e82fbb45d01'. The system cannot find the file specified.)
---- System.IO.FileNotFoundException : Could not load file or assembly 'Dropbox.Api, Version=4.0.0.0, Culture=neutral, PublicKeyToken=310f0e82fbb45d01'. The system cannot find the file specified.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at xUnitTest.test.FeedsAdminControllerShould.ReturnViewAndProperModelForPostEdit() ....[rest removed]
-What is going on here? How come the app works fine, but fails when testing?
-Is there an older cached version hanging around or something?
-Should Dropbox.Api 4.3.0 be compatible with .net core? If not, which version of Dropbox API should I use?
-Has this anything to do with the phasing out of version 1 of the API?
Any and all comments are appreciated,
Oskar