在Team Foundation Server 2017中构建和部署asp core 2.0 web api项目 [英] build and deployment of asp core 2.0 web api projects in Team Foundation Server 2017

查看:72
本文介绍了在Team Foundation Server 2017中构建和部署asp core 2.0 web api项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

项目是在asp core 2.0上创建的。

Project is created on asp core 2.0.

2017-11-16T09:15:47.1477249Z ## [section ]开始:恢复

2017-11-16T09:15:47.1633787Z ============================ ==================================================

2017-11-16T09:15:47.1633787Z任务         :.NET Core

2017-11-16T09:15:47.1633787Z描述  :使用dotnet core命令行构建,测试和发布。

2017-11-16T09:15:47.1633787Z版本      :1.0.1

2017-11-16T09:15:47.1633787Z作者       :Microsoft Corporation

2017-11-16T09:15:47.1633787Z帮助         :[更多信息](https://go.microsoft.com/fwlink/?linkid=832194)

2017-11-16T09:15:47.1633787Z ======= ================================================== =====================
$
2017-11-16T09:15:50.0957036Z [command] C:\\\ tagent \ bin \ dotnet.exe恢复C:\\\ tntant \_work \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 11-16T09:15:50.2144832Z ## [错误]错误:C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ .. 我需要安装agant 2.0吗?如果是的话,已经安装了agant如何为agant安装asp core 2.0?

2017-11-16T09:15:47.1477249Z ##[section]Starting: Restore
2017-11-16T09:15:47.1633787Z ==============================================================================
2017-11-16T09:15:47.1633787Z Task         : .NET Core
2017-11-16T09:15:47.1633787Z Description  : Build, test and publish using dotnet core command-line.
2017-11-16T09:15:47.1633787Z Version      : 1.0.1
2017-11-16T09:15:47.1633787Z Author       : Microsoft Corporation
2017-11-16T09:15:47.1633787Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)
2017-11-16T09:15:47.1633787Z ==============================================================================
2017-11-16T09:15:50.0957036Z [command]C:\agent\bin\dotnet.exe restore C:\agent\_work\1\s\Main\Source\Sales.Services.Utilities\Services.Utilities.csproj
2017-11-16T09:15:50.2144832Z ##[error]Error: C:\agent\bin\dotnet.exe failed with return code: 2147516564  ..  I need to install agant 2.0 ? if yes, already installed a agant how to install asp core 2.0 for agant?

推荐答案

嗨Paroxyz,

Hi Paroxyz,

您的项目是否在VS 2017中创建?是您需要在TFS构建代理计算机上安装.netcore 2.0和Visual Studio 2017,然后重新启动构建代理服务。

Is your project created in VS 2017? You need to install .netcore 2.0 and Visual Studio 2017 on TFS build agent machine, then restart the build agent service.

最佳问候, 


这篇关于在Team Foundation Server 2017中构建和部署asp core 2.0 web api项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆