问题
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 ?
回答1:
Your CI server must use the latest msbuild.exe (from .net 4.5)
来源:https://stackoverflow.com/questions/18636002/build-error-due-to-async-bcl-packages-without-vs-2012-on-a-ci-server-team-city