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

孤者浪人 提交于 2019-12-13 07:41:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!