472,371 Members | 1,601 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 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 1999
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

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.