vsx

HowTo get all interfaces types from visual studio solution?

时光总嘲笑我的痴心妄想 提交于 2019-12-07 18:08:49
问题 I'm trying to write an extension to visual studio. I need to get a list of all the interfaces types found in all the projects in the current opened solution . So far i have tried doing this using the EnvDev namespace. Is there a way of doing this without parsing the project's .cs files ? Thanks, Chai. 来源: https://stackoverflow.com/questions/13051397/howto-get-all-interfaces-types-from-visual-studio-solution

Visual Studio Remote Debugging Extensibility

爷,独闯天下 提交于 2019-12-07 16:07:06
问题 I'm trying to attach to a remote machine with code similar to the following: Debugger2 db (Debugger2)dte.Debugger; Transport trans = db.Transports.Item("Default"); Process2 proc2 = (Process2)db.GetProcesses(trans, "MACHINENAME").Item("SERVICENAME"); proc2.Attach2(); I've gotten it to work by logging on through remote desktop and manually starting the debugger, but I have to stay logged in. The problem is, I don't want to stay logged into the remote machine. Is there a way to automatically

How to define classification formats for each theme

痴心易碎 提交于 2019-12-07 03:35:54
问题 In my editor extension I use custom classification formats for keywords, identifiers and so on. Of course, there are default formats I could use, because then colors (used by syntax highlighting) will be changed in accordance to the selected theme. Since my custom editor also needs additional classification types (for instance a punctuation type), colors for those types won´t change when the user configures another theme (by switching from Dark to Blue theme, for instance). I would like to

calling Roslyn from VSIX command

老子叫甜甜 提交于 2019-12-07 02:32:08
问题 What is best way to obtain Roslyn's SyntaxTree from EnvDTE.ProjectItem? I found some method for the other way (Roslyn's Document into ProjectItem). I got VSIX command called from opened document and I'd like to experiment with Roslyn's syntax tree there. This code works, but looks awkward to me: var pi = GetProjectItem(); var piName = pi.get_FileNames(1); var componentModel = (IComponentModel)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SComponentModel)); var workspace =

how can i add a new icon to a Visual Studio 2010 extension?

点点圈 提交于 2019-12-06 15:05:18
i'm developing a Visual Studio 2010 extension, i already have a toolbar inside my window. on that toolbar i have a button that i want to give an icon - my own icon! I've read this article and it is great but... it explains how to replace the icons. i want to add an additional icon. how do i achieve that? First, add the bitmap and set its build action to Resource Remember, shocking pink = transparent (damn you, old school!) Then, in your vsct file, add the image to the bitmaps section <Bitmaps> <Bitmap guid="AddSampleData.bmpGuid" href="..\Button Bitmaps\AddSampleData.bmp" usedList=

Source Control in Visual Studio Isolated Shell

痴心易碎 提交于 2019-12-06 12:14:49
问题 I am developing an Isolated Shell that caters to " designers/special content creators " performing specific tasks, using the Shell. As they operate on files, they need to be able to use TFS for source control. This is mainly due to the fact that Developers will also operate on the same files from TFS but using Visual studio 2008. After looking and searching I still could not find Team Explorer to be available to Shell. Asking on MSDN forums, lead me to the answer that "this is not supported

Visual Studio 2010 Extensions

て烟熏妆下的殇ゞ 提交于 2019-12-06 09:54:59
问题 I'm writing my own abstract extension for Visual Studio 2010, it makes similary functionality as Ook Language Integration. I have a question, is it possibly to mix my own AutoCompletion with standart C++ autocompletion of VS? How to do it? Is in need to use libraries of VS and call some methods? 回答1: This is a very good example about adding features to C# intellisense. First of all you should capture the completionSession and use it. Like this snippet, but in C++ [Export(typeof

Creating a custom designer

折月煮酒 提交于 2019-12-06 05:26:30
I've been asked to create a Custom Designer for Visual Studio. In this designer a programmer can create/edit Forms with controls and position them. The input and result will be used and compiled by an external system (Sesam i've been told but never heard of it) The format will be in XML. The question is, where do I start, is it even feasible to create a Custom Designer? You can create custom designers, but how you go about it depends on your requirements. If you're lucky, you can get away with a simple extension which handles editing certain types of files, such as the Snippet designer You can

T4 Templates and Visual Studio Item Templates

﹥>﹥吖頭↗ 提交于 2019-12-06 03:23:30
Is it possible to create a Visual Studio item template that generates from a T4 template? My google-fu does not seem powerful enough to yield an answer! Yes, you need to use GAX for that. It has a (rather limited implementation of) custom T4 host that allows you to use T4 as a template language. Yes you can, actually ASP.NET MVC uses this approach when creating View item from Controller item All the Best Muse VSExtensions 来源: https://stackoverflow.com/questions/805979/t4-templates-and-visual-studio-item-templates

How do I programmatically add a file to a Solution?

和自甴很熟 提交于 2019-12-06 02:27:56
问题 I am developing a VS Package and part of the functionality that I need to implement is to add a file to the Solution Items of the currently open Solution. This is exactly the same action that would be performed manually if you right-click on a Solution and choose Add > Existing Item. Then selected a file on disk. I have taken a good look at the DTE and DTE2 interfaces and can see the operations to add and manipulate projects but there doesn't appear to be any operations for adding individual