Home All Groups Group Topic Archive Search About

How to produce native code in .net 2005?

Author
13 Dec 2006 3:51 AM
Hooyoo
Hi, guys
Is there any settings in .net 2005 that can produce native code in .net
2005?  I need to deploy my application in a machine without CLR.
Thanks.

Author
13 Dec 2006 4:31 AM
Peter Duniho
"Hooyoo" <zhao_huy***@126.com> wrote in message
news:1165981897.956177.135990@n67g2000cwd.googlegroups.com...
> Hi, guys
> Is there any settings in .net 2005 that can produce native code in .net
> 2005?  I need to deploy my application in a machine without CLR.

..NET implies the CLR.  So, no...you can't do .NET without CLR.

If you actually meant to ask whether Visual Studio 2005 can generate native,
non-CLR code, the answer to that question is yes.  All you have to do is use
one of the non-CLR project types when creating your new project.

Note that you cannot simply change a setting to have a .NET program compiled
in a way so that it doesn't use the CLR.  A non-CLR program has to be
written as native Windows code from the ground up.  If you've written
managed code, you need .NET installed in order for it to run.

Pete
Author
13 Dec 2006 5:44 AM
G Himangi
Only non-CLR C++ projects can produce native code in VS 2005.

---------
- G Himangi,   Sky Software       http://www.ssware.com
Shell MegaPack : Fully recreate the Windows Explorer shell browsing UI,
behavior and functionality in your apps (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
---------


Show quote
"Hooyoo" <zhao_huy***@126.com> wrote in message
news:1165981897.956177.135990@n67g2000cwd.googlegroups.com...
> Hi, guys
> Is there any settings in .net 2005 that can produce native code in .net
> 2005?  I need to deploy my application in a machine without CLR.
> Thanks.
>
Author
13 Dec 2006 9:30 PM
Michael Nemtsev
Hello Hooyoo,

The other options (exect posted) is to use some libs http://www.yoda.arachsys.com/csharp/faq/#framework.required
which allow to run your code without installing .NET FW. but this need to
be included into your installer.

So u need to install smth, other this tool or .NET FW

H> Hi, guys
H> Is there any settings in .net 2005 that can produce native code in
H> .net
H> 2005?  I need to deploy my application in a machine without CLR.
H> Thanks.
---
WBR,
Michael  Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Author
14 Dec 2006 3:09 AM
Hooyoo
Thanks guys, got it.
Michael Nemtsev wrote:
Show quote
> Hello Hooyoo,
>
> The other options (exect posted) is to use some libs http://www.yoda.arachsys.com/csharp/faq/#framework.required
> which allow to run your code without installing .NET FW. but this need to
> be included into your installer.
>
> So u need to install smth, other this tool or .NET FW
>
> H> Hi, guys
> H> Is there any settings in .net 2005 that can produce native code in
> H> .net
> H> 2005?  I need to deploy my application in a machine without CLR.
> H> Thanks.
> ---
> WBR,
> Michael  Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour
>
> "At times one remains faithful to a cause only because its opponents do not
> cease to be insipid." (c) Friedrich Nietzsche

AddThis Social Bookmark Button