有没有一个.net 4或3.5可再发行,是不是在安装程序的形式?一个DLL放在程序文件夹?放在、安装程序、再发、文件夹

2023-09-07 09:31:05 作者:若无其事原来是最狠的报复

我工作的一个程序在Visual C#2010一个朋友的公司,它没有安装任何.NET。我知道你可以从微软的网站上下载.NET 3.5或4,但该程序将运行在帐户将无法安装任何东西。是否有一个DLL,我可以下载,然后将在计划文件夹,使其工作?还是有其他的替代方案,不包括安装的东西或下载的东西。

I'm working on a program in Visual C# 2010 for a friends company and it does not have any .NET installed. I know you can download .NET 3.5 or 4 from Microsofts site, but the accounts that the program will run on will not be able to install anything. Is there a DLL I can download and then place in the programs folder to make it work? Or any other alternative that does not include installing things or downloading things.

编辑:忽略了5MB的限制:我的意思是,如果我有下载任何程序的程序将被执行,在计算机上,它应低于5MB。最终的应用程序可以是两倍或三倍原来的方案尺寸。

Disregard the 5mb limit: I had mean that if I have to download any program on the computer the program will be executed on, it should be below 5mb. The final application can be double or triple the original programs size.

谢谢

Varmitharen

Varmitharen

推荐答案

让我来回答这个问题直接,这样你就不会浪费你没有时间也没有你的朋友:没有没有比正确安装.NET之外的其他方式(或重写与非托管C ++ code这是不可能的事,你愿意做),你的应用程序。更何况,大多数Windows PC应该已经通过Windows Update至少.NET 3.5安装。

Let me answer this directly so that you don't waste neither your time nor your friends: No there isn't other way other than properly installing .NET (or rewriting your application with unmanaged C++ code which is unlikely something you are willing to do). Not to mention that most Windows PC should already have at least .NET 3.5 installed through Windows Update.

的。NET 4.0客户端配置文件是41MB,这就是你得逞的最小值。

The .NET 4.0 Client Profile is 41MB and that's the minimum you get away with.