建立自己的错误,由于没有VS 2012异步BCL包CI服务器上(团队市) [英] Build error due to Async BCL packages without VS 2012 on a CI server (Team City)

查看:211
本文介绍了建立自己的错误,由于没有VS 2012异步BCL包CI服务器上(团队市)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了在Windows XP上运行(这样的.NET框架时为4.0)的应用程序。我需要引用异步BCL软件包以便使用异步/等待我的一些项目。

I develop an application that has to run on Windows XP (so the .Net Framework has to be 4.0). I need to reference Async BCL packages in order to use async/await in some of my projects.

我已经正确地引用了下面的包到目标项目,在他的回答中提到由ThomasArdal(<一href="http://stackoverflow.com/questions/14870081/async-targeting-pack-without-visual-studio-2012-on-buildserver">Async在BuildServer 瞄准包没有的Visual Studio 2012):

I have correctly referenced the following packages to the targeted projects as mentioned by ThomasArdal in his answer (Async Targeting Pack without Visual Studio 2012 on BuildServer):

Microsoft.BCL

Microsoft.BCL

Microsoft.BCL.Async

Microsoft.BCL.Async

Microsoft.BCL.Build

Microsoft.BCL.Build

不幸的是,当它从我的TeamCity CI服务器(运行Microsoft Windows Server 2003)上运行,因为异步/等待关键字不会承认的构建失败:

Unfortunately the build fails when it is run from TeamCity on my CI server (running Microsoft Windows Server 2003) because async/await keywords are not recognized:


Member modifier 'public' must precede the member type and name

你有什么线索,可以帮助我解决这个问题呢?

Do you have any clue that could help me to solve this issue ?

推荐答案

您的CI服务器必须使用最新的msbuild.exe(从.NET 4.5)

Your CI server must use the latest msbuild.exe (from .net 4.5)

这篇关于建立自己的错误,由于没有VS 2012异步BCL包CI服务器上(团队市)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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