1

Is there anyway to make it possible to use .net 3.0 namespaces in a .net 2.0 application? I'm specifically looking to use the System.Windows.Media.Media3D namespace.

Edit: I am looking to use the actual assemblies, not just the namespaces. Poor wording on my part.

4

3 に答える 3

1

.NET2.0と.NET3.0/ 3.5は、すべて同じ2.0.NETランタイムを使用します。3.0はWCFWPFWFとCardspaceを追加し、3.5はLinqetalを追加しました。ライブラリ経由のみ。

VS2008を使用している場合は、csharp 3.0機能(ラムダ、匿名型、匿名メソッドなど)を使用してアプリケーションをコンパイルし、プロジェクトを2.0フレームワークをターゲットに設定している限り、2.0ランタイムで実行できます。

3.0のライブラリの1つから機能を使用するには、ユーザーは3.0フレームワークをインストールする必要があります。

2.0アプリケーションの意味をより具体的に説明できれば、役立つと思います。3.0と3.5をインストールせずにアプリケーションを実行できる必要があるということですか?上司がプロジェクト設定のロールダウンを3.0に変更できないということですか?

于 2008-12-10T20:24:38.623 に答える
1

いいえ、.NET 2.0 で新しい .NET 3.0 を使用することはできません

それはとても簡単です

于 2008-12-10T19:28:05.307 に答える
0

Are you trying to use the namespaces or the code? You can use the namespaces for whatever you want, so long as you don't import the applicable DLLs. That would cause a spaghetti code nightmare, but you can do it.

As I'm sure you figured out, no you cannot use the 3.0 code... or you'd have to call it a ".Net 3.0 application".

于 2008-12-10T19:23:53.443 に答える