473,796 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2069
fh1996 <fh****@yahoo.c om> 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.co m>
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.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
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.c om> 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.co m>
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
2262
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 project for my business logic layer (BLL), and am using ASP.Net web forms as the front end. So I want by BLL to reference the DAL and the ASP.Net project to reference the BLL. Questions:
8
5266
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 developing a web-based application, one part of which involves allowing the user the ability to page through transaction "history" information. The _summary_ history table will have the following fields: ServiceName, Date, User-Ref1, User-Ref2,...
4
2230
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 process? 2. What information contained in sn key. I gone through that it is having public key. How it is using this key to intract with client. 3. When we have to run gacutil.exe file. Whenever we
1
2685
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 hope you can help me :) Here are 5 questions I want to know if I answered them correctly: /Jonny 1. You create an XML Web service named TimeService. Each time TimeService is started, it checks for the existence of an event log named...
23
4346
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 to chars are just how you deal with strings, and pointers to pointers to char just give you arrays of strings. What is the advantage of this vs. languages with a string type?
4
290
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 hits are fast. Why? 2) Even after hitting all pages involved, if I logout and then go to login again - it takes 5 - 10 seconds. The login page uses the standard login
22
1465
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 Site" vs an ASP .NET 2.0 "Web Application" (among other things, all compiled code placed in several assembly files vs. one assembly file). Here are my 2 questions:
6
1140
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 moving to systems engineering. I'm now retired, and would love to code again. I see Python as the perfect language to get a good program working in a short time. My question is in regard to GUI platforms. My primary target would be Windows, but I...
5
3076
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 12-15 seconds even though the web server shows < a half second spent on the request. What takes so much time for the client wrapper to warm up? All subsequent requests, even to the same method, take the half second.
0
9679
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9527
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10453
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.