1. 程式人生 > >Ext.NET Pro 2.0.0 破解版使用說明

Ext.NET Pro 2.0.0 破解版使用說明

Ext.NET Pro 2.0.0 破解版使用說明

1       本破解版本的來源

本壓縮包內提供的Ext.NET Assemblies.dll)編譯版本是由官方(http://www.ext.net/2012-7-24釋出的2.0.0 Pro原始碼版本去除了與License有關的程式碼編譯而成,功能上沒有任何刪減,使用方法和官方提供的編譯包一樣。

撰寫此文時,官方的最新版本為:2.1.12012/12/10釋出,不使用這個版本的原因是因為有BUG,詳見後面的說明。

用於編譯的2.0.0 Pro原始碼包如圖:

 

2       安裝方法

2.1     首先需要下載並安裝ASP.NET MVC3

 

僅需要下載並安裝其中的:

最終釋出的伺服器上也需要安裝。

2.2     在Visual Studio的工具箱中載入本壓縮包內的DLL

具體步驟請參看如下官方說明(該說明位於官方提供的編譯版本的檔案中),很簡單的英文不翻譯了,僅看紅色部分即可:

--------------------------------------------------------------------------

   II. ADD TO VISUAL STUDIO TOOLBOX INSTRUCTIONS

--------------------------------------------------------------------------

Getting Started (NuGet)

The easiest and quickest way to install Ext.NET is using NuGet.

Run the following command in Visual Studio Command panel, or seach for "Ext.NET" in NuGet Package Manager.

    Install-Package Ext.NET

Getting Started (Manual)

The following steps are required to manually install the controls into

your Visual Studio or Visual Web Developer Express Toolbox.

1.  Open Visual Studio 2010 or Visual Web Developer Express 2010.

2.  Open an existing web site or create a new web site project.

3.  Open or create a new .aspx page.

4.  Open the ToolBox panel, typically located on the left side in a

    fly-out panel (Ctrl + Alt + x).

5.  Create a new "Ext.NET" Tab, by...

  a. Right-Click in the ToolBox area.

  b. Select "Add Tab".

  c. Enter "Ext.NET".

6.  Inside the "Ext.NET" tab, Right-Click and select

    "Choose Items...".

7.  Under the ".NET Framework Components" Tab select the "Browse"

    button.

8.  Navigate to and select the Ext.Net.dll file, choose open, then

    select the "Ext.NET.dll" from the extracted download .zip package.

Ext.NET can always be downloaded from the following location, see

http://www.ext.net/download/

9.  The component items should now be added to the list and

    pre-checked. You can confirm by sorting the list by "Namespace"

    and scrolling to "Ext.Net"

10. Click "OK". The icons should be added to your ToolBox. You should

    now be able to drag/drop a Ext.NET component onto your WebForm.

11. Enjoy.

--------------------------------------------------------------------------

3       不使用官方2.1.1版本進行破解的原因

官方目前最新版本為Ext.NET Pro 2.1.1,釋出日期為2012-12-10。如圖:

 

這個版本經本人親測有BUG。該BUG表現為GridPanel中的列無法拖拽移動。除錯的時候如果拖拽,會發生找不到Header的錯誤。官方Demohttp://examples.ext.net/)中GridPanel下任意一個例程,如果進行拖拽,表現為不能移動。而在2.0.0這個版本中沒有這個問題。

4       破解了什麼

如果直接使用Ext.NET官方提供的ProAssemblies.dll)編譯版本只要在非127.0.0.1或者localhost地址下,每個頁面在右下角都會有License彈窗出現。即開發除錯的時候沒問題,釋出到伺服器上就會在右下角出現License彈窗。如下圖:

 

5       破解方法

其實就是使用官方的原始碼自己編譯獲得DLL,去掉License相關的程式碼。

步驟如下:

使用Visual Studio開啟原始碼中的sln檔案:

 

找到並修改ResourceManager.cs檔案

註釋掉this.CheckLicense();

重新編譯生成,生成的檔案清單:

預設在Ext.NET\bin\Debug下。