473,320 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Questions regarding assembly

csc /target:module MyMod.cs

What's meaning of "NETMODULE"?

Is /target:module always going to generate xxx.netmodule?

Does C# compiler only generate the following 3 types of files: .EXE, .DLL
and .NETMODULE?

When should produce .NETMODULE files instead of others?

Is the only use of .NETMODULE files to be added to an assembly?

What's the minimum composition of an assembly? At least a .DLL file or .EXE
file?

Thanks!

Nov 15 '05 #1
4 2051
fh1996 <fh****@yahoo.com> wrote:
csc /target:module MyMod.cs

What's meaning of "NETMODULE"?
It's probably easiest thought of as "part of an assembly".
Is /target:module always going to generate xxx.netmodule?
I believe so.
Does C# compiler only generate the following 3 types of files: .EXE, .DLL
and .NETMODULE?
And .PDB, really.
When should produce .NETMODULE files instead of others?
Very rarely, IME - especially as you can't have multi-code-module
assemblies in VS.NET (2002/2003 at least).
Is the only use of .NETMODULE files to be added to an assembly?

What's the minimum composition of an assembly? At least a .DLL file or .EXE
file?


Yes, IIRC - basically an assembly is a collection of modules, with the
appropriate "main" module (i.e. the one whose filename you specify)
containing a manifest saying which other modules are part of the
assembly. I can't remember what happens if the other modules also have
manifests - you could end up in strange situations, but basically you
wouldn't do that...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2
Jon Skeet [C# MVP] <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Does C# compiler only generate the following 3 types of files: .EXE, ..DLL and .NETMODULE?


And .PDB, really.


Thanks!

PDB files are not the "end" products but something of debugging info, aren't
they?

Thus, they can't be distributed as part of application or reused by other
projects for development.

When should produce .NETMODULE files instead of others?


Very rarely, IME - especially as you can't have multi-code-module
assemblies in VS.NET (2002/2003 at least).


What's "multi-code-module"? Code written in different languages?
"Very rarely"? Then whenis the appropriate time for doing this?

Is the only use of .NETMODULE files to be added to an assembly?

What's the minimum composition of an assembly? At least a .DLL file or ..EXE file?


Yes, IIRC - basically an assembly is a collection of modules, with the
appropriate "main" module (i.e. the one whose filename you specify)
containing a manifest saying which other modules are part of the
assembly.


"main module"? What does this mean?
Nov 15 '05 #3
fh1996 <fh****@yahoo.com> wrote:
Does C# compiler only generate the following 3 types of files: .EXE,
.DLL and .NETMODULE?
And .PDB, really.


Thanks!

PDB files are not the "end" products but something of debugging info, aren't
they?


Indeed.
Thus, they can't be distributed as part of application or reused by other
projects for development.
Well, you *might* want to distribute them as part of an app for a
specific customer, to get a more detailed stack trace.

Oh, and the C# compiler can also generate XML documentation.
Very rarely, IME - especially as you can't have multi-code-module
assemblies in VS.NET (2002/2003 at least).


What's "multi-code-module"? Code written in different languages?


Yup.
"Very rarely"? Then whenis the appropriate time for doing this?


For one thing, if you really need to inclue code written in different
languages in a single assembly. Basically I wouldn't worry about it -
very few people are going to want to use it.
Is the only use of .NETMODULE files to be added to an assembly?

What's the minimum composition of an assembly? At least a .DLL file or .EXE file?


Yes, IIRC - basically an assembly is a collection of modules, with the
appropriate "main" module (i.e. the one whose filename you specify)
containing a manifest saying which other modules are part of the
assembly.


"main module"? What does this mean?


The one with the manifest / the one whose filename you specify. It's
only in that sense that it's the "main" one.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #4
Jon was right on the money but I wanted to clarify a few points:
A .netmodule is really just a .dll with a different file extension and no
assembly manifest.
The output file can have any extension you want to specify via the /out
option
An assembly consists of exactly 1 manifest and as many files as you want
(each file is listed in the manifest). It is illegal to try and create an
assembly with more than one manifest.

--
--Grant
This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Daniel | last post by:
I'm a newcomer to .Net and am slowly becoming familiar with it, so I have some simple questions. Here's the situation: I created a VB.Net project for my data access layer (DAL), another VB.Net...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
4
by: Ramesh | last post by:
hi, Let me ask some basic questions. Can anybody explain me about the following questions: 1. When we have to create sn key? Whenever we compiled Component we have to create or it is a one time...
1
by: Johhy | last post by:
Hi, I recently took the web services certification test, and afterward I looked at some braindump-question to see what the correct answer was. However, I still don't know the correct answer and...
23
by: TefJlives | last post by:
Hi all, I'm learning a bit about C, and I have a few questions. I'm not trying to insult C or anything with these questions, they're just honestly things I don't get. It seems like pointers...
4
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
Hi; Got a couple of performance questions. 1) My app is pre-compiled but when I bounce IIS and then go to a page for the first time, it takes a couple of seconds to get that page. Subsequent...
22
by: Scott M. | last post by:
I've asked this before, but not gotten any clear answers, so I'd figure I'd try again. I am an experienced ASP .NET 1.1 developer and I understand the differences between an ASP .NET 2.0 "Web...
6
by: LessPaul | last post by:
I recently discovered Python and see it as a great language to use for personal projects (and more). I made my living for over a decade as a coder in C, C++, ADA, Fortran, and Assembly before...
5
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... I've got a .Net client to a soap service that works for the most part, but there are a couple of things I'd like to improve: 1) the first request to the client wrapper always takes...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.