[Mono-list] Xbuild fails

Ankit Jain radical at gmail.com
Mon Jan 30 17:48:01 UTC 2012


Could you post the .sln file?

-Ankit

On Mon, Jan 30, 2012 at 4:54 PM, Matt Calder <mvcalder at gmail.com> wrote:

> Hi,
>
> I am working with a Solution primarily with Monodevelop. However, we
> deploy this solution to the cloud and there we build using xbuild.
> Recently, that build started failing with this trace:
>
> calder at pharos:~/Work/Lightkeeper/lightstation$ xbuild LightStation.sln
> XBuild Engine Version 2.11.0.0
> Mono, Version 2.11.0.0
> Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.
>
> Build started 1/30/2012 10:46:02 AM.
> __________________________________________________
> /home/calder/Work/Lightkeeper/lightstation/tools/src/csharp/LightStation.API/LightStation.API.csproj:
> warning : Cannot import project
> '/usr/lib/mono/4.0/Microsoft.CSharp.targets' again. It was already imported
> by
> '/home/calder/Work/Lightkeeper/lightstation/tools/src/csharp/LightStation.API/LightStation.API.csproj'.
> Ignoring.
> /home/calder/Work/Lightkeeper/lightstation/tools/src/csharp/LightStation.Thrift/LightStation.Thrift.csproj:
> warning : Cannot import project
> '/usr/lib/mono/4.0/Microsoft.CSharp.targets' again. It was already imported
> by
> '/home/calder/Work/Lightkeeper/lightstation/tools/src/csharp/LightStation.Thrift/LightStation.Thrift.csproj'.
> Ignoring.
> /home/calder/Work/Lightkeeper/lightstation/store/src/csharp/LightStation.Storage.Relational/LightStation.Storage.Relational.csproj:
> warning : Cannot import project
> '/usr/lib/mono/4.0/Microsoft.CSharp.targets' again. It was already imported
> by
> '/home/calder/Work/Lightkeeper/lightstation/store/src/csharp/LightStation.Storage.Relational/LightStation.Storage.Relational.csproj'.
> Ignoring.
> /home/calder/Work/Lightkeeper/lightstation/store/src/csharp/LightStation.Storage.Relational.Tests/LightStation.Storage.Relational.Tests.csproj:
> warning : Cannot import project
> '/usr/lib/mono/4.0/Microsoft.CSharp.targets' again. It was already imported
> by
> '/home/calder/Work/Lightkeeper/lightstation/store/src/csharp/LightStation.Storage.Relational.Tests/LightStation.Storage.Relational.Tests.csproj'.
> Ignoring.
> /home/calder/Work/Lightkeeper/lightstation/oracle/src/csharp/LightStation.Oracle/LightStation.Oracle.csproj:
> warning : Cannot import project
> '/usr/lib/mono/4.0/Microsoft.CSharp.targets' again. It was already imported
> by
> '/home/calder/Work/Lightkeeper/lightstation/oracle/src/csharp/LightStation.Oracle/LightStation.Oracle.csproj'.
> Ignoring.
> /home/calder/Work/Lightkeeper/lightstation/oracle/src/csharp/LightStation.Oracle.Tests/LightStation.Oracle.Tests.csproj:
> warning : Cannot import project
> '/usr/lib/mono/4.0/Microsoft.CSharp.targets' again. It was already imported
> by
> '/home/calder/Work/Lightkeeper/lightstation/oracle/src/csharp/LightStation.Oracle.Tests/LightStation.Oracle.Tests.csproj'.
> Ignoring.
> /home/calder/Work/Lightkeeper/lightstation/tools/src/csharp/LightStation.Host/LightStation.Host.csproj:
> warning : Cannot import project
> '/usr/lib/mono/4.0/Microsoft.CSharp.targets' again. It was already imported
> by
> '/home/calder/Work/Lightkeeper/lightstation/tools/src/csharp/LightStation.Host/LightStation.Host.csproj'.
> Ignoring.
> /home/calder/Work/Lightkeeper/lightstation/updater/src/csharp/LightStation.Updater/LightStation.Updater.csproj:
> warning : Cannot import project
> '/usr/lib/mono/4.0/Microsoft.CSharp.targets' again. It was already imported
> by
> '/home/calder/Work/Lightkeeper/lightstation/updater/src/csharp/LightStation.Updater/LightStation.Updater.csproj'.
> Ignoring.
> LightStation.sln: error : An element with the same key already exists in
> the dictionary.
>
> Unhandled Exception: System.ArgumentException: An element with the same
> key already exists in the dictionary.
>   at
> System.Collections.Generic.Dictionary`2[Mono.XBuild.CommandLine.TargetInfo,Mono.XBuild.CommandLine.TargetInfo].Add
> (TargetInfo key, TargetInfo value) [0x00000] in <filename unknown>:0
>   at
> Mono.XBuild.CommandLine.SolutionParser.ParseProjectConfigurationPlatforms
> (System.String section, System.Collections.Generic.Dictionary`2
> projectInfos, System.Collections.Generic.Dictionary`2 websiteProjectInfos)
> [0x00000] in <filename unknown>:0
>   at Mono.XBuild.CommandLine.SolutionParser.ParseSolution (System.String
> file, Microsoft.Build.BuildEngine.Project p,
> Mono.XBuild.CommandLine.RaiseWarningHandler RaiseWarning) [0x00000] in
> <filename unknown>:0
>   at Microsoft.Build.BuildEngine.Project.Load (System.String
> projectFileName, ProjectLoadSettings settings) [0x00000] in <filename
> unknown>:0
>   at Microsoft.Build.BuildEngine.Project.Load (System.String
> projectFileName) [0x00000] in <filename unknown>:0
>   at Microsoft.Build.BuildEngine.Engine.BuildProjectFileInternal
> (System.String projectFile, System.String[] targetNames,
> Microsoft.Build.BuildEngine.BuildPropertyGroup globalProperties,
> IDictionary targetOutputs, BuildSettings buildFlags, System.String
> toolsVersion) [0x00000] in <filename unknown>:0
>   at Microsoft.Build.BuildEngine.Engine.BuildProjectFile (System.String
> projectFile, System.String[] targetNames,
> Microsoft.Build.BuildEngine.BuildPropertyGroup globalProperties,
> IDictionary targetOutputs, BuildSettings buildFlags, System.String
> toolsVersion) [0x00000] in <filename unknown>:0
> Build FAILED.
>
> Here is the xbuild version:
>
> calder at pharos:~/Work/Lightkeeper/lightstation$ xbuild /version
> XBuild Engine Version 2.11.0.0
> Mono, Version 2.11.0.0
> Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.
>
> And here is mono:
>
> calder at pharos:~/Work/Lightkeeper/lightstation$ mono --version
> Mono JIT compiler version 2.11 ((no/7917753 Tue Dec 13 12:53:58 EST 2011)
> Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
>     TLS:           __thread
>     SIGSEGV:       altstack
>     Notifications: epoll
>     Architecture:  amd64
>     Disabled:      none
>     Misc:          softdebug
>     LLVM:          yes(2.8svn-mono)
>     GC:            Included Boehm (with typed GC and Parallel Mark)
>
> Anyone have an  idea of what is wrong?
>
> Matt
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>


-- 
Blog : http://www.ankitjain.org/blog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120130/123eedae/attachment-0001.html>


More information about the Mono-list mailing list