問題タブ [visual-studio-sdk]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
visual-studio-2012 - Visual Studio SDK でソリューション内のすべての (閉じた) ファイルからコードを取得する
プロジェクト内のすべての html ファイルのコードを取得して編集しようとしています
すべての ProjectItems をループする方法を見つけました
エディター ウィンドウで開かれていないファイルのコードにアクセスできなくなりました。
「開かれていない」projectItems のコードを取得して編集するにはどうすればよいですか?
ファイルがコード ファイルかどうかを検出する方法 (例: .cs、.html、.htm、.asp、....
c# - リソース ファイル内の値をアルファベット順に並べ替える Visual Studio アドイン
誰かがリソース ファイルを編集するたびにリソース ファイルをアルファベット順に並べ替えることができるビジュアル スタジオのアドインを作成したいと考えています。解決策を探しているわけではありませんが、Visual Studio SDK を使用したことがありません。Visual Studio SDK の経験がある人なら誰でもこれが可能かどうか知りたいですか? また、アドインの作成を開始する方法についての提案も大歓迎です。
visual-studio-2010 - VSPackage を使用して行番号に基づいて Visual Studio のコード ウィンドウを強調表示する
「VisualStudioツールウィンドウ」を作成するためのVSpackage拡張機能を構築しています。ツールウィンドウ内に数字で構成されるグリッドがあります。ユーザーがグリッドの特定の行を選択した場合。その特定のコード行を強調表示する必要があります。
より明確にするために、私のグリッドに以下が含まれているとします。
行 1 ~ 10、行 2 ~ 15、行 3 ~ 14、
ユーザーが行 1 を選択すると、コード ウィンドウの 10 行目が強調表示されます。この機能は VisualStudio パッケージを使用して可能ですか? これは可能だと強く感じています。ほとんどの検索結果がそのように機能するからです。
同じことについての助けは大歓迎です!!
c# - VisualStudio2012-sカスタムプロジェクトテンプレートが表示されない
msdnからカスタムテンプレートプロジェクトチュートリアルパートIを完了し、基本的なプロジェクト構造が機能し、[ファイル]-[新規]-[プロジェクト]メニューに表示されるようになりました。次に、msdnパートIIに進み、「VisualStudioテンプレートのテスト」パートを通過できません。
カスタムプロジェクトテンプレートフォルダーに.vstemplateファイルを追加するとき、カスタムプロジェクトテンプレートフォルダーのBuild Action
下にあるすべてのファイルのをに設定しZipProject
、の2番目と6番目のパラメーターをそれぞれに変更し[ProvideProjectFactory]
ますnull
。".\\NullPath"
[ファイル]-[新規]-[プロジェクト]が表示されません。ダイアログのカスタムテンプレートはもうありません。
テンプレートのzipフォルダーは正しいフォルダーに配置され、以前に作成したカスタムプロジェクトを開くことはできますが(プロジェクトテンプレートがインストールされていない場合、これは機能しません)、新しいカスタムプロジェクトを作成できません。 tが表示されます。
カスタムプロジェクトテンプレートを作成した経験のある人はいますか?
visual-studio - ENVDTE.Project へのプロパティの追加
次のように、現在のcsprojファイルに永続化されるプロパティを追加する必要があるVisual Studio拡張機能で作業しようとしています:
ENVDTE.Project インスタンスがありますが、プロジェクトに新しいプロパティを追加するための API が見つかりません。
MSBuild プロジェクトに変換し、その方法でプロパティを追加することで問題を回避できますが、その方法では、csproj ファイルが IDE の外部で変更されているというプロンプトがユーザーに表示され、再ロードするように求められます。 、私はしたくない。
ENVDTE.Project インスタンスを使用してプロパティを追加する方法、または「環境外で変更されました」プロンプトが他の方法で表示されないようにするにはどうすればよいですか?
c# - ビルドおよび起動アクションをプログラムでオーバーライドする方法は?
カスタム プロジェクト タイプに関連付けられたカスタム プロジェクト テンプレートを作成しました。このソリューションは、プロジェクトの MPF - Visual Studio 2012 フレームワークに大きく依存しています。
次にやりたいことは、このカスタム プロジェクト タイプのデフォルトの「ビルド」(F6) および「デバッグなしで開始」(ctrl + F6) イベントをオーバーライドすることです。ソリューション自体は、VSIX パッケージとして展開されます。
どんな助けでも大歓迎です。
.net - Overlapping alternatives for developing language support in Visual Studio
I want to develop support in Visual Studio for a particular language. MPF language services and MEF editor extensions seem to have an awful lot of overlap, and I have not been able to get a clear answer on which one I should be using.
I am only interested in developing this language support in Visual Studio 2012 and later. I am working in C# and wish to use managed APIs only.
The MSDN documentation states that syntax highlighting should be done with a language service. But then when you go to the documentation there, there's a note that arguably is suggesting to use MEF. But when you read the MEF documentation, it doesn't really specify that it is designed to handle full-file syntax highlighting; the wording makes me feel like it is intended for interspersed highlight adornments.
On the contrary to this, however, the Ook! sample demonstrates what I believe is full-file syntax highlighting, though with a sample of that scale, it's not very clear if it is actually suggesting that it should be used that way.
MPF language services seems to have support for adding a filter to the Save As dialog. I haven't seen anything like this for a language that is only supported through MEF, but I might have missed it. I haven't found any indication that either of them support adding a file type filter to the Open dialog. This suggests to me that MEF editor extensions are not intended to implement full scale language extensions so much as they are intended to extend existing ones.
Any thoughts, please?
EDIT:
Some questions that I'm hoping you can answer directly:
Is the MEF editor extension point for highlighting intended for full-file syntax highlighting implementation, or is it intended for interspersed adornments only?
If I have a FileType and a ContentType registered for MEF Export, what additional steps are necessary (or is it even possible?) to cause an associated file filter to show up in the various file dialogs?
Are MEF editor extension points intended to replace and potentially eventually deprecate MPF language services?
c++ - Visual Studio 2012 では、どのタイプのプロジェクトを作成する必要がありますか?
通常のコンピューターで実行できる電卓を作成したいと考えています。ただし、新しいプロジェクトを作成するたびに実行されません。代わりに、「指定されたファイルが見つかりません」と表示されます。前回この問題が発生したときは、特定のタイプのプロジェクトを作成する必要がありましたが、どのプロジェクトか思い出せません。
visual-studio-sdk - Visual Studio 拡張機能 (VSIX) は厳密な名前にする必要がありますか?
Visual Studio 2012 SDK の既定の VSPackage テンプレートは、厳密な名前付けを使用するプロジェクトを生成します。
厳密な名前付けは推移的であるため、追加するすべての参照 (同じソリューション内の別のプロジェクト、またはサードパーティの依存関係など) も厳密な名前にする必要があることを意味します。
サードパーティの依存関係に厳密な名前を付けることに慣れていないので、VSIX から厳密な名前を削除したいと思います。
これを行うことの欠点は何ですか?