Class library projects are DLLs. You can't directly link DLLs together into
a new DLL.
You could try a utility called ILMerge [1]; but I haven't tried it with
mixed-mode DLLs.
[1] http://research.microsoft.com/~mbarnett/ILMerge.aspx

Signature
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
> I have a managed C++ project and two C# projects. All are class library
> projects. The C++ project links with native C++ static libraries and
[quoted text clipped - 26 lines]
>
> Thanks - Henry
Thanks, Peter. I read somewhere that ILMerge, and Al.exe, only work for pure
managed assemblies, but don't support mixed mode DLLs containing both managed
and unmanaged code. I dropped them from my list.
Right now I am looking at using CSharp compiler and VC++ linker. I've seen
in internet newsgroups some people got it working successfully. My CSharp
compiler is complaining that some classes are defined multiple times.
Obviously, I am still missing something - probably simple.
-- Henry
> Class library projects are DLLs. You can't directly link DLLs together into
> a new DLL.
[quoted text clipped - 34 lines]
> >
> > Thanks - Henry
Peter Ritchie [C# MVP] - 25 Apr 2008 18:06 GMT
Visual Studio doesn't support them, but compiling to netmodules could then be
linked together as an assembly using Assembly Linker (al.exe).
I'm not sure how to get c++ compiler to generate netmodules...

Signature
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
> Thanks, Peter. I read somewhere that ILMerge, and Al.exe, only work for pure
> managed assemblies, but don't support mixed mode DLLs containing both managed
[quoted text clipped - 45 lines]
> > >
> > > Thanks - Henry
Peter Ritchie [C# MVP] - 25 Apr 2008 18:33 GMT
Here's what I've been able to do:
csc /target:module cstest.cs
cl /clr:pure /FUSystem.dll /LN cpptest.cpp
al /platform:x86 /t:lib /out:test.dll cpptest.netmodule cstest.netmodule
This generates a dll (test.dll) that contains the two netmodules. When I
added to another C# project as a reference I was able to add managed types
from both netmodules.

Signature
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
> Thanks, Peter. I read somewhere that ILMerge, and Al.exe, only work for pure
> managed assemblies, but don't support mixed mode DLLs containing both managed
[quoted text clipped - 45 lines]
> > >
> > > Thanks - Henry
Jeffrey Tan[MSFT] - 28 Apr 2008 06:22 GMT
Hi Henry,
I have added a reply to you in microsoft.public.dotnet.languages.vc
newsgroup, please feel free to check it there, thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
=========================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.