471,337 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Native C#?

Is there a way to write native C# applications?

I used to write a lot of native applications, but we used Borland to do it.

These days, I work for a different company that fully embraces Microsoft, so
it isn't really an issue any more.

Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#) to
create apps for non-Windows (UNIX, microprocessors, MAC, whatever).
Aug 25 '08 #1
8 1812
On Mon, 25 Aug 2008 06:52:03 -0700, jp2msft wrote:
Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe
C#) to create apps for non-Windows (UNIX, microprocessors, MAC,
whatever).
There is Mono an open source development of C# and .Net on Linux. It is
pretty young but it is available and it is possible to build applications
in it. TomBoy is a Wiki like personal tool written this way.
Aug 25 '08 #2
Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#) to
create apps for non-Windows (UNIX, microprocessors, MAC, whatever).
Even if you can write "native" appls. you will create them FOR
WINDOWS, they might not run in others OSs.
In the other hand , if your application is managed it can potentially
run in ANY OS that has a managed environment. Right now you have Mono
that runs on unix, and apple IIRC.
Aug 25 '08 #3
"jp2msft" <jp*****@discussions.microsoft.comwrote in message
news:57**********************************@microsof t.com...
Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#)
to
create apps for non-Windows (UNIX, microprocessors, MAC, whatever).
There's the Mono C# compiler which you can use on Linux:
http://www.mono-project.com/CSharp_Compiler

For microprocessors, you have the .Net Microframework, which you can
program in C# from within Visual Studio:
http://msdn.microsoft.com/en-us/embedded/bb267253.aspx
Aug 25 '08 #4
Hello!
As far as I know it's only MS that support the MSIL code but there might
be more OS that will support it the future.

//Tony

"jp2msft" <jp*****@discussions.microsoft.comskrev i meddelandet
news:57**********************************@microsof t.com...
Is there a way to write native C# applications?

I used to write a lot of native applications, but we used Borland to do
it.
>
These days, I work for a different company that fully embraces Microsoft,
so
it isn't really an issue any more.

Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#)
to
create apps for non-Windows (UNIX, microprocessors, MAC, whatever).

Aug 25 '08 #5
Great News!

Thanks everyone. It sounds like I am not "mopping myself into a corner."

"Tony Johansson" wrote:
Hello!
As far as I know it's only MS that support the MSIL code but there might
be more OS that will support it the future.

//Tony

"jp2msft" <jp*****@discussions.microsoft.comskrev i meddelandet
news:57**********************************@microsof t.com...
Is there a way to write native C# applications?

I used to write a lot of native applications, but we used Borland to do
it.

These days, I work for a different company that fully embraces Microsoft,
so
it isn't really an issue any more.

Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#)
to
create apps for non-Windows (UNIX, microprocessors, MAC, whatever).


Aug 25 '08 #6
On Aug 25, 8:52 am, jp2msft <jp2m...@discussions.microsoft.comwrote:
Is there a way to write native C# applications?

I used to write a lot of native applications, but we used Borland to do it.

These days, I work for a different company that fully embraces Microsoft, so
it isn't really an issue any more.

Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#) to
create apps for non-Windows (UNIX, microprocessors, MAC, whatever).
I've tested the latest release of Mono on Mac OS X and Linux and was
quite suprised to find it able to run my VS.NET compiled
Assemblies.... Since they added WinForms support the possibilities
have expanded, but there are still quite a few potential road blocks
(e.g. I had several exceptions generated on Mono that did not occur on
Microsoft's .NET CLR). If you were to start a new project and include
Mono builds in all your unit testing you should be fine. It really has
evolved.

One area of concern with Mono is that it's based on Microsoft's
published .NET standards for CLI with the inclusion of WinForms
support the Mono project is probably in violation of Microsoft
patents, but the company sponsoring Mono (Novell) appears to be on
good terms with Microsoft...



Aug 25 '08 #7
Hello jp2msft,
Is there a way to write native C# applications?

I used to write a lot of native applications, but we used Borland to
do it.

These days, I work for a different company that fully embraces
Microsoft, so it isn't really an issue any more.

Now that I'm getting pretty good at C#, I am left wondering if all of
my skills are tied to Microsoft or if I can use Visual Studio (and
maybe C#) to create apps for non-Windows (UNIX, microprocessors, MAC,
whatever).
There is support for native applications by using C++ or a mix of C++ and
Managed C++. For multi platform support have a look at Mono (and xbuild http://www.mono-project.com/Microsoft.Build).

There's also support for arm processors by using the Compact Framework for
Windows CE devices (also native support by using C++), an little more than
a year back, Microsoft has introduced the .NET Microframework which allows
you to program microchips and true embedded devices.

Appart from that, there are a number of add-ins for visual studio which allow
tou to develop in other languages like perl and tcl (ActiveState), php (jcx
software), Cobol (adtools) and Java J2ee (mainsoft).

--
Jesse Houwing
jesse.houwing at sogeti.nl
Aug 25 '08 #8
On Aug 25, 5:52*pm, jp2msft <jp2m...@discussions.microsoft.comwrote:
Is there a way to write native C# applications?
If "native" here means something opposite to "managed" (i.e. running
in a VM), then no. A C# compiler generating native code is possible in
theory, but it would still require a GC at least, and libraries such
as System.Reflection.Emit require some form of bytecode interpreter or
JIT, which would effectively amount to a VM in the end.
Aug 26 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by David Kantowitz | last post: by
1 post views Thread by dln | last post: by
3 posts views Thread by Xavi Sam | last post: by
9 posts views Thread by Herby | last post: by
8 posts views Thread by Gary Nastrasio | last post: by
etiainen
3 posts views Thread by etiainen | last post: by
2 posts views Thread by Bob Altman | last post: by
reply views Thread by rosydwin | last post: by

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.