0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[MAUI] ターゲットから Mac Catalyst を削除したいとき

Last updated at Posted at 2025-09-28

問題

Visual Studio 2022 で 「.Net MAUI アプリ」プロジェクトを新規に作成すると、
初期状態でのターゲットは以下の4つ。

  • Android
  • Windows
  • iOS
  • Mac Catalyst

それぞれのビルドターゲットはプロジェクトのプロパティ画面でターゲットを有効にするかのチェックボックスがある。

しかし、なぜか Mac Catalyst だけプロパティ画面に項目がなく、
ビルドのターゲットから除外することができない。

解決

Mac Catalyst をビルド対象から外す項目はプロジェクトのプロパティGUIにはありません。

.csproj ファイルを手動で編集することで、ビルド対象から外すことができます。

<!-- before -->
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>

<!-- after -->
<TargetFrameworks>net9.0-android;net9.0-ios</TargetFrameworks>

どうして Mac Catalyst だけUIにないんだろう。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?