Click here to Skip to main content
15,922,407 members
Home / Discussions / C#
   

C#

 
GeneralRe: Confused Between Two Codes ....Help Pin
Pete O'Hanlon20-Dec-07 0:42
mvePete O'Hanlon20-Dec-07 0:42 
GeneralRe: Confused Between Two Codes ....Help Pin
Christian Graus19-Dec-07 21:45
protectorChristian Graus19-Dec-07 21:45 
GeneralRe: Confused Between Two Codes ....Help Pin
Anthony Mushrow19-Dec-07 23:54
professionalAnthony Mushrow19-Dec-07 23:54 
GeneralRe: Confused Between Two Codes ....Help Pin
sindhutiwari20-Dec-07 2:46
sindhutiwari20-Dec-07 2:46 
GeneralRe: Confused Between Two Codes ....Help Pin
Anthony Mushrow20-Dec-07 2:50
professionalAnthony Mushrow20-Dec-07 2:50 
GeneralWithout Framwork can run .net applications Pin
jason_mf19-Dec-07 20:10
jason_mf19-Dec-07 20:10 
GeneralRe: Without Framwork can run .net applications Pin
N a v a n e e t h19-Dec-07 20:51
N a v a n e e t h19-Dec-07 20:51 
AnswerRe: Without Framwork can run .net applications Pin
TJoe20-Dec-07 2:40
TJoe20-Dec-07 2:40 
The basic idea is that your assemblies are merged with the .Net system assemblies into a single EXE file and compiled to native x86 code.

Typically, a .Net application has dependencies on many of the .Net system assemblies. These types of products remove this dependency by merging the dependent code into your assembly. This is possible, because .Net can be easily decompiled and then recompiled.

This eliminates the dependency, but your code is still shipped in IL format, which only .Net understands. So a typical .Net application is shipped in IL format and automatically compiled to x86/x64/I64/etc code when run on the target machine (which has .Net installed). Without the .Net framework installed, the target machine would not know how to run an EXE in the IL format. These types of products fix this by compiling the entire application to x86/x64/I64/etc code, then shipping that code. So the final EXE is in say x86 code, which the target box would know how to run.

This latter part limits the portability of your .Net application. Typically, a .Net application can be run on x86 (and compiled to target x86), then copied to a x64 machine. It will then be compiled to target x64, thus gaining some benefit from the faster processor. If you "pre-compile" your binaries then you cannot copy the x64 EXEs to a x86 box (vice-versa works because an x64 box can run x86 binaries).

You can use ilmerge and ngen to do the same thing that these products do, but it's not really recommended. NGen is good, if you compile the .Net binaries on the target box as part of your install. This way you get all the benefit for portability and speed.
Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralMDI with different processes Pin
Abdul Sami X19-Dec-07 20:04
Abdul Sami X19-Dec-07 20:04 
GeneralRe: MDI with different processes Pin
Paul Conrad24-Dec-07 19:41
professionalPaul Conrad24-Dec-07 19:41 
GeneralPublish app for multi user usage Pin
ZenyukIV19-Dec-07 19:26
ZenyukIV19-Dec-07 19:26 
QuestionAccessing Web Form controls from a C# thread Pin
Chesnokov Yuriy19-Dec-07 19:12
professionalChesnokov Yuriy19-Dec-07 19:12 
GeneralRe: Accessing Web Form controls from a C# thread Pin
N a v a n e e t h19-Dec-07 20:49
N a v a n e e t h19-Dec-07 20:49 
Generalregarding config file Pin
tasumisra19-Dec-07 17:49
tasumisra19-Dec-07 17:49 
GeneralRe: regarding config file Pin
Christian Graus19-Dec-07 17:55
protectorChristian Graus19-Dec-07 17:55 
GeneralRe: regarding config file Pin
tasumisra19-Dec-07 18:00
tasumisra19-Dec-07 18:00 
GeneralRe: regarding config file Pin
darkelv19-Dec-07 19:09
darkelv19-Dec-07 19:09 
QuestionHow can I validate an enum parameter without using IsDefined? Pin
JoeRip19-Dec-07 17:12
JoeRip19-Dec-07 17:12 
AnswerRe: How can I validate an enum parameter without using IsDefined? Pin
michaelvdnest19-Dec-07 18:59
michaelvdnest19-Dec-07 18:59 
GeneralRe: How can I validate an enum parameter without using IsDefined? Pin
JoeRip20-Dec-07 1:55
JoeRip20-Dec-07 1:55 
AnswerRe: How can I validate an enum parameter without using IsDefined? Pin
Pete O'Hanlon20-Dec-07 2:05
mvePete O'Hanlon20-Dec-07 2:05 
GeneralRe: How can I validate an enum parameter without using IsDefined? Pin
JoeRip20-Dec-07 2:13
JoeRip20-Dec-07 2:13 
QuestionHow to know if the mobile is downloading or uploading data from internet? Pin
supercsharp119-Dec-07 16:37
supercsharp119-Dec-07 16:37 
GeneralRe: How to know if the mobile is downloading or uploading data from internet? Pin
Paul Conrad19-Dec-07 16:43
professionalPaul Conrad19-Dec-07 16:43 
QuestionRe: How to know if the mobile is downloading or uploading data from internet? Pin
supercsharp119-Dec-07 18:16
supercsharp119-Dec-07 18:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.