翻訳への提案を行います
 
他のユーザーによる提案:

progress indicator
他の提案はありません。
 印刷用ページ       送信     
クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
Visual Studio 2010 Beta 2
Visual Studio
 方法: 特定の .NET Framework バージョンまたはプロファ...
すべて縮小/すべて展開 すべて縮小
コンテンツの表示:   英語と日本語を並べて表示コンテンツの表示: 英語と日本語を並べて表示
このページは、ベータ版用に機械翻訳されたものです。翻訳者による翻訳は、製品の正規版で提供される予定です。詳細についてはよくある質問 を参照してください。またぜひこちら からアンケートにもご協力ください。
How to: Target a Specific .NET Framework Version or Profile

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The following procedures describe how to create a project that targets a specific .NET Framework version, or its profile, and how to change the target .NET Framework version for an existing project.

The following steps show how to create a project that targets a specific .NET Framework version.

To create a project that has a specific .NET Framework target

  1. In Visual Studio, on the File menu, click New and then click Project.

  2. In the New Project dialog box, select a project type, such as Visual C# Windows.

  3. In the box in the corner of the New Project dialog box, select the .NET Framework version you want your project to target, for example, .NET Framework 4.

    Note Note

    Visual Studio 2010 includes only .NET Framework 4. To target earlier versions of the .NET Framework, you must have the .NET Framework 3.5 SP1 installed.

  4. Click OK and then continue to create your project.

Note Note

The set of available project templates depends on the .NET Framework version you select.

The following steps show how to change the .NET Framework version target of an existing project.

To change the .NET Framework version or profile of a project

  1. In Visual Studio, open the project you want to change.

  2. Right-click the project in Solution Explorer and then click Properties.

  3. In the Project Designer, go to the Target Framework drop-down list.

    For Visual Basic projects, click the Compile tab and then click Advanced Compile Options. The Target Framework list is in the Advanced Compiler Settings Dialog Box (Visual Basic).

    For Visual C# projects, the Target Framework list is on the Application tab of the Project Designer. For more information, see Application Page, Project Designer (C#).

  4. In the Target Framework list, click a .NET Framework version, or its profile, that differs from the current one for the project.

    The project now targets the new .NET Framework version. The project will unload and then reload in the integrated development environment (IDE).

    Note Note

    If you change the .NET Framework target version, you may receive error messages if your code contains references to a different version. To resolve these errors, you must manually modify the references.

Visual Studio 2010
方法: 特定の .NET Framework バージョンまたはプロファイルを対象にしたビルド

[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 空白のトピックは、プレースホルダーとして挿入されています。]

次の手順は、既存のプロジェクトのターゲット .NET Framework バージョンを変更する方法と、特定の .NET Framework バージョン、またはそのプロファイルを対象とするプロジェクトを作成方法について説明します。

.NET Framework の特定のバージョンを対象とするプロジェクトを作成する方法を次の手順に示します。

された特定の .NET Framework ターゲットを持っているプロジェクトを作成するのには

  1. Visual Studio で、[ファイル] メニューの [新規作成] をクリックし、[プロジェクト] をクリックします。

  2. 新しいプロジェクト ダイアログ ボックスで、 Visual C# Windows などのプロジェクト種類を選択します。

  3. 新しいプロジェクト ダイアログ ボックスの隅にあるボックス] で、プロジェクトに、ターゲットをたとえばする .NET Framework バージョンの .NET Framework 4 の を選択します。

    メモ メモ

    Visual Studio 2010 は、.NET Framework 4 のみを含みます。 .NET Framework の以前のバージョンを対象に、.NET Framework 3. 5 SP1 をインストールしなければなりません。

  4. [OK] の をクリックして、プロジェクトの作成に進みます。

メモ メモ

使用可能なプロジェクト テンプレートのセットを選択する .NET Framework バージョンによって異なります。

既存のプロジェクトの .NET Framework バージョン ターゲットを変更する方法を次の手順に示します。

.NET Framework のバージョンやプロジェクトのプロファイルを変更するには

  1. Visual Studio では、変更するプロジェクトを開きます。

  2. ソリューション エクスプローラーでプロジェクトを右クリックし、[プロパティ] をクリックします。

  3. プロジェクト デザイナーで ターゲット フレームワーク ドロップダウン リストに移動します。

    Visual Basic プロジェクトでは、[コンパイル] タブをクリックし、[詳細コンパイル オプション] をクリックします。 [対象のフレームワーク] ボックスは、[ビルドの詳細設定] ダイアログ ボックス (Visual Basic) にあります。

    Visual C# プロジェクトでは、[対象のフレームワーク] ボックスは、プロジェクト デザイナーの [アプリケーション] タブにあります。 詳細については、「[アプリケーション] ページ (プロジェクト デザイナー) (C#)」を参照してください。

  4. ターゲット フレームワークの ボックスの一覧を .NET Framework バージョン、またはそのプロファイルをプロジェクトの現在のものと異なる。

    プロジェクトの対象となる .NET Framework バージョンが変更されます。 統合開発環境 (IDE: Integrated Development Environment) でプロジェクトがアンロードされ、再度読み込まれます。

    メモ メモ

    対象となる .NET Framework を別のバージョンに変更する場合、別のバージョンへの参照がコードに含まれていると、エラー メッセージが生成されることがあります。 これらのエラーを解決するには、参照を手動で変更する必要があります。

© 2009 Microsoft Corporation. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker