Jelle Druyts .NET Consultant
Just another ignorant weirdo from Antwerp, Belgium trying to make sense out of it all
You know when you have an assembly with serviced components that needs to be registered in COM+, you have to open up a .NET Command Prompt, navigate to the proper directory and call Regsvcs.exe with the name of the dll you want to register?
I just thought of a really simple trick that handles this with two clicks from within Visual Studio .NET (everybody else has probably already figured this out but somehow forgotten to tell me).
Just add an external tool - I cunningly called it "Register Output Assembly In COM+" - with the command pointing to Regsvcs.exe (e.g. "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\RegSvcs.exe") and with "$(TargetPath)" as its arguments.
Now when you run the external tool, it will just register the output assembly of your current project in the COM+ catalog. I also made it use the output window so I see the results right there in Visual Studio .NET as well.