[置顶] CentOS 7.1, 7.2 下安装dotnet core
posted @ 2016-04-08 17:09 Lewis.Zou 阅读(5998) 评论(12) 推荐(13) 编辑
posted @ 2016-04-08 17:09 Lewis.Zou 阅读(5998) 评论(12) 推荐(13) 编辑
Global Tools是.NET Core 2.1 中一个初次出现的特性。Global Tools提供了一种方法,让开发人员编写的.NET Core应用可以打包成NuGet包交付。如果.NET Core运行在目标平台上,那么一个恰当打包的Global Tool就可以在那上面运行。JavaScript开发人员可能会发现一件有趣的事,就是这个工具直接借鉴了NPM Global Tools。
安装程序(工具)命令如下:
1 | dotnet install tool -g dotnetsay |
卸载已经安装的程序(工具):
dotnet tool uninstall -g dotnetsay
查看已经安装的程序(工具):
1 | dotnet tool list -g |
1 2 3 4 5 6 7 8 9 | <Project Sdk= "Microsoft.NET.Sdk" > <PropertyGroup> <OutputType>Exe< /OutputType > <TargetFramework>netcoreapp2.1< /TargetFramework > <GeneratePackageOnBuild> true < /GeneratePackageOnBuild > <IsPackable> true < /IsPackable > <PackAsTool> true < /PackAsTool > < /PropertyGroup > < /Project > |
打开命令行,运行:
1 | dotnet tool install --global LewisSayHello |
测试程序(工具)
posted @ 2018-05-31 12:00 Lewis.Zou 阅读(1876) 评论(5) 推荐(3) 编辑
posted @ 2017-10-24 20:08 Lewis.Zou 阅读(7073) 评论(39) 推荐(56) 编辑
posted @ 2017-02-12 10:54 Lewis.Zou 阅读(6880) 评论(6) 推荐(13) 编辑
posted @ 2016-08-03 08:36 Lewis.Zou 阅读(6539) 评论(12) 推荐(34) 编辑
posted @ 2016-06-17 14:42 Lewis.Zou 阅读(10169) 评论(9) 推荐(35) 编辑
posted @ 2016-05-24 23:47 Lewis.Zou 阅读(18975) 评论(27) 推荐(48) 编辑
posted @ 2016-05-11 17:32 Lewis.Zou 阅读(26784) 评论(53) 推荐(136) 编辑
posted @ 2016-04-16 17:31 Lewis.Zou 阅读(855) 评论(0) 推荐(3) 编辑
posted @ 2016-04-12 15:21 Lewis.Zou 阅读(6505) 评论(0) 推荐(0) 编辑