-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
(copied to CRM)
When a System.PlatformNotSupportedException is raised it is not clear which library failed to load.
For example in the following test case it's not clear the failure is due to the zstd compressor failing when targeting Any CPU vs. x64:
Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
[TestMethod] public void TestMethodFails() { MongoClient client = new MongoClient("mongodb://localhost:27017/?compressors=zstd,zlib,snappy"); IMongoDatabase db = client.GetDatabase("test"); IMongoCollection<BsonDocument> collection = db.GetCollection<BsonDocument>("foo"); FilterDefinition<BsonDocument> filter = Builders<BsonDocument>.Filter.Empty; BsonDocument first = collection.Find(filter).FirstOrDefault(); }