.net core 2.1后支持了一个全新的部署和扩展命令,可以自己注册全局命令行。

dotnet install tool -g dotnetsay
dotnetsay

也可以自己构建自己的命令行,一个.net core程序即可

dotnet pack -c release -o nupkg
dotnet tool install --add-source .\nupkg -g dotnetsay
dotnetsay

具体的构建,安装,调试步骤可以参看微软官方文档。dotnetsay .NET Core Global Tools Sample

其它参考文章:.NET Core 2.1 Global Tools

 

相关文章:

  • 2021-11-15
  • 2021-09-19
  • 2022-02-22
  • 2022-01-27
  • 2021-07-08
  • 2021-10-01
  • 2021-10-31
  • 2021-05-18
猜你喜欢
  • 2018-10-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-05-20
  • 2021-08-07
相关资源
相似解决方案