MSBuild error generating deployment script: Method not found: '!!0 System.Array.Empty()
I have setup the db project as per "Use the ReadyRoll.MSBuild NuGet package"
Whenever I run the build in TeamCity I receive the following error:
C:\teamcity\buildAgent\work\ebc25847eab6ee35\packages\ReadyRoll.MSBuild.188.8.131.5202\tools\ReadyRoll.Data.Schema.SSDT.targets(146, 5): An error occurred while attempting to generate a package deployment script: Method not found: '!!0 System.Array.Empty()'.
What is going wrong?
I can run the build locally using the following (equivalent) command:
$msbuild = 'C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe' & $msbuild D:\Scrap\ReadyRoll\TestTeamCityBuild\TestTeamCityBuild.sln /target:Rebuild /p:Configuration=Release
I've attached the TeamCity log of the failing build (see ReadyRoll_Test_Build_2.log)
Screen shot of the TeamCity build step:
The source code for the (test) project that I'm trying to build: https://github.com/ccrowhurstram/TestTeamCityBuild
Build server details:
- Windows Server 2008 R2
- .Net Framework version: 4.5.2