 |
BOOK: Beginning Visual C#  | This is the forum to discuss the Wrox book Beginning Visual C#, Revised Edition of Beginning C# for .NET v1.0 by Karli Watson, David Espinosa, Zach Greenvoss, Jacob Hammer Pedersen, Christian Nagel, Jon D. Reid, Matthew Reynolds, Morgan Skinner, Eric White; ISBN: 9780764543821 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning Visual C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

November 15th, 2004, 01:38 AM
|
|
Registered User
|
|
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Can the C# programs be run without .net framework?
Developing A simple but useful application in VSC#.net is so advantageous,but to run it the system is required to setup .net framework . It's hard to distribute a application and make it popular.
I want to known whether the C# program itself can be included all its running required groupwares,and run on the window systems without the platform of .net framework? 
|
|

November 21st, 2004, 11:21 AM
|
|
Registered User
|
|
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I don't think that you will can run any programme compiled with .net, in a system which does not have dot net frame work installed on it, i might be wrong but that is what logically comes to mind.
|
|

November 22nd, 2004, 10:08 AM
|
|
Registered User
|
|
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
No, you can't.
First, a program compiled in C# (assembly) is not a program in native code, is a "pre" compilation in a Intermediate Language (MSIL). When you run this "program" the .NET Runtime (which is unique for each platform. There are two available right now .Net Framework for Windows and the Mono Project a .Net framework for Linux), makes the final compilation to native code for the platform on which is executed, in a 'Just In Time' manner.
Second, all the .Net libraries you call within your code are not compiled into your assembly (This is why your assemblies are so small), ergo, you need this assemblies in the destination machine.
If it would be a way for make a 'all-in-one' compilation, we were returning to the way the things were done on Visual Studio 6, and in this way you would need a CD to distribute your code, make a new compilation for each different platform and no XCOPY capacity for implementing your code.
|
|

January 10th, 2005, 05:25 PM
|
|
Authorized User
|
|
Join Date: Jan 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
 This might sound dumb, but I'm just a student...
In that case, how do you write applications that will be executable on any, let's say Windows XP machine? I'd like to write applications for friends and have it work as easily as if they had downloaded it from download.com, not to have to install a whole environment.
|
|

January 10th, 2005, 09:13 PM
|
|
Authorized User
|
|
Join Date: Jan 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You can't run a C# application without the Framework. The Framework comes with Windows 2003, which is more recent than Windows XP. At this point, the only thing you can do is install the Framework. I haven't checked, but I'm guessing the next desktop OS (Longhorn?) that Microsoft releases will include the Framework as a standard component.
Carl Olsen
www.carl-olsen.com
|
|

January 19th, 2005, 03:35 PM
|
|
Authorized User
|
|
Join Date: Jan 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
If you were just trying to avoid the user needing to go out and download the .NET framework, you can provide a "bootstrap" version of your software. To do this you'll just have to modify your distribution files to install the .NET framework before installing your software i.e. change the "setup.exe" for your software to first install "dotnetfx.exe" which can be obtained from Microsoft.
http://whidbey.msdn.microsoft.com/li...tdeploy1_1.asp
So no, a C# program can not be run without the framework, but yes everything it needs can be included in your distributable package. If nothing else this at least answers the question that I posted...:D
Good Luck
Last edited by xr280xr; June 26th, 2013 at 12:46 PM..
|
|

February 15th, 2005, 03:07 AM
|
|
Registered User
|
|
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes. You can. Using a third party tool called Thinstall (Pronounced Thin-install). Visit www.thinstall.com for more information.
|
|

April 30th, 2005, 08:56 PM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I just bought a new Dell Dimension 8400 with XP Home edition and it came with the .NET Framework installed!
|
|

August 16th, 2005, 11:51 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hello All,
I am trying to call a C# DLL or Assembly from C..
Is it possible to do so and if it is then
Could anyone help me out with this task....
I am tired of searching it in google...:(
Thanks and Regards
Virajitha
|
|
 |