visual-studio-extensions

Writing to output build pane + error list in Visual Studio 2013 with ability to double click entry to go to error without using msbuild/new process

浪子不回头ぞ 提交于 2019-12-23 02:53:30
问题 I'm using a custom build tool which I call as a dll from within a Visual Studio 2013 extension package I'm creating and I would like to take the string output returned from this tool, parse it for the error, line number etc. and output it to the build pane + error list complete with the ability to double click to go to the source location in the file with the error. Currently I can output the information to the pane and error list but the double click to go to source functionality does not

Compile-On-Save with Typescript 0.9

爷,独闯天下 提交于 2019-12-22 11:37:22
问题 So I know that the Typescript 0.9 Alpha is out, and one of the drawbacks is the ability to Compile-On-Save is not available yet. My question is, is there another way to get this feature? Web Essentials has a compile-on-save feature with Typescript 0.8.1, does that work for 0.9? Is there another extension available that can provide this feature? I am using Visual Studio 2012 and the Typescript extension. I am working in Typescript projects (if that makes any difference). Thanks in advance!

Current type of the build action from Visual Studio - Microsoft.VisualStudio.Shell.Interop

扶醉桌前 提交于 2019-12-22 11:35:09
问题 In some extension we implement the IVsUpdateSolutionEvents2 and IVsSolutionBuildManager2 used for registering caller with the AdviseUpdateSolutionEvents For example, this called before any build actions have begun: public int UpdateSolution_Begin(ref int pfCancelUpdate) { ... } However, also need getting the status or type of the current build action, for example: build/rebuild/clean/deploy Available & known variants: BuildEvents With the Events.BuildEvents i can subscribe to OnBuildBegin,

Finding the home directory for a Visual Studio 2010 extension

陌路散爱 提交于 2019-12-22 08:40:59
问题 I am making changes to a Visual Studio wizard that creates a project from a template, and needs to add a reference to an assembly to the project that also lives in the extension directory. So I need to set the <hintpath> . I have not been able to figure out how a running VS extension can discover its extension directory, which is a directory name like this: %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\myCompany\myExtension Using System.Reflection.Assembly

Roslyn add new method to an existing class

这一生的挚爱 提交于 2019-12-21 17:02:15
问题 I'm investigating the use of the Roslyn compiler within a Visual Studio Extension (VSIX) that uses the VisualStudioWorkspace to update existing code. Having spent the last few days reading up on this, there seem to be several ways to achieve this....I'm just not sure which is the best approach for me. Okay, so let's assume that the User has their solution open in Visual Studio 2015. They click on my Extension and (via a form) they tell me that they want to add the following method definition

Adding SubMenu to Visual Studio Project Item Node

ぃ、小莉子 提交于 2019-12-21 09:36:58
问题 How can I add a menu and sub menu items when right click on a file item visual studio solution explorer? I have one menu and three sub menu items which will be displayed when I right click on a file in solution explorer like the below picture. I tried using .vsct buttons but it will display on context menu and Iam unable to add sub menus 回答1: Authoring VSCT files is somewhat tricky; what you´ll need is a combination of a menu and buttons. First of all you need to reference the IDM_VS_CTXT

Create Visual Studio Theme Specific Syntax Highlighting

大憨熊 提交于 2019-12-21 09:17:17
问题 I would like to create a Syntax Highlighter in Visual Studio 2012 (and above) that supports different themes (Dark, Light, Blue). Visual Studio's Editor Classifier project template explains how to create your own colors in the environment using Microsoft.VisualStudio.Text.Classification.ClassificationFormatDefinition . It works fine... ... until you realize that there are different themes in Visual Studio 2012 (and above) and you don't really support them. Your pretty dark blue colored

Capture VS local variables while debugging in EnvDTE

北城以北 提交于 2019-12-21 06:06:42
问题 Is it possible to capture the debug data that's used by the locals and debug window, using EnvDTE for a .vsix visual studio extension? Or is it possible through another method? I would like to create a custom Locals window that we can modify to display some of our more heavy content as we like, without sacrificing the original Locals window for power users. The ideal solution would be to grab the data being sent to the locals window so I could build my own tree. 回答1: Turns out this is

Regular Expression to match folder name with Productivity Power Tools Color Coding

人走茶凉 提交于 2019-12-21 03:52:29
问题 I would like to configure a RexEx to match any folder (parent or child) of a file path of any open file. So if any folder in the file path contains the name of the open file, the color coding of the tab is set based on the RegEx match. For example: websiteRoot/Content/MyName1/site.css = green colored tab when file opened websiteRoot/Content/MyName2/site.css = orange colored tab when file opened websiste/Shared/MasterPages/MyName1/main.master = green colored tab when file opened websiste

What is the difference between these methods of getting DTE2 (Visual Studio 2013)

允我心安 提交于 2019-12-21 02:26:12
问题 Based on this question I've tried the following: EnvDTE80.DTE2 dte = ServiceProvider.GlobalProvider.GetService(typeof(EnvDTE80.DTE2)) as EnvDTE80.DTE2; No luck, null object. But based on this MSDN doc I tried the following. EnvDTE80.DTE2 dte = (EnvDTE80.DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.12.0"); That worked and gave me the DTE2 object. From there, I tried the following this questin I've tried the following: VersionControlExt vce = dte.GetObject(