1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[C#] VS2022 で Windows Forms のツールボックスにユーザーコンポーネントが表示されない(グレーアウトされる)ときは Targeting Pack がない

Posted at

確認した環境

  • Visual Studio 2022 v17.11.0
  • net462 (.NET Framework 4.6.2)

現象

Windows Forms のデザイナー上で、ユーザーコンポーネントがツールボックスに表示されない。
ツールボックスの「すべてを表示」を有効にするとグレーアウトされた状態で表示される。

対応方法

VS2022の ツール > ツールと機能を取得 から 個別のコンポーネント.NET Framework 4.6.2 Targeting Pack をチェックしてインストール

おわり

VSのバグではありませんでした。
net8.0net462に書き換えてコンパイル通ったからOKと思いきや、デザイナーはTargeting Packに依存しているようです。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?