我想使用 Ubuntu 在 Mono 上安装新的 2.7 Blogengine,但是遇到了问题。
它支持 mono,因为 Codeplex 上还有另一个名为 Blogengine.Web 的项目,该项目是为 MonoDevelop 等创建的。我使用 TortuiseHG 获取源代码,并尝试使用 Monodevelop 在干净的 Ubuntu 12.04 上进行编译。
源代码编译成功,但是当我尝试运行它时,出现以下异常:
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
Source Error:
Line 26: public static System.Resources.ResourceManager ResourceManager {
Line 27: get {
Line 28: if ((labels._resourceManager != null)) {
Line 29: return labels._resourceManager;
Line 30: }
Source File: /tmp/jeremy-temp-aspnet-0/5593eb70/App_Web_10b27ebd_0.cs Line: 28
Show Detailed Compiler Output:
dmcs /target:library /lib:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin" /debug+ /optimize- /warnaserror /warn:4 /out:"/tmp/jeremy-temp-aspnet-0/5593eb70/App_GlobalResources.70277c2e.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/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/Microsoft.Web.Infrastructure.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/System.Web.Razor.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/System.Web.WebPages.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/System.Web.WebPages.Razor.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/System.Web.Helpers.dll" /r:"/tmp/jeremy-temp-aspnet-0/5593eb70/App_GlobalResources.6d61537.dll" /r:"/tmp/jeremy-temp-aspnet-0/5593eb70/App_Code.3e3211f7.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/AjaxMin.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/BlogEngine.Core.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/BlogEngine.Web.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/BlogML.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/ICSharpCode.SharpZipLib.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/NuGet.Core.dll" /r:"/home/jeremy/Development/Blogengine.Web/BlogEngine/BlogEngine.Web/bin/System.Web.WebPages.Deployment.dll" /d:DEBUG /resource:"/tmp/jeremy-temp-aspnet-0/5593eb70/Resources.labels.resources" -- "/tmp/jeremy-temp-aspnet-0/5593eb70/App_Web_10b27ebd_0.cs"
/tmp/jeremy-temp-aspnet-0/5593eb70/App_Web_10b27ebd_0.cs(28,22): error CS0436: The type `Resources.labels' conflicts with the imported type of same name'. Ignoring the imported type definition
/tmp/jeremy-temp-aspnet-0/5593eb70/App_GlobalResources.6d61537.dll (Location of the symbol related to previous error)
抱歉,我问了这个问题,但是我在 Blogengine 论坛上没有得到答案,所以我决定向专业人士请教 ;-)
提前致谢,KU