0
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?

More than 3 years have passed since last update.

Prism Template Packのコードスニペットが表示されない

Posted at

背景

WPFアプリケーションのフレームワークとしてPrismがOSSにて開発されている。
Prismアプリケーションを開発するためのVisualStudio向け拡張機能がPrism Template Packとして提供されている。

問題

Template Packをインストールしても、スニペットだけがVisualStudioに存在しない場合がある。

解決法

Template Packのissue解決策が載っていた。

Remove the wrong folder and "ADD" the folder from as described by Brian
C:\Users{UserName}\AppData\Local\Microsoft\VisualStudio(Version of VS)\Extensions{Install ID}\Snippets\CSharp\Prism

  • もし、2つ以上あるいは不適切なディレクトリーのスニペットが登録されていたら削除する。
  • C:\Users\{UserName}\AppData\Local\Microsoft\VisualStudio\(ランダムなID)\Extensions\{ランダムなID}\Snippets\CSharp\Prism のフォルダーをコードスニペットマネージャーにおいて登録する。

補足

コードスニペットマネージャーは、Ctrl+K, Ctrl+Bで出すか、ツール→コードスニペットマネージャーの順で出せる。

スクリーンショット 2021-07-29 184224.png

考えられる原因

VisualStudio 2019のCommunity版とEnterprise版をインストールしたりしたから、Template Packをインストールしたときに正しいディレクトリをスニペットマネージャーに登録出来なかったからではないかと考えられる。

0
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
0
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?