473,508 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1890
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
4098
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
2038
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
1419
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
2046
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
3656
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
2165
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
7237
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
5374
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
2954
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
2858
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....
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7118
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.