468,278 Members | 1,566 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,278 developers. It's quick & easy.

Deployment, keep getting: "file cannot be shared in Global Assembly Cache folder"

Hi all,

I have a C# class library project that needs to be registered for COM
interoperability. I set the "Register for COM Interop" to true in the
project's properties. When compiled, VS.NET creates a .tlb file under
obj/Release or obj/Debug, depending on the current configuration.

I also have a deployment project that uses the "Primary Ouput" of the class
library. The problem is that every time I launch VS.NET and try to build the
deployment project, VS.NET keeps trying to put both .dll and .tlb into GAC,
and then complains that only assemblies can be placed in GAC (makes sense).
I then create a folder under Common Files and move .tlb there. This builds
fine,
and I check the project back into SourceSafe.

However, the next time I launch VS.NET and try to build, the problem comes
back.

Is there any better way to deploy my class library for COM interop?

Thanks,

-Oleg.


Jul 21 '05 #1
0 2133

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by pauld | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
1 post views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.