Current filter:
                                You should refresh the page.
                                3
                                  • How can I recompile the XtraGrid assemblies? I want to step into your code and trace it when debugging my applications.

                                You must  log in  or  register  to leave comments

                                1 Solution

                                1

                                Foreword
                                We offer a set of build scripts to automate the rebuilding of our components from source code for those who have the DXperience Enterprise or Universal installed. Use the links at the end of this answer to download the scripts (DOS batch files). Please refer to the ReadMe.txt document inside the archive for instructions. We still advise that you fully read this article to better understand the dependencies between our assemblies and the manual rebuild process.
                                 

                                Let's consider rebuilding the XtraGrid for example.
                                To compile and install the XtraGrid libraries you should generate a strong key file, build libraries in a particular order registering every library prior to building the next one and finally update Toolbox icons in your Visual Studio.

                                The component source files are installed in the \Program Files\DevExpress X\Components\Sources\ directory by default where X is the DXperience version, e.g 2009.1, 2009.2, etc.

                                Before you start compiling the libraries you should delete the original DevExpress DLLs (except for the DevExpress.ExpressApp.Design.Core.dll one, if you are using eXpressApp Framework (XAF)). They are located in your \Program Files\DevExpress X\Components\Bin\Framework (Components\Sources\DevExpress.DLL prior to 11.2) folder. Next, you should delete all DevExpress.* entries in the Assembly Cache (the C:\WINDOWS\assembly hidden folder).

                                Assemblies must be signed with a strong key in order to be registered in the Assembly Cache. We don't distribute our StrongKey.snk file - it's our signature. You will need to create a strong key yourself. Please review the Sources\DevExpress.Key\ReadMe.txt document for basic instructions. You can learn more about strong keys from the MSDN Library.

                                Let's assume that it's needed to rebuild the XtraGrid. The compilation order must be as follows:
                                DevExpress.Data*
                                DevExpress.Utils*
                                DevExpress.XtraEditors**
                                DevExpress.XtraNavBar***
                                DevExpress.XtraEditors.Design
                                DevExpress.XtraLayout***
                                DevExpress.XtraGrid
                                DevExpress.XtraGrid.Design
                                ----------
                                * Please do not rebuild DevExpress.Data and DevExpress.Utils, if you don't have the DevExpress.XtraNavBar source. The XtraNavBar depends on these assemblies and you won't be able to use the former if the latter are rebuilt.
                                ** Do not rebuild DevExpress.XtraEditors, if you don't have the DevExpress.XtraLayout source. The XtraLayout depends on this assembly and it won't work, if the XtraEditors is rebuilt.
                                *** The source of the DevExpress.XtraNavBar and DevExpress.XtraLayout assemblies is not included in the XtraGrid Suite, but it's shipped with the XtraNavBar and XtraLayout Control products sold separately. The XtraNavBar is used in the XtraGrid's designer (the DevExpress.XtraGrid.Design assembly). The XtraLayout is used for one of the XtraGrid's views, namely the LayoutView.

                                You can use the Microsoft .NET Framework Configuration console to register the assemblies in the Assembly Cache. Another way is to use Windows Explorer and drag-and-drop the DLLs from the Bin\Framework (Sources\DevExpress.DLL prior to 11.2) directory to the C:\WINDOWS\assembly hidden folder.

                                Note :
                                You need to have Visual Studio 2010 installed to build Designer assemblies for our XPF controls (although you can use a VS2012 compiler)

                                Build Scripts :
                                v2012.2
                                v2012.1
                                v2011.2
                                v2011.1
                                v2010.2
                                v2010.1
                                v2009.3
                                v2009.2
                                v2009.1
                                v2008.3
                                v2008.2
                                v2008.1
                                v2007.3
                                v2007.2
                                v2007.1
                                v2006.3
                                v2006.2
                                v2006.1

                                See Also:
                                Component designers are unavailable at design time
                                How to fix the NullReferenceException when creating a component by dragging its icon from the Toolbox
                                Are the protected class members of your .NET controls documented?
                                Troubleshooting design-time problems
                                How to recompile the XAF source code

                                Show all comments
                                • John M Kerr 06.12.2012

                                  I need to build DXPerience 12.1 from its sources. Where is the relevant archive for that?

                                • Darren Glasper 06.12.2012

                                  I would also like to build 12.1. Where is the zip file for that?

                                • Leandro G. Rosa 06.12.2012

                                  I need it too, I can't upgrade to the new version without some of my modifications, and the build scripts would make it a lot easyer

                                • Anestis Katsiamakas 06.13.2012

                                  Please provide the build scripts and any more dependencies if any! Thanks!

                                • We need some time to prepare corresponding scripts. We will attach them as soon as we can.

                                • Thomas Wieser 06.15.2012

                                  Hi
                                  Are the XAF-Sources rebuild in your Build-Script? Or am I missing something?

                                  thanks Thomas

                                • Yacoob I Moolla 06.15.2012

                                  How can I use this script?

                                  I tried to read the articles
                                  http://www.devexpress.com/Support/Center/p/K18065.aspx

                                  but can't find a clue how to use it anyway.

                                • John M Kerr 06.15.2012

                                  Maybe the problem is that the ReadMe instruction file is missing from this version?

                                • Yacoob I Moolla 06.15.2012

                                  I am experiencing permission problems. I tried to run as an administrator and grant myself to the full control of that folder. but no work so far

                                • Yacoob I Moolla 06.15.2012

                                  I referenced to the previous sample and

                                  There's no ToolboxCreator

                                • @Thomas, Larry:
                                  The scripts posted here can be used to rebuild DXperience libraries except for XAF.
                                  We will attach XAF build scripts to the KB18065 KB Article shortly.

                                • Przemyslaw Wlodarczak 06.20.2012

                                  After I recompile 12.1, wpf controls components are gone from toolbox. ToolboxCreator does not work.

                                • Hi Przemyslaw,

                                  Yes, controls become signed with the different key, so it is necessary to manually add them to the toolbox. Right-click on the toolbox, click on the "Choose Items..." item in the context menu, and add necessary items.

                                • Pawel Kasperek 06.28.2012

                                  I also have problem with ToolboxCreator. It doesn't work with default installed controls. Also, after I recompiled 12.1 controls don't work any additional tools as XPO Profile, Demo Center, Demo Applications, etc.

                                • Hi Pawel,

                                  Please review the How to resolve issues with Toolbox items. It describes how to solve Toolbox problems in our latest release. Our compiled demos are designed to be used with assemblies signed with our strong key.
                                  You need to recompile them, if you need to show demos after rebuilding our assemblies.

                                • Pawel Kasperek 07.26.2012

                                  Hi,
                                  During compile DevExpress components from sources I have other error: Could not locate the assembly "WebDev.WebHost". Why do you have in ASP.NET projects references to old "WebDev.WebHost" ? I have installed on my machine only IIS 7.5 with ASP.NET for .NET Framweork 4. I don't use old version of ASP.NET/ .NET Framework.

                                • Pawel Kasperek 07.26.2012

                                  I got last version of DXEperencie build script from sources. There is still the bug with DevExpress tools as XPOProfiler. After compilation from sources these tools don't work.

                                • Uriah (DevExpress Support) 07.27.2012

                                  >> During compile DevExpress components from sources I have other error: Could not locate the assembly "WebDev.WebHost".

                                  AFAIK this is a warning rather than error, and you can ignore it. Please see the discussion in the Errors while rebuilding assemblies with scripts thread for more detail. If I am mistaken and this is the error in your case, please create a separate ticket in our Support Center to discuss this problem. We will be happy to help you.

                                  >> There is still the bug with DevExpress tools as XPOProfiler.

                                  I have created a separate Support Center ticket on your behalf at the How to make XPO profiler work after rebuilding the source code?. Please bear with us, we will answer your question soon.

                                • Uriah (DevExpress Support) 08.09.2012

                                  Our team is dedicated to addressing all your concerns. In order to better serve and track the multiple questions in your inquiry, we have taken the liberty of separating the issues you addressed. Please refer to this ticket for further correspondence on your question: Cannot convert project with the ProjectConverter tool.

                                • Pawel Kasperek 08.19.2012

                                  Hi,
                                  Do you are planning add support new VS 2012 to build DXperience from sources ? In last version 2012.1 I don't see settings to define for build DXperience controls from sources.

                                • Uriah (DevExpress Support) 08.20.2012

                                  Hi Pawel,

                                  Please refer to this ticket for further correspondence on your question: Add Visual Studio 2012 settings to KB609 scripts.

                                • villarreal 09.04.2012

                                  Hello can you give me a script to rebuild all Aspx controls?

                                • Uriah (DevExpress Support) 09.05.2012

                                  Hello Сarlos,

                                  The buildall.bat file will build all the projects in the Sources directory including projects containing ASP.NET components. Should you experience any issue with it, please feel free to ask a question in our Support Center. We will do our best to help you.

                                • villarreal 09.06.2012

                                  Tank you Uriah, but where can i find this buildall.bat file?

                                • Hi,

                                  You can find the "buildall.cmd" file in the corresponding .zip archive, which you can download from the Attachement section on this page.

                                  Do not hesitate to contact us if you have additional questions or need further assistance.

                                • Anestis Katsiamakas 12.06.2012

                                  Hello,
                                  Any estimations about the release of 12.2 build scripts?
                                  I would like to mention, that from 12.1 build scripts, it is almost impossible to make a complete build. There are always projects that fail, and the problem is the source code!

                                • Uriah (DevExpress Support) 12.06.2012

                                  Hello Anestis,

                                  We are working on this and will do our best to update build scripts as soon as possible. Please add this ticket to your favorites to be notified when updated scripts are ready: Update A609 KB article for DXperience version 12.2.

                                • Alexander Myltsev 12.13.2012

                                  I have a bug when I am using DevExpress WinForms built from sources. I have not that bug while using dlls from box. How is it possible? I am using DevExpress 2008 vol. 1.

                                • Hi Alexander,

                                  Thank you for your feedback.
                                  Would you please create a new ticket and clarify your issue in greater detail?

                                • James Klett 12.18.2012

                                  I need the kit for the latest version 12.2.4 I see a 12.1 not a 12.2

                                  I don't see it in the list.

                                  Also, can you PLEASE sort the list, you know, like either newest on the top, or oldest on the top. Thanks

                                  JAMES

                                • Hi James,

                                  Thank you for your inquiry. We will prepare appropriate scripts soon and publish them (Update A609 KB article for DXperience version 12.2).

                                  As for sorting of versions in our KB page, I agree with you that it is better to sort versions in a corresponding order (from the oldest one to the newest one). So, I have extracted this inquiry to a separate ticket (Sort attachments in the A609 KB article in the version order (from the oldest one to the newest one)). We will take your opinion into account.

                                • Ivan Yuzafatau 12.29.2012

                                  I need XtraCharts rebuild.
                                  In what order should I do this?

                                • Boris Bondarev 12.29.2012

                                  Ivan, I'm not a DX support, but I think the general rule is to start building from reference tree leaves and move to the root. The references, used by library (except from reflection mechanism), you can see in ILDasm or Reflector (or in Object Browser in VS - but not shure).

                                • Ivan Yuzafatau 12.29.2012

                                  I looked at the buildall.cmd file. Now I understand.

                                • Hi Ivan,

                                  Our scripts rebuild our charts as well. So, just follow the instructions here to do this.

                                • Tomas Hanc 01.21.2013

                                  Hi DX,
                                  the file gac.bat contains errors. There is wrong path to design assemblies. Design assemblies are located in subfolder.

                                  for example corrected command: %gacutil% -i Design\DevExpress.Design.%dxver%.dll

                                • Uriah (DevExpress Support) 01.21.2013

                                  Hi Tomas,

                                  I have tested the build scripts on my machine and they work without errors. Please note that the gac.cmd file is called from the buildproject.cmd file as shown below:

                                  if not '%3'=='SL' %gacutil% -i ..\Bin\Framework\%3%1.dll

                                  And, in the buildall.cmd, we pass a sub-folder as the third parameter:

                                  call buildproject.cmd DevExpress.Design.%dxver% ".\DevExpress.XtraEditors\DevExpress.Design\DevExpress.Design.csproj" Design\

                                • Tomas Hanc 01.21.2013

                                  Hi Uriah,
                                  you have right, but I'm trying install already built libraries only. On one machine I run build scripts, that is ok. On the second machine I want only install libraries into GAC using gac.BAT. There is problem with design libraries.

                                • Uriah (DevExpress Support) 01.23.2013

                                  Hi Tomas,

                                  I have tried to find out if there is any other approach allowing us to find an assembly without specifying a path in the parameter. However, the only approach I can imagine is to parse the assembly name and check the existence of the "Design" word.

                                  I do not think that this is a good approach. It is more complex than the approach that is currently used. In addition, while this approach works at present, it is not protected from changes that may occur in the future.

                                  From my point of view, it is not a good idea to introduce a dependence to the assembly name. Specifying the path in the parameter is a more general approach.

                                • Tomas Hanc 01.23.2013

                                  Hi Uriah,
                                  I agree with you completely. I only trying to explain that the file GAC.BAT doesn't work correctly. This file is included in zip file, which is created and published by DX (http://downloads.devexpress.com/A609/v2012.2.zip). Never mind, I will be modify the file by myself.

                                  Regards,
                                  Tomas

                                • Matthew Holland 02.07.2013

                                  Is there an updated build script for version 2.6 (that was released late January)?

                                • Hi Matthew,

                                  To avoid any misunderstanding in this ticket. I have created the Build scripts for version 12.2.6 ticket on your behalf regarding this issue.

                                • Leon Meijer 4 05.14.2013

                                  Any update when an updated build script will be released that includes rebuilding XAF?

                                • Uriah (DevExpress Support) 05.14.2013

                                  Hello Leon,

                                  You can find build scripts for XAF source code in this Knowledge Base article: How to recompile the XAF source code.

                                You must  log in  or  register  to leave comments