visual-studio-extensions

Uninstall Microsoft ASP.NET and Web Tools

前提是你 提交于 2020-01-01 06:45:07
问题 I think this extension is causing a problem in my Visual Studio 2015 Update 2 but I can't uninstall it. Under Extensions, it's listed but Remove/Disable buttons are grayed out. I can't find it under Remove Programs/Features either. How in the world can I uninstall this extension? 回答1: Uninstall via its installer: Download the latest Microsoft ASP.NET and Web Tools installer Run the installer normally. Run the installer again and click the uninstall button. 来源: https://stackoverflow.com

Run script when finished saving file - Visual Studio Extensibility

荒凉一梦 提交于 2019-12-31 06:23:20
问题 Can someone give me some sample code for Visual Studio Extensibility where I can grab the text from a document, when the Save event ends, and run a script in C # with that text (example, trigger a Web service for certain file extensions). It could also be a new button (for example, save in the web service). 回答1: You can subscribe to the DocumentSaved event: events = DTE.Events; documentEvents = events.DocumentEvents; documentEvents.DocumentSaved += OnDocumentSaved; In the OnDocumentSaved

how to get the selected connection node object of VS Server Explorer window DDEX

こ雲淡風輕ζ 提交于 2019-12-31 04:23:10
问题 I'm adding some options for the Connection Node in the server explorer for my VS extension. For one of the menu options that I have added I need to get the connection string of the very selected connection, So I have tried this by adding some code in the BeforeQueryStatus event and also in the command handler method. But looks like I'm missing something since every time I want to get an Instance of the DataViewHierarchyAccessor I always get a null value. Although if I do the same thing but in

Visual Studio MEF Extension - Force Margin Glyphs To Be Updated or Redraw

别说谁变了你拦得住时间么 提交于 2019-12-30 08:17:10
问题 The extension I am writing started life from the Walkthrough: Creating a Margin Glyph example provided by Microsoft: https://msdn.microsoft.com/en-us/library/ee361745.aspx Everything works fine, except I am trying to trigger the redrawing or updating of the margin glyphs whenever the data I use for deciding which line to draw a glyph on changes. Basically I have a button in a tool window, when the user clicks the button, I want a glyph to appear in the margin. Right now, it does not appear

How can I install an extension so that all users can access it?

纵饮孤独 提交于 2019-12-30 02:09:22
问题 Installing extensions in the last few versions of Visual Studio seems easy. However, as far as I understand, they are only installed for the user running the program. How can an administrator install an extension system-wide so that it is available to all users in Visual Studio? I'm aware that a small portion of extensions are provided as installers that install the extensions for all users, however, most extensions seem to be provided as VSIX files. 回答1: VSIXInstaller.exe has the /admin

How to get IEditorOperations from IVsTextView?

倾然丶 夕夏残阳落幕 提交于 2019-12-25 09:11:21
问题 I'm developing my first Visual Studio (2015 Community) Command Menu and I'm trying to get access to IEditorOperations to delete text, send backspace etc. but I'm not sure how to. I can do: var Service = Provider.GetService(typeof(IEditorOperationsFactoryService)) as IEditorOperationsFactoryService; Service.GetEditorOperations(???); I'm not sure what to pass in the ??? since I don't have access to an ITextView instead what I have is a IVsTExtView via: IVsTextView View; IVsTextManager Manager =

Use older VS Extensions with VS-2013

被刻印的时光 ゝ 提交于 2019-12-24 23:12:07
问题 How does Visual Studio identifies, a particular VS Extension should be installed for which version. I am trying to use an older extension with VS-2013 at my own risk. As .VSIX internally is just a zip file I should be able to tweak version info in definition file. Any pointers in this direction please. 回答1: All supported VS versions are listed in the .vsixmanifest file inside the "zip" file. There are v1 (VS 2010+) and v2 (VS 2012+) slightly different schemes of this file. In v2 look for

Visual Studio Extension Reload Project

半城伤御伤魂 提交于 2019-12-24 21:24:06
问题 I created a simple visual studio 2015 extension that adds a class to the current project. Project p = (Project) ProjectsComboBox.SelectedItem; string projectLocation = Path.GetDirectoryName(p.FileName); // I load the project where I want to Add file var projectCurrent = new Microsoft.Build.Evaluation.Project(p.FileName); string relativeNewPath = "\\Model\\DAL\\" + ViewNameTexBox.Text + "DAO.cs"; string newPath = projectLocation + relativeNewPath; projectCurrent.AddItem("Compile",

VS 2012 Project Compile errors over seven missing .cs files

耗尽温柔 提交于 2019-12-24 11:32:05
问题 Looking to learn more about visual studio extensiblity specifically new languages I came across this SO question with linked project. Is there a custom language add-in for Visual Studio 2012 / VS11? The OP question was along the lines of what I was wanting to learn and the accepted answer looked very good. At the end the answer contained a link to the "prepared solution" after the updates he recommended making. It is this "updated" project that I downloaded and upon compile get 7 errors all

VS 2012 Project Compile errors over seven missing .cs files

对着背影说爱祢 提交于 2019-12-24 11:29:26
问题 Looking to learn more about visual studio extensiblity specifically new languages I came across this SO question with linked project. Is there a custom language add-in for Visual Studio 2012 / VS11? The OP question was along the lines of what I was wanting to learn and the accepted answer looked very good. At the end the answer contained a link to the "prepared solution" after the updates he recommended making. It is this "updated" project that I downloaded and upon compile get 7 errors all