水丝游云

跌倒了?就顺便看看绽放着蔚蓝色微笑的天空吧!
posts - 5, comments - 5, trackbacks - 0, articles - 14
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

公告

2008年12月17日

这几天找到了DXperience的源代码,但是却不会编译,用VS 2008编译了老半天也没有搞定.

后来上官方网站找到了他提供的编译脚本.几分钟搞定.但是好像有些项目没有编译成功!看来还的继续学习.

下面是官方的说明,大家自己看吧.

http://www.devexpress.com/Support/Center/KB/p/A609.aspx

How to rebuild assemblies from the source code

Article ID: A609
Product Group: .NET
Product: n/a
Version(s): 6.x, 7.x, 8.1, 8.2, 8.3
Updated: 5 十二月 2008

Description

How can I recompile the XtraGrid assemblies? I want to step into your code and trace it when debugging my applications.

Solution

Applies to:
XtraGrid and other Developer Express .NET components

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. The scripts (DOS batch files) are in the attached archive. 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.
  
  
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"Developer Express .NET vX.Y"Sources" directory by default where vX.Y is the DXperience version, e.g v6.1, v6.2, v6.3, v7.1, etc.

Before you start compiling the libraries you should delete the original DevExpress DLLs. They are located in your "Program Files"Developer Express .NET vX.Y"Sources"DevExpress.DLL 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 Sources"DevExpress.DLL directory to the C:"WINDOWS"assembly hidden folder.

Finally, it is necessary to update Toolbox icons. Please launch the ToolboxCreator tool from the Start | Programs | Developer Express .NET vX.Y | Tools menu.

See Also:
Component designers are unavailable. Components are not displayed on forms in design mode
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 XAF sources

Attachments

posted @ 2008-12-17 15:32 水丝游云 阅读(1496) 评论(2) 编辑

2007年11月28日

摘要: 多文件上传的临时总结阅读全文

posted @ 2007-11-28 22:58 水丝游云 阅读(231) 评论(0) 编辑

2006年6月9日

在用asp.net开发的时候,日期选择总会用到,一般的日期的格式是"2005-02-06",可是当在用ajsx,需要通过js接受这个日期类型,并发送到服务器的时候就遇到了问题,直接把"2005-02-06"付给js对象根本不行,总是为空,后来想了一个办法,虽然笨点,可是好歹可以传到服务器上了:
         var year,month,day;
        var ar=new Array();
        ar=document.getElementById("TxtGouMaiRiQi:DateInput").value.split('-');
        year=ar[0];
        month=ar[1]-1;
        day=ar[2];
        var newDate=new Date(year,month,day);
总觉得这个方法太笨,可是暂时也找不到好的方法,就讲究着用用吧.希望以后能找到好的方法!

posted @ 2006-06-09 15:11 水丝游云 阅读(129) 评论(0) 编辑

2005年11月30日

    刚开始学ORM的时候用的是听棠 的spl,一个很好用的工具,可是有一个问题,就是它是不开源的,后来考虑再三还是放弃在项目中使用.现在改用NHibernate,开源而且也并不比SPL难用多少.
     软件总没有完美的,NHibernate当然也有他的缺点.今天就发现了他在批处理上的问题!
在SPL中可以用DeleteCriteria来批量的删除,功能就象sql的delete table where id=1 ,一个很方便的功能(还是很怀念SPL,确实很方便).在NHibernate中有 ISession.Delete来完成相似的功能,由于ISession.Delete的帮助很简单,于是就去JAVA的论坛找了写Hibernate的资料来看.了解到Hibernate中的ISession.Delete的方法是先获取满足条件的对象,然后再删除,详细资料可以看这里,.再看NHiberante,它是从Hibernate而来,那么ISession.Delete的实现方法也应该和Hibernate相似,那也就意味着批量处理的时候依然需要SQL的帮忙(不知道NHibernate是不是改进了批量的处理方法,可是资料还是太少了).还好当初用NHibernate的时候就没有想它能让我一句SQL都不写,不然就郁闷了.
     在那篇Hibernate文章中谈到了" select只读操作和insert,delete,update这些数据库修改操作在速度上有一个以上的数量级的差距 "," Hibernate批量更新和删除效率并非传说中的那么差,只要优化的好,速度也非常快 ".而且建议可以用SQL就用SQL来实现批量的处理.而我觉得如果数据量小的话,可以不必写SQL,毕竟写SQL就意味着我们违背了当初我们使用ORM的目的了!

posted @ 2005-11-30 15:22 水丝游云 阅读(2427) 评论(3) 编辑

 在2003里面可以这样就可以在引用类的方法时候显示注释的信息
namespace MyNameSpace
{
/// <summary>
/// 类的说明
/// </summary>
public class MyClass
{
/// <summary>
/// 名称取得(简述)
/// </summary>
/// <param name="strUserID">用户ID</param>
/// <returns>用户名称</returns>
public string GetUserName(string strUserID);
}
可是在2005里面这样的方法不行了,试了很多方法也不可以,很是郁闷!
今天上网无意中看到了网友的解决办法,其实很简单.
只要将Build中的Output path 中的xml documentation file选中就可以.我想是不是以前2003是默认选中的,而2005则没有.

posted @ 2005-11-30 10:24 水丝游云 阅读(168) 评论(0) 编辑