Click to See Complete Forum and Search --> : running C# program
ncs
June 19th, 2002, 08:36 PM
From what I have heard about this language you must have C# loaded on a machine to run a program written in C#. (i.e. it is like Java) is this true, or does it generate an executable that can be run on a machine without C#???????
Meghansh
June 19th, 2002, 09:09 PM
Yeah ! It is like java. Any program in any .NET language starts with loading the CLR, which is in mscorlib.dll. So firstly this should be there on ur system. Secondly, all the dlls form which u r using ur namespaces in ur assembly folder in WINNT.
SO u've to download the runtime from MS site.
jparsons
June 21st, 2002, 08:58 AM
Originally posted by ncs
From what I have heard about this language you must have C# loaded on a machine to run a program written in C#. (i.e. it is like Java) is this true, or does it generate an executable that can be run on a machine without C#???????
The machine must be loaded with the CLR ( common language runtime). This is the equivalent of the JVM. Unlike the JVM though, the CLR can run any managed application (VB, C# etc).
You can use tools like ngen to precompile your IL code into the architecture of your choice but I believe you still need a lot of the DLL's that come with the CLR to run your applications.
Arild Fines
June 21st, 2002, 12:58 PM
ngen.exe will only affect startup times. You will still need the whole CLR to run the assembly. You will also need the original assemblies present on disk, since the CLR requires these for metadata. An ngen'ed image does not contain any metadata by itself.
dky1e
June 21st, 2002, 12:59 PM
Is there a way to package the program into an installation file that will take care of the nuisance?
How can I make an installation file, like with vb5?
sternaphile
June 21st, 2002, 01:14 PM
I haven't used it myself yet, but try
File->New->Project->Setup and Deployment Projects for a start...
dky1e
June 21st, 2002, 04:20 PM
err...
Where do I start?
I want to create a setup app for my (c#)solution.
JimH
June 24th, 2002, 01:48 PM
dky1e:
sternaphile wrote:
I haven't used it myself yet, but try File->New->Project->Setup and Deployment Projects for a start...
... which I believe presumed that you are using the C# .NET IDE, which would open the New Project wizard for you.
You could then select 'Visual C# Projects' from the Project Types frame, and either 'Windows Application' or 'ASP .NET Web Application' from the Templates frame.
Hope this helps,
JimH
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.