如何仅使用我的控制台应用程序的Exe文件I.E. "&的.Exe QUOT;文件无论我想要什么 [英] How to Use Only Exe File Of My Console Application I.E. ".Exe" File Wherever I Want

查看:61
本文介绍了如何仅使用我的控制台应用程序的Exe文件I.E. "&的.Exe QUOT;文件无论我想要什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的ConsoleApplication01,它创建了ConsoleApplication01.exe,ConsoleApplication01.pdb,ConsoleApplication01.vshost.exe,ConsoleApplication01.manifest.exe和一些dll引用,如Introp.mydll.dll,IntropDBAcess.dll等。



所以,最后我想在任何地方使用ConsoleApplication01.exe。



即另一个驱动程序C, D,E等..没有其他文件。



我正在为我的VC ++项目工作,该项目是在Visual Studio 6.0中开发的。
我的C#项目的问题。

I have my ConsoleApplication01 it has created ConsoleApplication01.exe, ConsoleApplication01.pdb, ConsoleApplication01.vshost.exe, ConsoleApplication01.manifest.exe and Some dll references like Introp.mydll.dll, IntropDBAcess.dll etc.

So,finally i want to use only "ConsoleApplication01.exe" where ever i want.

i.e. Another Driver C, D, E etc.. without other files.

I was working for my VC++ project which was developed in Visual Studio 6.0
but giving problem for my C# Project.

推荐答案

C#与本机C ++不同,它要求运行它的计算机在其之前安装适当的.NET Framework能跑。如果不是,那么你的应用程序根本无法运行。



有一些方法可以让它变得更容易:减少应用程序的目标框架可能意味着您的目标操作系统随附安装的框架:例如,Win 8附带.NET 4.5。这里有一个列表可能有所帮助: https://en.wikipedia.org/wiki/.NET_Framework_version_history [< a href =https://en.wikipedia.org/wiki/.NET_Framework_version_historytarget =_ blanktitle =New Window> ^ ]
C# is not the sames as native C++, it requires the computer it is running on to have the appropriate .NET Framework installed before it can run. If it isn't, then you application can't run at all.

There are ways to make it easier: reducing the target framework for your application can mean that your target operating system is shipped with the framework installed: Win 8 comes with .NET 4.5 for example. There is a list here which may help: https://en.wikipedia.org/wiki/.NET_Framework_version_history[^]


这篇关于如何仅使用我的控制台应用程序的Exe文件I.E. &QUOT;&的.Exe QUOT;文件无论我想要什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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