LoginSignup
0
0

【HoloLens2】【Unity】Selected Visual studio is missing required components and may be not be able to build generate project

Last updated at Posted at 2024-05-06

はじめに

Unityを用いてHoloLens2向けのアプリを作成中詰まった箇所のメモです。
記憶が曖昧なので記事も曖昧ですごめんなさい。参考程度にどうぞ。

エラー内容

エラーではなく警告ですがBuild Settingsの画面で「Selected Visual Studio is missing required compnents and may not be able to build the generated project.」と出ることがあります。この状態だとビルドが通らないと思います。
image.png

解決策

Visual Stduio Installerを開き、「.NET デスクトップ開発」「C++ によるデスクトップ開発」「ユニバーサル Windows プラットフォーム (UWP) の開発」「Unity によるゲーム開発」にチェックが入っているか確認してください。チェックが入っていない場合まずこれが原因の可能性があります。

自分の場合、それでも警告は消えませんでした。その場合は画像で示しているインストールの詳細の部分を変更してみてください(「ユニバーサルWindowsプラットフォーム開発」に限らず)。このインストールの詳細まで正しくないと最初の警告は消えません。
公式サイトにこのインストールの詳細について記述されています。参考にしてみてください。
memo.png

備考

ちなみに「The local machine does not support running projects compiled for the ARM64 architecture. Project will be built, but will not run.」は残ったままで問題なく実機にビルドでき、動作しました。なんでやねん
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0