"ProtoCompile" 任务无法使用其输入参数进行初始化

The "ProtoCompile" task could not be initialized with its input parameters

将我的 Grpc.AspNetCore 更新为 2.40.00 后出现以下编译错误。我错过了什么?

23>C:\...\.nuget\packages\grpc.tools.40.0\build\_protobuf\Google.Protobuf.Tools.targets(291,7): error MSB4064: The "AdditionalProtocArguments" parameter is not supported by the "ProtoCompile" task loaded from assembly: Protobuf.MSBuild, Version=0.0.0.0, Culture=neutral, PublicKeyToken=d754f35622e28bad from the path: C:\...\.nuget\packages\grpc.tools.32.0\build\_protobuf\net45\Protobuf.MSBuild.dll. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.
    23>C:\...\.nuget\packages\grpc.tools.40.0\build\_protobuf\Google.Protobuf.Tools.targets(280,5): error MSB4063: The "ProtoCompile" task could not be initialized with its input parameters.
    23>Done building project "QLAPIBroker.csproj" -- FAILED.

问题在于包的版本 Grpc.AspNetCore 降级到 2.27.0 它会起作用。这对我有用