PC Review


Reply
Thread Tools Rate Thread

Are assemblies built at the project level?

 
 
Jeff Johnson [MVP: VB]
Guest
Posts: n/a
 
      28th Jun 2004
Basically, my real question is "Can an assembly house code from multiple
languages or must each assembly contain code from only one language?" I
would like to create a single assembly that has code from a C# project and
also from a VB project. Impossible?


 
Reply With Quote
 
 
 
 
Antony
Guest
Posts: n/a
 
      28th Jun 2004
As far as I am aware, you cannot use multiple .NET languages in a single
assembly.

Antony.


"Jeff Johnson [MVP: VB]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Basically, my real question is "Can an assembly house code from multiple
> languages or must each assembly contain code from only one language?" I
> would like to create a single assembly that has code from a C# project and
> also from a VB project. Impossible?
>
>



 
Reply With Quote
 
Patrick Steele [MVP]
Guest
Posts: n/a
 
      28th Jun 2004
In article <#(E-Mail Removed)>, (E-Mail Removed)
says...
> Basically, my real question is "Can an assembly house code from multiple
> languages or must each assembly contain code from only one language?" I
> would like to create a single assembly that has code from a C# project and
> also from a VB project. Impossible?


Pretty much. You can mix "modules" from different languages into an
assembly -- but you won't have one physical assembly. You'll have an
assembly file that defines an manifest only, and then each compiled
module file. "Module" is a target type available to the command line
compilers -- I'm not sure if you can create modules from VS.NET.

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
 
Reply With Quote
 
Richard Grimes [MVP]
Guest
Posts: n/a
 
      30th Jun 2004
"Patrick Steele [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In article <#(E-Mail Removed)>, (E-Mail Removed)
> says...
> > Basically, my real question is "Can an assembly house code from multiple
> > languages or must each assembly contain code from only one language?" I
> > would like to create a single assembly that has code from a C# project

and
> > also from a VB project. Impossible?

>
> Pretty much. You can mix "modules" from different languages into an
> assembly -- but you won't have one physical assembly. You'll have an
> assembly file that defines an manifest only, and then each compiled
> module file. "Module" is a target type available to the command line
> compilers -- I'm not sure if you can create modules from VS.NET.



You can build a module in a C++ project because you are allowed to specify
the command line. Unfortunately, other languages hide the command line, and
only offer a subset through the property pages, they don't offer
/target:module as an option. If you want to have a project with multiple
modules they you can create a Makefile project, but of course that means
that you must deal with makefiles (and that really defeats the idea of
having a project!)

Richard
--
My email address (E-Mail Removed) is encrypted with ROT13 (see
www.rot13.com)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Imports at file level vs Project level Alec MacLean Microsoft VB .NET 1 15th Feb 2006 09:19 PM
Calling assemblies built with different framework version Alejandro.Feiges@gmail.com Microsoft Dot NET Framework 3 14th Oct 2005 01:56 AM
Calling assemblies built with different framework version Alejandro.Feiges@gmail.com Microsoft Dot NET Framework 0 12th Oct 2005 05:52 PM
Satellite assemblies could not be built - Cslangsvc.dll required =?Utf-8?B?QWZhcQ==?= Microsoft Dot NET 1 9th May 2005 06:29 PM
Is there a built in way to determine the recursion level? james Microsoft C# .NET 11 20th Oct 2004 09:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:11 PM.