vs2010编译DXperience 11.2.11源码总结

一、修改StatementCodeGenBase.cs文件格式
修改
Sources\DevExpress.CodeParser\CodeGen\StatementCodeGenBase.cs

Sources\DevExpress.CodeParser.SL\CodeGen\StatementCodeGenBase.cs
先用西欧格式(1251)打开文件,然后再保存未UTF-8+文件格式

二、修改Sources\DevExpress.Xpf.Layout.SL\DevExpress.Xpf.Docking.Design.SL\CustomizationPanelResources.xaml
注释掉<VisualStateManager.VisualStateGroups>...</VisualStateManager.VisualStateGroups>
注:11.2.5这段代码注释掉了,11.2.7和11.2.11都没注释,但是11.2.7能编译通过,11.2.11却不能编译通过,不知为何

三、源代码中内有以下项目
DevExpress.Data.Linq.SL.csproj
DevExpress.Data.Compact.csproj
DevExpress.Xpo.Compact.csproj
DevExpress.Xpo.Providers.Compact.csproj
DevExpress.DemoData.csproj
DevExpress.OfficeSkins.csproj
DevExpress.Parser.csproj
DevExpress.Xpo.Providers.csproj
DevExpress.Data.Linq.csproj
DevExpress.Xpo.Linq.csproj
DevExpress.Web.Linq.csproj
DevExpress.Xpf.DemoBase.DemoData.csproj

四、Scheduler无法通过编译,出现较多的错误:

  1. Data\SchedulerStorage.cs(491,42): error CS0122: “DevExpress.XtraScheduler.IAppointmentStatusFactory”不可访问,因为它受保护级别限制 [e:\Program Files\.Net\DevExpress\Components\Sources\DevExpress.Xpf.Scheduler.SL\DevExpress.Xpf.Scheduler.SL\DevExpress.Xpf.Scheduler.SL.csproj]
     
  2. SchedulerControl.cs(104,209): error CS0122: “DevExpress.XtraScheduler.Commands.IInnerSchedulerCommandTarget”不可访问,因为它受保护级别限制 [e:\Program Files\.Net\DevExpress\Components\Sources\DevExpress.Xpf.Scheduler.SL\DevExpress.Xpf.Scheduler.SL\DevExpress.Xpf.Scheduler.SL.csproj]
     
  3. c:\Windows\Microsoft.NET\assembly\GAC_MSIL\DevExpress.Xpf.Scheduler.v11.2\v4.0_11.2.11.0__d1beddccefc68d40\DevExpress.Xpf.Scheduler.v11.2.dll : error CS0011: 未能解析程序集“DevExpress.Xpf.Core.v11.2, Version=11.2.11.0, Culture=neutral, PublicKeyToken=d1beddccefc68d40”中由类型“DevExpress.Xpf.Scheduler.SchedulerElement”引用的基类或接口“DevExpress.Xpf.Core.DXFrameworkContentElement” [e:\Program Files\.Net\DevExpress\Components\Sources\DevExpress.Xpf.Scheduler.SL\DevExpress.Xpf.Scheduler.Design.SL\DevExpress.Xpf.Scheduler.Design.SL.csproj]
     
  4. iCalendarExchange.cs(104,36): error CS0507: “DevExpress.XtraScheduler.iCalendar.iCalendarImporter.ImportCore(System.IO.Stream)”: 当重写“protected”继承成员“DevExpress.XtraScheduler.Exchange.AppointmentImporter.ImportCore(System.IO.Stream)”时,无法更改访问修饰符 [e:\Program Files\.Net\DevExpress\Components\Sources\DevExpress.Xpf.Scheduler.SL\DevExpress.XtraScheduler.iCalendarExchange.SL\DevExpress.XtraScheduler.iCalendarExchange.SL.csproj]
     
  5. iCalendarExchange.cs(134,35): error CS0507: “DevExpress.XtraScheduler.iCalendar.iCalendarImporter.CalculateSourceObjectCount()”: 当重写“protected”继承成员“DevExpress.XtraScheduler.Exchange.AppointmentExchanger.CalculateSourceObjectCount()”时,无法更改访问修饰符 [e:\Program Files\.Net\DevExpress\Components\Sources\DevExpress.Xpf.Scheduler.SL\DevExpress.XtraScheduler.iCalendarExchange.SL\DevExpress.XtraScheduler.iCalendarExchange.SL.csproj]
     
  6. iCalendarExchange.cs(466,36): error CS0507: “DevExpress.XtraScheduler.iCalendar.iCalendarExporter.ExportCore(System.IO.Stream)”: 当重写“protected”继承成员“DevExpress.XtraScheduler.Exchange.AppointmentExporter.ExportCore(System.IO.Stream)”时,无法更改访问修饰符 [e:\Program Files\.Net\DevExpress\Components\Sources\DevExpress.Xpf.Scheduler.SL\DevExpress.XtraScheduler.iCalendarExchange.SL\DevExpress.XtraScheduler.iCalendarExchange.SL.csproj]

你可能感兴趣的:(11.2.11源码总结)