Azure Functions DocumentClient could not load type from assembly exception
问题 I have an Azure Function v2 that calls into an utility library, which in turn instantiates a DocumentClient . When running my function locally, it throws an exception on this line: _client = new DocumentClient(new Uri(cosmosDbEndpoint), cosmosDbAuthKey, Storage.SerializerSettings, connectionPolicy); System.Private.CoreLib: Exception while executing function: ComponentDesignInserter-Http-UploadFiles. Microsoft.Azure.Documents.Client: Could not load type 'System.Diagnostics.Eventing