Google Cloud Function.NET SDK正在请求Xamarin.IOS.dll引用

Google Cloud Function.NET SDK正在请求Xamarin.IOS.dll引用,.net,google-cloud-functions,.net,Google Cloud Functions,我正在创建一个.net标准库,我们的客户可以在其中使用,但是它无法创建云函数服务客户机,因为它需要xamarin.ios.dll。它在这一部分失败: CloudFunctionsServiceClient.CreateAsync().Result public GoogleClient(string serviceAccountKeyPath) { if (string.IsNullOrEmpty(serviceAccountKeyPath))

我正在创建一个.net标准库,我们的客户可以在其中使用,但是它无法创建云函数服务客户机,因为它需要xamarin.ios.dll。它在这一部分失败:

CloudFunctionsServiceClient.CreateAsync().Result

    public GoogleClient(string serviceAccountKeyPath)
    {
        if (string.IsNullOrEmpty(serviceAccountKeyPath))
            throw new ArgumentNullException("Path to the service account credentials file is required.");

        if (!File.Exists(serviceAccountKeyPath))
            throw new ArgumentException($"The service account credentials file does not exist at: {serviceAccountKeyPath}");

        var fileExtension = Path.GetExtension(serviceAccountKeyPath);

        if (!fileExtension.Equals(".json", StringComparison.OrdinalIgnoreCase))
            throw new ArgumentException("Unsupported Service accounts credentials. Must be a json file.");

        using (StreamReader r = new StreamReader(serviceAccountKeyPath))
        {
            var path = Path.GetFullPath(serviceAccountKeyPath);

            string json = r.ReadToEnd();
            dynamic credentials = JsonConvert.DeserializeObject(json);

            ProjectId = (string)credentials.project_id;

            Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", path);

            CloudFunctionsServiceClient = CloudFunctionsServiceClient.CreateAsync().Result;
            CloudStorageClient = StorageClient.CreateAsync().Result;

        }
    
它引用ios dll有什么原因吗?它确实在我的单元测试中起作用,但由于某些原因,当第三方应用程序使用它时,它就不起作用了