.exe问题 [英] Issue with .exe

查看:101
本文介绍了.exe问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友/先生,
我已经在VS 2010的Program.cs和名为LLCS的项目中编写了一个程序,因此一切都很好,可以编译,甚至可以执行.exe.
但是问题是我将那个.exe文件带到了另一个系统,当我执行该文件时给出了错误提示 .net framework 4.0未安装,我该如何解决?
帮帮我:)

而执行.exe的另一件事是,拥有.net框架是否必不可少??

在此先感谢

解决方案



只需在另一台计算机上安装.net framework 4.0可再发行组件.
对于用C#编写的应用程序,您肯定需要在目标系统上安装.net框架.
您还可以做的是:如果不需要.net 4.0,则可以在项目设置中将应用程序的目标框架更改为其他内容(2.0、3.5,...).



Friends/sir ,
I have written a program in Program.cs in VS 2010 and in a project named LLCS , so everything is fine , it compiled and even it is .exe is also executed.
But the problem is that i have taken that .exe file to another system , when i executed that it is giving a error note .net framework 4.0 is not installed , how can i fix it ????
help me :)

And another thing is for executing a .exe , is it essentiall to have a .net framwork ???

Thanks in advance

解决方案

Hi,

just install the .net framework 4.0 redistributable on the other machine.
For applications written in c#, you definitely need the .net framework installed on the target system.
What you could also do is: if you don''t need .net 4.0 you can change the target framework of your application to something different (2.0,3.5,...) in your project settings.


Visual Studio 2010 defaults to .Net Framework 4.0, I believe, just as VS2008 defaults to version 3.5 for new projects. If you''re not using any of the new features in the 4.0 Framework, try recompiling your program using the .Net Framework 2.0. You can find this setting in the Project/Properties menu, in the Application Settings tab (at least, that''s where it is in VS2008). If it compiles correctly and runs without error, you don''t use any of the new features, and it will run on any WinXP or higher machine.


这篇关于.exe问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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