Click here to Skip to main content
15,884,986 members
Articles / Programming Languages / Visual Basic

VS.NET CodeDOM-Based Custom Tool for String Resource Management

Rate me:
Please Sign up or sign in to vote.
4.52/5 (12 votes)
22 Jun 200413 min read 123.4K   1.1K   48  
A VS.NET custom tool, created with the help of CodeDOM and EnvDTE, used to facilitate management of resource strings via IntelliSense and error checking in VS.NET environment.
@echo off

@echo -----------------------------------------------------------
@echo Removing ResourceClassGenerator custom tool for VS.NET 7.x
@echo -----------------------------------------------------------

@echo.
@echo Preparing environment variables ...
@echo.

IF DEFINED VSCOMNTOOLS call %VSCOMNTOOLS%vsvars32.bat
IF DEFINED VSCOMNTOOLS call "%VSCOMNTOOLS%"vsvars32.bat
IF DEFINED VS71COMNTOOLS call %VS71COMNTOOLS%vsvars32.bat
IF DEFINED VS71COMNTOOLS call "%VS71COMNTOOLS%"vsvars32.bat

@echo.
@echo Deleting registry entries ...
@echo.

if %FrameworkVersion%==v1.0.3705 set VSNET=7.0
if %FrameworkVersion%==v1.1.4322 set VSNET=7.1

SET RegRoot=HKLM\SOFTWARE\Microsoft\VisualStudio
SET Key=ResourceClassGenerator

rem VB
SET VB_GUID={164B10B9-B200-11D0-8C61-00A0C91E29D5}
REG DELETE %RegRoot%\%VSNET%\Generators\%VB_GUID%\%Key% /f

rem C#
SET CS_GUID={FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}
REG DELETE %RegRoot%\%VSNET%\Generators\%CS_GUID%\%Key% /f

@echo.
@echo Unregistering components ...
@echo.

regasm /u ResourceClassGenerator.dll

@echo.
@echo Removing installed files ...
@echo.

del BaseCodeGeneratorWithSite.tlb
del ResourceClassGenerator.tlb

@echo Uninstall complete.

@echo on

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer Mono Ltd
Croatia Croatia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions