On a recent project, I wanted to remove all of the additional language folders/files which come with the AjaxControlToolkit binary. That is, the ones which can be seen in the following screenshot:
I needed to conserve as much disk space as possible on this project and had no need for any internationalisation.
So, here is how I accomplished that (note: for those who have read my previous post AJAX Control Toolkit – Getting Started, the first 4 steps are the same):
- navigate to http://www.codeplex.com/AjaxControlToolkit , and click on the Downloads link (far right of the page).
- assuming you are running V3.5 SP1 of the .NET framework, download the dll only zip archive – AjaxControlToolkit-Framework3.5SP1-DllOnly.zip
- extract the contents of that archive into a directory on your machine. I created a directory called AJAX Control Toolkit in C:\Program Files, and placed all of the files from the archive in that.
- create a new Web Site in Visual Studio 2008.
- create a new folder called Bin.
- add AjaxControlToolkit.dll (from C:\Program Files\AJAX Control Toolkit) to the Bin folder
- add the following element to web.config (inside the <pages><controls></controls><pages> element)
<add tagPrefix=“ajaxToolkit” assembly=“AjaxControlToolkit“ namespace=“AjaxControlToolkit“/>
- add a Reference (to the Solution) to the AjaxControlToolkit.dll assembly
I hope this helps anyone else who might have been trying to figure out how to go about this.