Windows Phoneの開発環境の作り方 2010年11月版

Windows Phone の開発環境が不調だったので一度全部入れなおすことにしました。

ところがどっこい依存関係がひどいことになっててどこから手をつければいいのかさっぱり。散らばった情報を整理し、一から構築する際のインストールの手順をまとめてみました。

開発者それぞれでニーズは異なるとはいえ、もうちょっと整理されるといいのですが・・・。

方針

Windows Mobile 6.x 編

Visual Studio 2008 Professional 日本語版

必須です。

一緒に Windows Mobile 5.0 SDK R2 もインストールされます。

Visual Studio 2008 Professional Service Pack 1

Service Pack を先に当てておきます。
Download: Visual Studio 2008 Service Pack 1 - Microsoft Download Center - Download Details

  • VS90sp1-KB945140-JPN.exe (Webインストーラ)

InteliSenseが英語になってしまうことがあるようなので、こちらから修正ファイルをダウンロードしてきてインストールします。

Windows Mobile 6 Professional and Standard Software Development Kits Refresh

Windows Mobile 6 のSDKをインストールします。
Download Windows Mobile 6 SDK Refresh from Official Microsoft Download Center

なお、Windows Mobile 6 の日本語エミュレータイメージは 6.5.3 のエミュレータイメージと競合するのでどちらかしかインストールできません。ここでは新しい6.5.3を優先することにします。

Windows Mobile 6.5 Professional Developer Tool Kit

Windows Mobile 6.5 (T-01A, Hybrid W-ZERO3 etc) 用のエミュレータイメージをインストールします。
Download Windows Mobile 6.5 Developer Tool Kit from Official Microsoft Download Center

Windows Mobile 6.5.3 Developer Tool Kit

Windows Mobile 6.5.3 (T-01B, IS02 etc) 用の追加SDKエミュレータイメージをインストールします。
Download Windows Mobile 6.5.3 DTK from Official Microsoft Download Center

Windows Phone 7 編

Windows Phone 6 編と違い、途中でアンインストールが必要なものがあります。順番を間違えないようにいきましょう。

Visual Studio 2010 製品版 日本語版

製品版のVisual Studio 2010 を(Professional / Premium / Ultimate ほか)お持ちの方はインストールしておきます。

Visual C# 2010 Express 日本語版

XNA Game Studio 4.0 Language Pack のインストールに必要です。
Microsoft Visual Studio Express

Windows Phone Developer Tools RTW

Windows Phone 7 開発の本丸です。
Download Windows Phone Developer Tools RTW from Official Microsoft Download Center

Windows Phone Developer Tools でインストールされた Expression Blend 関連を削除

Expression Blend 4 の日本語版を入れる場合、Windows Phone Developer Tools の Expression Blend と競合するので、以下の項目をコントロールパネルのプログラムの削除から削除します。

Expression Blend 4 日本語版
XNA Game Studio 4.0 Language Pack (日本語版)

XNA 開発ツールの日本語版を当てます。
Download: Microsoft XNA Game Studio 4.0 Language Pack (日本語) - Microsoft Download Center - Download Details

Visual Studio 2010 のWindows Phone 7テンプレートをコピー

Visual Studio 2010 の製品版をインストールした場合は、英語版のフォルダから日本語版のフォルダにテンプレートをコピーすると、製品版のVisual StudioでWindows Phone 7開発ができます。

  1. VS のインストールフォルダ\Common7\IDE\ProjectTemplates\CSharp\Silverlight for Windows Phone を開く
  2. “1041” という名前のフォルダを作成し “1033” に存在している zip ファイルを全てコピーする
  3. VS のインストールフォルダ\Common7\IDE\ItemTemplates\CSharp\Silverlight for Windows Phone を開く
  4. “1041” という名前のフォルダを作成し “1033” に存在している zip ファイルを全てコピーする
  5. スタートメニューから「Visual Studio コマンド プロンプト (2010)」を起動して、次のコマンドを実行

devenv /setup

Microsoft Visual Basic CTP for Windows Phone Developer Tools

これはまだCTPですが、Visual Basic で Windows Phone 7 開発したい人はいれてみましょう。
Download Microsoft® Visual Basic® CTP for Windows® Phone Developer Tools from Official Microsoft Download Center