没有.net的基本控制台应用程序,是否可以在c#中使用。 [英] basic console app without .net, is it possible in c#.

查看:65
本文介绍了没有.net的基本控制台应用程序,是否可以在c#中使用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要编写一个带控制台输出的简单应用程序和文件i / o,以便分发给其他机器的
。是否可能没有.net开销的c#,不确定是否所有机器Xp都安装了.net。


可能建议使用c / c ++,哪个版本。


任何建议都非常感谢。


-

soler

need to write a simple app with console output and file i/o to be distributed
to other machines. Is it possbile in c# without .net overhead, not sure if
all machines Xp have .net installed.

probably suggest c/c++, which version.

any suggestions greatly appreciated.

--
soler

推荐答案

2008年2月1日星期五09:30:02 -0800,soler

< so *** @ discuss.microsoft.comwrote:
On Fri, 01 Feb 2008 09:30:02 -0800, soler
<so***@discussions.microsoft.comwrote:

需要编写一个带控制台输出和文件i / o的简单应用程序,以便将

分配给其他机器。它是否可能在c#中没有.net开销,不确定

如果

所有机器Xp都安装了.net
need to write a simple app with console output and file i/o to be
distributed
to other machines. Is it possbile in c# without .net overhead, not sure
if
all machines Xp have .net installed.



AFAIK,C#仅适用于.NET环境。我不认为你可以在C#中编写一个非托管程序,因为该语言特别依赖于

..NET运行时。

AFAIK, C# only works in the context of .NET. I don''t think you can write
an unmanaged program in C#, as the language specifically depends on the
..NET runtime.


可能建议使用c / c ++,哪个版本。
probably suggest c/c++, which version.



任何版本的C / C ++都可以正常工作。 Windows并不关心您使用的编译器版本是什么版本。您确实需要一个支持您打算使用的Windows

API的SDK,但如果您的应用程序非常简单,那么您可以使用过时的SDK。但你为什么要这样?在最坏的情况下,只需使用最新的Visual Studio Express版本即可。


Pete

Any version of C/C++ should work fine. Windows doesn''t care what version
of the compiler you used. You do need an SDK that supports the Windows
APIs you intend to use, but if your application is truly simple, you could
probably use an obsolete SDK as well. But why would you? At worst, just
use the latest Visual Studio Express version.

Pete


"索勒" < so *** @ discuss.microsoft.com写信息

news:15 ************************* ********* @ microsof t.com ...
"soler" <so***@discussions.microsoft.comwrote in message
news:15**********************************@microsof t.com...

需要编写一个带控制台输出和文件i / o的简单应用程序

分发

到其他机器。是否可能没有.net开销的c#,不确定是否所有机器Xp都安装了.net。


可能建议使用c / c ++,哪个版本。


非常感谢任何建议。


-

soler
need to write a simple app with console output and file i/o to be
distributed
to other machines. Is it possbile in c# without .net overhead, not sure if
all machines Xp have .net installed.

probably suggest c/c++, which version.

any suggestions greatly appreciated.

--
soler



不,你不能运行托管代码(C#,vb,C ++ / CLI等)而不用运行时

安装。

你唯一的选择是使用非托管语言(C / C ++,VB6,Delphi等)。

不确定您的要求是什么,但对于简单的控制台应用程序,您可以使用脚本来实现
语言(VBScript,JScript,Perl等......)


Willy。


No, you can''t run managed code (C#, vb, C++/CLI etc) without the runtime
installed.
Your only option is using an unmanaged language (C/C++, VB6, Delphi etc).
Not sure what your requirements are, but for simple console applications you
can even use a scripting language (VBScript, JScript, Perl etc...)

Willy.


soler写道:
soler wrote:

需要编写一个带控制台输出的简单应用程序和文件i / o,以便分发给其他机器的
。是否可能没有.net开销的c#,不确定是否所有机器Xp都安装了.net。


可能建议使用c / c ++,哪个版本。
need to write a simple app with console output and file i/o to be distributed
to other machines. Is it possbile in c# without .net overhead, not sure if
all machines Xp have .net installed.

probably suggest c/c++, which version.



C#没有.NET是不可能的 - 你可以使用最新的和最优惠的
最好的MS VC ++来生成本机代码。


但你真的需要吗?没有.NET的PC''是一种濒临灭绝的物种。并且你被允许在运行时重新分配




Arne

Not possible with C# without .NET - you can use latest and
greatest MS VC++ to generate native code.

But do you really need to ? PC''es without .NET is an
endangered species. And you are allowed to redistribute
the runtime.

Arne


这篇关于没有.net的基本控制台应用程序,是否可以在c#中使用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆