473,233 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,233 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 1885
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: David Kantowitz | last post by:
I am trying to wrap a native-C++ DLL in managed C++, to use in a .NET project. The native code is compiled into a DLL, and I have created a .def file that exports the mangled names of the...
1
by: dln | last post by:
Hey all. I'm a bit new to the language and I'm trying to figure out how to have my c# application interact with native code that is exported via a dll. I've run into a problem interfacing with a...
3
by: Xavi Sam | last post by:
Hi When I build my asp.net application the ASP.NET generates a net.assembly by page in the directory of my pc: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files Theese...
9
by: Herby | last post by:
Is possible to have a managed method within a Native(un-managed) class within a \clr project? E.g. class myClass { public: #pragma managed void myMethod(void);
3
by: Lonewolf | last post by:
Hi all, I'm having difficulties passing data back to managed class from my native class when the data is generated from within a native thread in the native class itself. I will give the following...
8
by: Gary Nastrasio | last post by:
If I compile with /clr:safe, which is exactly meant by saying I can't use "Native Types" in my code? Is a native type something such as float, short, or int? Thanks, Gary
5
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I have a class that is writen in unmanaged pure native C++. This class files (h and cpp) are inserted to a managed C++ (VC++ 2005, C++/CLI) DLL compoenet. This DLL compoenet is used in a C#...
3
etiainen
by: etiainen | last post by:
Hi everyone! I'm in a bit of a problem here: I have to make a maven project for native (jni & C) code. I am using this plugin:...
2
by: Bob Altman | last post by:
Hi all, We have a native class modeled after the System::Exception class, and all exceptions that we throw derive from this class. For now this class is quite simple: just Description and...
4
by: joes.staal | last post by:
Hi, I know this has been asked earlier on, however, none of the other threads where I looked solved the following problem. 1. I've got a native C++ library (lib, not a dll) with a singleton. 2....
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.