用 Jenkins + .netcore 2.0 构建

上一篇是关于 .net framework 框架的, 今天是关于 .netcore 2.0 的

这里为大家分享 配置中踩到的坑

cd %WORKSPACE%"需要还原的项目目录"
dotnet restore --configfile NuGet.Config    这句是关键, vs2017 会默认读取该文件,,但是 命令必须指定!!!
dotnet build --framework netcoreapp2.0 --configuration Release --output binRelease
dotnet publish --configuration Release --output "输出目录"

原文地址:https://www.cnblogs.com/allenxt/p/9015696.html