0

If I include all the libraries a project refers to, would the compiled application be able to run in an environment which doesn't have the required .NET Framework installed?

To be more precise, if I develop using .Net 4.0 features, would the application be able to run on a system which only has .Net 2.0 installed if I include the referenced libraries (i.e. copy them next to the executable)?

I did read this question Deploying .net 4 apps on .net 2 machines, but I'm not sure of the answer because other users say that you can also redistribute the .NET runtime with your application.

4

3 に答える 3

4

いいえ、.NET 4 は新しいランタイムで動作します。これは、.NET 4 に伴う大きな変更の 1 つです。

于 2012-08-17T02:26:07.947 に答える
1

実際には、サードパーティのツールを使用してアプリに必要な .NET 4 ランタイムの部分を静的にリンクすると、.NET 4 がインストールされていないマシンで実行できます。

そのようなアプリの 1 つがRustemSoft .NET Linkerです。

于 2012-08-17T02:30:13.077 に答える
0

Xenocode PostBuild と呼ばれる製品がありました。これは、マネージ アプリケーションとそのすべての依存関係を取り、それをネイティブ EXE としてカプセル化することができました。Xenocode は現在 Spoon であり、Virtual Application Studioという製品があります。私はそれを使用していませんが、これはあなたがやろうとしていることをするために必要なことだと思います.

于 2012-08-17T02:29:46.397 に答える