【发布时间】:2020-12-27 05:20:22
【问题描述】:
我正在尝试使用 svcutil 更新一个肥皂服务引用。
我试过了:
dotnet svcutil -u --projectFile "C:\projects\MySolution\MyProject\MyProject.csproj"
这给出了无意义的错误:
Warning: The specified --projectFile option is not expected in the current operational context of the tool!
Error: The --update option requires a project to be specified, please use the --projectFile option to specify the project to use.
还有:
dotnet svcutil -u --projectFile "C:\projects\MySolution\MyProject\MyServiceFolder"
同样的错误
我已经试过了:
dotnet svcutil -u --projectFile "C:\projects\MySolution\MyProject\MyServiceFolder\dotnet-svcutil.params.json"
同样的错误。
我什至尝试过:
dotnet svcutil -u "C:\projects\MySolution\MyProject\Nexus.Services.csproj"
和
dotnet svcutil -u "C:\projects\MySolution\MyProject\MyServiceFolder"
但这给出了错误:
Error: The --update option requires a project to be specified, please use the --projectFile option to specify the project to use.
我在任何地方都找不到有关如何运行此命令的单个示例。
有人让这个工作吗?
【问题讨论】:
标签: svcutil.exe