. Topicala Page Index Token

A Journal about the experiences I have developing little applications in C#, Perl, Html and Javascript and talking about things new things that I use. Always Geeky; Always Nerdy; Always poor Grammer!

I am a Software Analyst Developer working in Southport, England but living in Liverpool. I develop mainly in C# and ASP.Net. I have been developing comercial software for several years now. I maintain this site (hosted at SwitchMedia UK) as a way of exploring new technologies (such as AJAX) and just generally talking about techie geek issues. This site is developed through a host of Perl scripts and a liberal use of Javascript. I enjoy experimenting with new technologies and anything that I make I host here.

Quick Search

Web www.kinlan.co.uk

Sunday, May 15, 2005

Running GACUtil in Build for Visual Studio 2005

It took me absolutly ages to find why I couldn't run GACUtil or the RegAsm.exe from a build script. It is because VS2005 Beta 2 doesn't seem to load the PATH Envionment variables at build time. This results in VS2005 Beta 2 not being able to find the files it needs. There is a simple cure to this problem

The Following doesn't work and causes build errors (because the build script doesn't run)
cd $(ProjectDir)\bin\Release

gacutil.exe /if Favorites.dll
regasm Favorites.dll
If you add the following line in: CALL "%VS80COMNTOOLS%\vsvars32.bat" > NULL
so that you get:
CALL "%VS80COMNTOOLS%\vsvars32.bat" > NULL
cd $(ProjectDir)\bin\Release

gacutil.exe /if Favorites.dll
regasm Favorites.dll
It works fine. The extra line in the build script seems to load the environment varibles that VS2005 Beta 2 needs.



Technorati Tags
[feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , ,

My Related Documents
, , ,

Related Amazon Books
Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries: /, Teach Yourself Visual Basic.NET in 21 Days (Sams Teach Yourself S.): /, Windows Forms Programming in C#: /, ASP.NET Unleashed (Unleashed S.): /, MCAD Training Guide 70-316: Developing and Implementing Windows-based Applications with C# and Visual Studio.NET: /

Comments: [Add New]

Very helpful! Thanks!

By Anonymous, at Thursday, August 16, 2007 2:44:00 PM