Right, recompiling with no changes does not change the auto-generated
GUIDs.  Note that auto-generated LIBIDs and CLSIDs are based off of the
assembly's version number, and by default, Visual Studio .NET projects
are marked with a version of "1.0.*" (inside AssemblyVersionAttribute).
This will cause your GUIDs to change on re-compile unless you change it
to be a fixed version.

Adam

-----Original Message-----
From: Brent E. Rector [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 31, 2002 10:57 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] COM Interop calling a C# DLL from VB6

The best technique is setting the GUID/IID/CLSID's using the
GuidAttribute. However, a recompile with no changes does not cause the
guids to change. In fact, I just tested that to make sure the docs were
correct. I recompiled your code below numberous times without making any
changes to the source and the generated GUIDs were always the same.

-- Brent Rector, .NET Wise Owl
Demeanor for .NET - an obfuscation utility
http://www.wiseowl.com/Products/Products.aspx

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to