473,413 Members | 1,801 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,413 software developers and data experts.

Compile Questions

I am trying to teach myself how to compile my application at the command line
with the csc.exe. I found a good article which steps you through the
process, but I have some questions, which I hope someone can elighten me
on....

1. In VS2005, I found an article about how VS2005 is using a new tool
called "MSBuild" to do compiles. Does this mean that csc.exe is being
replaced and I really should be learning this new tool?

2. Strong Names - The example showed you how to use a utility to create a
"strong name" and utilize this as a compile option. What does this do for
me? It seems that the /keyFile would not accept a path which was on another
drive, maybe I did something wrong, but I had to move the .snk file into the
same directory where I was doing the compile. I was compiling from the c:
prompt, but all my code and references were on another drive.

3. I'm confused as to when to create a ".netModule" or a ".dll" file. Why
would I create one vs. the other.

Thanks in advance for your assistance!!
May 10 '07 #1
1 1335
See inline:
1. In VS2005, I found an article about how VS2005 is using a new tool
called "MSBuild" to do compiles. Does this mean that csc.exe is being
replaced and I really should be learning this new tool?
MSBuild is a build system, not the actual program that performs the
compilations. csc.exe is still the executable which does the actual
compilation. With MSBuild, you have project files (xml based) which have
items (various files and types) which are then processed by tasks (there is
a CSC task which does compilation for C#). There is much more to this, but
that's a high-level overview. The MSBuild engine will take the project
items, pass them to the CSC task, which will create the command line for
running csc.exe, etc, etc.
2. Strong Names - The example showed you how to use a utility to create a
"strong name" and utilize this as a compile option. What does this do for
me? It seems that the /keyFile would not accept a path which was on
another
drive, maybe I did something wrong, but I had to move the .snk file into
the
same directory where I was doing the compile. I was compiling from the c:
prompt, but all my code and references were on another drive.
You should use a full path for the /keyFile switch. A strong name key
allows you to create strong named assemblies. You can find a good
description of strong-named assemblies here:

http://msdn2.microsoft.com/en-us/library/wd40t7ad.aspx
3. I'm confused as to when to create a ".netModule" or a ".dll" file.
Why
would I create one vs. the other.
An assembly is a set of 1-N netmodules. Netmodules have code and
implementation in them, but no manifest. An assembly has a manifest which
details the contents of the assembly and subsequent netmodules. An
advantage of a netmodule is that you can create netmodules in various
languages (perhaps leveraging the benefits of one language in one module and
another language in another module) and then combine them into one assembly.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
May 10 '07 #2

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

Similar topics

1
by: edward hage | last post by:
Hello, I have a Linux machine and I use Netscape 7.1 which I upgraded from Mozilla. I downloaded j2sdj-1.4.2_02 and I have installed the plugins as followes: in .mozilla/plugins- directory a...
5
by: xuatla | last post by:
Hi, I encountered the following compile error of c++ and hope to get your help. test2.cpp: In member function `CTest CTest::operator+=(CTest&)': test2.cpp:79: error: no match for 'operator='...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
52
by: entropy123 | last post by:
Hey all, I'm working with some legacy C code and I would like to compile it as a CPP file. I get the following error message: driver.cpp:87: cannot convert `void *' to `GenericStruct *' in...
8
by: farseer | last post by:
Can someone please assist me in understanding why i am receiving this error: " error C2440: 'type cast' : cannot convert from 'LRESULT (__cdecl CMyToday::* )(HWND,UINT,WPARAM,LPARAM)' to 'LONG' "...
30
by: David T. Ashley | last post by:
I have a large project on a Linux box that may eventually have several hundred 'C' source files, which need to be compiled and linked into several executables. Not all of the executables will...
6
by: cyberhacker665 | last post by:
I stumbled upon a c++ source code of a programm and it needs to be compiled by me. I am under win32 and i download the Dev-C++ compiler from sourceforge. Tne source code i want to compile is...
1
by: Loic Mahe | last post by:
Hello, I would like to compile GLib as a static library on Windows XP with MinGW if possible. I downloaded GLib and needed librairies, but only the .dll files are included in the zip file. ...
1
by: brianrpsgt1 | last post by:
Newbie here.... I have been able to successful pull info from a MySQL DB, get the results and output them in an HTML format using Cheetah to the screen using IDLE. I am doing this on a Windows...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.