Visual Studio Team Services托管代理和为ASP.NET Core构建VS 2017 RC解决方案 [英] Visual Studio Team Services Hosted Agent and building VS 2017 RC solution for ASP.NET Core

查看:95
本文介绍了Visual Studio Team Services托管代理和为ASP.NET Core构建VS 2017 RC解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VSTS(Visual Studio Team Services)来构建和部署我的代码,并且使用dotnet命令行和project.json可以很好地完成所有工作。  现在我已将我的代码项目升级到VS 2017 RC,project.json不再是
msbuild是主要的并使用.csproj和.sln文件。  我将我的VSTS构建定义配置为使用'msbuild任务'或'visual studio build'任务,它可以找到msbuild"预览15"。托管代理程序。  它抛出
以下警告:

I am using the VSTS (Visual Studio Team Services) for building and deploying my code and everything worked great using the dotnet command line and a project.json.  Now that I have upgraded my code project to VS 2017 RC, the project.json is no more as msbuild is primary and using the .csproj and .sln files.  I configured my VSTS build definition to use the 'msbuild task' or the 'visual studio build' task and it can find the msbuild "preview 15" program on the hosted agent.   It throws the following warning:

## [警告]无法找到MSBuild:Version = 15.0,Architecture = 86。寻找最新版本。

有没有人成功获得VS 2017 RC项目,这是一个在VSTS中构建的ASP.NET核心Web应用程序?

Has anyone been successful in getting a VS 2017 RC project that is a ASP.NET Core web application to build in VSTS?




推荐答案

您好,

感谢您回复我们。

根据我创建.NET Core时的文档或使用以前版本的VS 2017 RC的ASP.NET Core项目,然后您需要手动编辑项目文件将csproj文件更新为简化格式。

As per the document I gone if you created .NET Core or ASP.NET Core projects using previous release of VS 2017 RC, then you need to update the csproj file to the simplified format by hand editing the project file.

请通过以下链接欲了解更多信息。

Please go through the below link for more information.

https://www.visualstudio .com / zh-CN / news / releasenotes / vs2017-relnotes

另外,请仔细阅读
MS DN线程
讨论了可能对您有类似问题的类型。

Also, please go through this MSDN thread which has discussed the similar kind of issue which might help you.

我希望回复能帮助您解决查询问题。如果您需要进一步的帮助,请回复该主题,因为我们随时可以查询。

I hope that the reply will assist you in getting your query addressed. In case you require further assistance, please do reply to the thread as we are always available to your queries.

问候,

_________________________________________________________________________________

如果帖子回答了您的问题,请点击标记为答案 发布和  投票赞成。

If a post answers your question, please click Mark as Answer on that post and Vote as Helpful.


这篇关于Visual Studio Team Services托管代理和为ASP.NET Core构建VS 2017 RC解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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