I was also using the MONO310-Release configuration earlier (months ago) to
just get stuff going, but also got things going with NET45-Release so kept
going with it as we shouldn't need a separate configuration, I do intend to
remove anything Mono specific I can.

Did you use the mono-support branch I mentioned above? As I mentioned
MSBuildCommunityTasks isn't working anymore because the MSBuild 2.0.0.0
assemblies were removed from Mono 4.x, so I've removed them in that branch.

On Fri, Jun 19, 2015 at 10:37 PM, Hari Menon <harida...@gmail.com> wrote:

> Thank you - I was trying to build the configuration named "MONO310-Release"
>
> With Mono 4.0.1, I can also build on Mac (and it fails when running the
> tests). But on Ubuntu, I am getting a different error:
> (BuildProject target) ->
> : error : Error initializing task RegexMatch: Could not load file or
> assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
>
> This is the version of Ubuntu I have:
> Distributor ID: Ubuntu
> Description: Ubuntu 14.04.2 LTS
> Release: 14.04
> Codename: trusty
>
>
>
> On Tuesday, June 16, 2015 at 12:34:59 AM UTC-4, Jonathon Rossi wrote:
>>
>> Sorry for the delay in getting back to you, I wanted to upgrade Mono from
>> 3.10 to 4.0.1 to see if the issue had been resolved.
>>
>> After upgrading to Mono 4.0.1 the MSBuildCommunityTasks wouldn't work
>> anymore because Mono 4 removed the old 2.x assemblies which allows it to
>> work. I removed the use of those tasks in this branch:
>> https://github.com/castleproject/Core/tree/mono-support
>>
>> This is the command that I'm running:
>> xbuild /p:Configuration=NET45-Release /t:RunAllTests
>> buildscripts/Build.proj
>>
>> It works well on OSX without any errors (and without those "Can't find
>> custom attr constructor image" ones from earlier), I get to the point of
>> having heaps of unit tests failing, but that is fine I want to go through
>> all the conditional compilation and fix them for today's mono not from mono
>> 5 years ago.
>>
>> I upgraded the castle CI mono agent to 4.0.1 and get some strange compile
>> errors where it can't find types from mscorlib.dll but only when building
>> the SerilogIntegration project, not sure what is different about it.
>> Running it on the machine it specifies /nostdlib but sometimes doesn't
>> reference an mscorlib.dll assembly. Looking at the run from TeamCity seems
>> to still have the "Can't find custom attr constructor image" error.
>>
>>
>> http://builds.castleproject.org/viewLog.html?buildId=10702&tab=buildResultsDiv&buildTypeId=Core_MasterMono
>>
>> Do you get these errors on Linux, if not I'll look at rebuilding our CI
>> agent.
>>
>> On Sat, Jun 13, 2015 at 6:41 AM, Hari Menon <hari...@gmail.com> wrote:
>>
>>> I would like to try and reproduce this at my end - could you please let
>>> me know how the 'xbuild' looked for you along with the arguments on both
>>> Mac and Linux?
>>>
>>> On Sunday, January 4, 2015 at 2:28:49 AM UTC-5, Jonathon Rossi wrote:
>>>>
>>>> Yes, I think I saw that one and that they haven't had problems with any
>>>> recent Mono version.
>>>>
>>>> The agent is a fresh install, I set it up in December with Ubuntu 14.04
>>>> and installed Mono 3.10 as per these instructions:
>>>>
>>>> http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives
>>>>
>>>> $ mono --version
>>>> Mono JIT compiler version 3.10.0 (tarball Wed Nov  5 12:50:04 UTC 2014)
>>>>
>>>> On Sat, Jan 3, 2015 at 1:37 AM, Hari Menon <hari...@gmail.com> wrote:
>>>>
>>>>> You might have already seen this answer
>>>>> <http://stackoverflow.com/questions/14831371/extension-methods-on-mono-2-10-8-1>
>>>>>  on
>>>>> Stack Overflow - they seem to have success with Mono 3.2.8.
>>>>>
>>>>> What is the version of Ubuntu and Mono running on the Ubuntu agent on
>>>>> the CI server?
>>>>>
>>>>> It looks like the latest Mono available as Ubuntu packages are for
>>>>> 3.2.8 <http://packages.ubuntu.com/search?keywords=mono-complete> -
>>>>> but since the build configuration is named Master - Mono 3.10, I am
>>>>> guessing we are building Mono 3.10 ourselves.
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>> On Sunday, December 28, 2014 11:39:54 PM UTC-5, Jonathon Rossi wrote:
>>>>>>
>>>>>> I've attempted to get our build running on Mono 3.10 on both OSX and
>>>>>> Ubuntu. I've got things working on OSX, but am getting the following 
>>>>>> error
>>>>>> on Ubuntu on our new Ubuntu TeamCity agent:
>>>>>>
>>>>>> Missing method .ctor in assembly /home/teamcity/buildagent/
>>>>>> work/16de7b8c88ab14af/lib/net45/NLog.dll, type System.Runtime.
>>>>>> CompilerServices.ExtensionAttribute
>>>>>> Can't find custom attr constructor image: /home/teamcity/buildagent/
>>>>>> work/16de7b8c88ab14af/lib/net45/NLog.dll mtoken: 0x0a000018
>>>>>>
>>>>>> http://builds.castleproject.org/viewType.html?buildTypeId=
>>>>>> Core_MasterMono310
>>>>>>
>>>>>> I've read mentions that this type of error is caused by the fact
>>>>>> ExtensionAttribute moved assembly between .NET 4.0 and 4.5 via a
>>>>>> TypeForwardedTo, but I'm trying to avoid building log4net, NLog and 
>>>>>> Serilog
>>>>>> from source in our build. Anyone got any ideas?
>>>>>>
>>>>>> The plan is to get this working so that I can add a unit test for
>>>>>> https://github.com/castleproject/Core/issues/72.
>>>>>>
>>>>>> --
>>>>>> Jono
>>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Castle Project Development List" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to castle-project-devel+unsubscr...@googlegroups.com.
>>>>> To post to this group, send email to castle-pro...@googlegroups.com.
>>>>> Visit this group at
>>>>> http://groups.google.com/group/castle-project-devel.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Jono
>>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Castle Project Development List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to castle-project-devel+unsubscr...@googlegroups.com.
>>> To post to this group, send email to castle-pro...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/castle-project-devel.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Jono
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Development List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to castle-project-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to castle-project-devel@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/castle-project-devel.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jono

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to castle-project-devel+unsubscr...@googlegroups.com.
To post to this group, send email to castle-project-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to