I'm referencing RavenDb.Client from NuGet in a .NET Framework 4.6.2 (machine doesn't have either coreclr or framework 4.7.x installed) targeted app and getting the following error:
System.TypeInitializationException: The type initializer for 'Sparrow.Platform.PlatformDetails' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at Sparrow.Platform.PlatformDetails..cctor()
--- End of inner exception stack trace ---
at Raven.Client.Http.RequestExecutor.CreateHttpMessageHandler(X509Certificate2 certificate, Boolean setSslProtocols)
at Raven.Client.Http.RequestExecutor.CreateClient()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at Raven.Client.Http.RequestExecutor..ctor(String databaseName, X509Certificate2 certificate, DocumentConventions conventions, String[] initialUrls)
at Raven.Client.Http.ClusterRequestExecutor..ctor(X509Certificate2 certificate, DocumentConventions conventions, String[] initialUrls)
at Raven.Client.Http.ClusterRequestExecutor.Create(String[] initialUrls, X509Certificate2 certificate, DocumentConventions conventions)
at Raven.Client.ServerWide.Operations.ServerOperationExecutor..ctor(DocumentStoreBase store)
at Raven.Client.Documents.Operations.MaintenanceOperationExecutor.get_Server()
Couldn't find System.Runtime.InteropServices.RuntimeInformation as a dependency in the NuGet package, however installing it manually from NuGet did the trick. Shouldn't we have an explicit dependency for it in the package?