问题描述
我开发了在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(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服务器上(团队市)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!