简体   繁体   中英

Build error due to Async BCL packages without VS 2012 on a CI server (Team City)

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.

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.Async

Microsoft.BCL.Build

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM