Products Technologies Demo Docs Blog Support Company

BrowserTextControl: Using Post-build Events in Visual Studio

During BrowserTextControl development on a local machine, Internet Explorer caches the user control and skips re-downloading it when the codebase changes. Adding gacutil.exe /cdl as a Visual Studio post-build event automatically clears the .NET download cache on every build.

BrowserTextControl: Using Post-build Events in Visual Studio

When developing with TX Text Control Server for ASP.NET (incl. Windows Forms) and it's BrowserTextControl class, you might have learned that you need to clear the .NET download cache (dl3) everytime you create a new version of the wrapping user control. Otherwise, Internet Explorer won't download the user control again due to the fact that the codebase has been modified.

This only happens on the development machine. In production, if the server provides a new version of the user control, Internet Explorer downloads this new version in order to install it in the .NET download cache.

To avoid cleaning the download cache manually using the Visual Studio command line, you can add this command to the post-build events of Visual Studio.

  1. Open your website's properties using the main menu Project entry.
  2. On the third tab, add the following command to the Post-build event comment line:
    "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /cdl

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Post

SampleVisual Studio

TX Text Control .NET for Windows Forms Licensing

The licenses.licx file controls how Visual Studio compiles TX Text Control .NET for Windows Forms licenses into .NET assemblies. This guide details three common scenarios: creating TextControl…

Share on this blog post on: