This project is read-only.
1
Vote

Error on Mono when build with MonoDevelop

description

Hi!

I'm trying to build the latest BEWeb code, from mercurial source with monodevelop (Ubuntu 12.04), but after starting the built files I get the following on the browser:

Compilation Error

Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.

Compiler Error Message: CS0436: The type `Resources.labels' conflicts with the imported type of same name'. Ignoring the imported type definition

Why the code build with the following compiler command:

dmcs /target:library /lib:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin" /debug- /optimize+ /warnaserror /warn:4 /out:"/tmp/jeremy-temp-aspnet-0/24bf8f19/App_GlobalResources.5c629777.dll" /r:"/usr/lib/mono/4.0/mscorlib.dll" /r:"/usr/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll" /r:"/usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll" /r:"/usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll" /r:"/usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll" /r:"/usr/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll" /r:"/usr/lib/mono/gac/System.Web.Services/4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll" /r:"/usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll" /r:"/usr/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll" /r:"/usr/lib/mono/gac/System.EnterpriseServices/4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll" /r:"/usr/lib/mono/gac/System.IdentityModel/4.0.0.0__b77a5c561934e089/System.IdentityModel.dll" /r:"/usr/lib/mono/gac/System.Runtime.Serialization/4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll" /r:"/usr/lib/mono/gac/System.Xaml/4.0.0.0__b77a5c561934e089/System.Xaml.dll" /r:"/usr/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll" /r:"/usr/lib/mono/gac/System.ServiceModel.Web/4.0.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll" /r:"/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll" /r:"/usr/lib/mono/gac/System.Web.Extensions/4.0.0.0__31bf3856ad364e35/System.Web.Extensions.dll" /r:"/usr/lib/mono/gac/System.Data.DataSetExtensions/4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll" /r:"/usr/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll" /r:"/usr/lib/mono/gac/System.ComponentModel.DataAnnotations/4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll" /r:"/usr/lib/mono/gac/System.Web.DynamicData/4.0.0.0__31bf3856ad364e35/System.Web.DynamicData.dll" /r:"/usr/lib/mono/gac/System.Data.Linq/4.0.0.0__b77a5c561934e089/System.Data.Linq.dll" /r:"/usr/lib/mono/gac/System.Web.ApplicationServices/4.0.0.0__31bf3856ad364e35/System.Web.ApplicationServices.dll" /r:"/usr/lib/mono/gac/System.Management/4.0.0.0__b03f5f7f11d50a3a/System.Management.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/Microsoft.Web.Infrastructure.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/System.Web.Razor.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/System.Web.WebPages.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/System.Web.WebPages.Razor.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/System.Web.Helpers.dll" /r:"/tmp/jeremy-temp-aspnet-0/24bf8f19/App_GlobalResources.559c97e4.dll" /r:"/tmp/jeremy-temp-aspnet-0/24bf8f19/App_Code.191afe60.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/AjaxMin.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/BlogEngine.Core.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/BlogEngine.Web.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/BlogML.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/ICSharpCode.SharpZipLib.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/NuGet.Core.dll" /r:"/home/jeremy/development/BlogengineWeb/BlogEngine/BlogEngine.Web/bin/System.Web.WebPages.Deployment.dll" /resource:"/tmp/jeremy-temp-aspnet-0/24bf8f19/Resources.labels.resources" -- "/tmp/jeremy-temp-aspnet-0/24bf8f19/App_Web_18274d94_0.cs"

I don't understand why is this includes the Optimize, because it is disabled in the proj file DEBUG section:
<Optimize>false</Optimize>

Can you help me why do I get this error? I can't use BE on Mono without it :(

Thank you!

KU

comments

KommerszUnicum wrote Jan 14, 2013 at 9:16 PM