I get the following error:
[exec] Starting '/usr/bin/xbuild (/home/travis/build/sideeffffect/choco/src/chocolatey.sln /nologo /property:OutputPath='/home/travis/build/sideeffffect/choco/build_output/chocolatey' /property:Configuration=Release /verbosity:detailed /toolsversion:4.0 /property:Platform='Any CPU' /property:TargetFrameworkProfile='' /property:TargetFrameworkVersion=v4.0 /l:ThoughtWorks.CruiseControl.MSBuild.XmlLogger,"/home/travis/build/sideeffffect/choco/lib/NAnt/ThoughtWorks.CruiseControl.MSBuild.dll";'/home/travis/build/sideeffffect/choco/build_output/build_artifacts/compile/msbuild-mono-4.0-results.xml')' in '/home/travis/build/sideeffffect/choco/build_output'
[exec] Unhandled Exception:
[exec] System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Build.Utilities, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
[exec] File name: 'Microsoft.Build.Utilities, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[exec] at (wrapper managed-to-native) System.Reflection.Assembly:InternalGetType (System.Reflection.Assembly,System.Reflection.Module,string,bool,bool)
[exec] at System.Reflection.MonoAssembly.GetType (System.String name, Boolean throwOnError, Boolean ignoreCase) [0x00000] in <filename unknown>:0
[exec] at System.Reflection.Assembly.GetType (System.String name) [0x00000] in <filename unknown>:0
[exec] at Mono.XBuild.CommandLine.MainClass.Execute () [0x00000] in <filename unknown>:0
[exec] at Mono.XBuild.CommandLine.MainClass.Main (System.String args) [0x00000] in <filename unknown>:0
you can see the full log here:
When researching this problem, I've come across TeamCity issue
I've found another repository that seems to suffer from the same problem
interresting thing is, that the previous build from 7 months ago (from this other repository) succeeded. this suggests, that this is a bug in Mono introduced in the meantime
the issue tracked at Chocolatey https://github.com/chocolatey/choco/issues/369
It should be fixed in master and Mono 4.2 (i could not reproduce it locally).
However,I'd recommend to migrate away from nant which is .net 2.0 app and Mono 4.x officially support .net 4.0 and newer apps only.
> nant is .net 2.0 app
but http://nant.sourceforge.net claims otherwise
The page does not say anything (except how outdated nant is) about what nant is compiled with. Simple ildasm/ildasm/monodis the .exe and you will see yourself
ok, thank you!