小编use*_*622的帖子

编译 Autorest 生成的客户端时出错

使用 Swagger OpenApi 3.0 规范自动生成客户端后,我无法编译生成的客户端。我在对象ClientDiagnosticsRawRequestUriBuilderUtf8JsonRequestContent上收到错误。

RestClient.cs

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Planner.Client.Models;

namespace Planner.Client
{
    internal partial class RestClient
    {
        private Uri endpoint;
        private ClientDiagnostics _clientDiagnostics;
        private HttpPipeline _pipeline;

        /// <summary> Initializes a new instance of RestClient. </summary>
        /// <param name="clientDiagnostics"> The handler for …
Run Code Online (Sandbox Code Playgroud)

c# autorest

7
推荐指数
2
解决办法
3606
查看次数

标签 统计

autorest ×1

c# ×1