vs-extensibility

Visual Debugger for Geometric Objects

喜夏-厌秋 提交于 2019-12-12 08:25:25
问题 When working on my library representing geometric objects, Debugging currently looks like this: Here I am viewing the local variables in the Autos , Locals , Watch and Immediate windows. As I have trouble imagining the shape of the object in my mind, I would prefer a graphical component to represent these objects. So I have started creating a Debugger Visualizer to draw the objects. I have it in a public repo on bitbucket here. Right now I cannot get it to work outside of the Console

How to make a shortcut to run a VSIX method?

心已入冬 提交于 2019-12-12 08:15:57
问题 please see this question. The initial question was solved, and I have a method in my extension. I want that when the user installs the extension, a keyboard-shortcut should be installed as well, and should run the method when pressed. How do I do this? 回答1: You can add shortcuts to the .vsct file. This file is created automatically in the wizard when you generate a new extension and say it will have a menu command. To add it manually: Create MyCommands.vsct Set File Properties to VSCTCompile

How can I match Visual Studio's theme when creating a VSIX tool window?

可紊 提交于 2019-12-12 08:10:27
问题 I am creating an extension for Visual Studio (2012+) that involves a tool window. I was hoping to style the window identically to match the current theme of Visual Studio. However, I am having a great deal of trouble figuring out how to do it. This post suggests that applying no style at all is all that is required, but that does not match my experience thus far (even creating a default VSIX project in VS2017 and adding a tool window shows a button that I would argue is standard WPF in theme

VC++ project “Include in project” programmatically

余生长醉 提交于 2019-12-12 05:26:13
问题 Is there a way to include folder into VC++ project programmatically via VCProject or EnvDTE interface? 回答1: Take a look at the sample macros - View -> Other Windows -> Macro Explorer . There's one in Samples/AddDirAsSlnFolder which shows you how to create nodes in a project and add files. It's in VisualBasic, but it's pretty easy to translate into C# once you see which methods in EnvDTE are used, eg projItem = currentSlnFolder.Parent.ProjectItems.AddFromFile(file) using EnvDTE.ProjectItems

How do I interact with the controls of a ToolWindow in a Visual Studio Extension?

前提是你 提交于 2019-12-12 04:44:37
问题 SCENARIO In Visual Studio 2017 I created a new extension (a VSIX project), then I added a new ToolWindow item, which it is a WPF user control, and in the user control I added a TextBox control. This is the user control design: And the relevant part of the generated XAML code: <UserControl x:Class="ToolWindow1Control" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend

How do I set the target platform for a call to SolutionBuild.BuildProject in VisualStudio2012 package

混江龙づ霸主 提交于 2019-12-12 03:22:56
问题 I have a solution which is set up with a load of projects that are built with nmake. I am trying to write an extension for VS2012 that just calls build on the startup project set in the IDE as the basic f5 build active project is often not the startup project. I have managed to retrieve the startup project by finding all the projects from the EnvDTE.Solution interface, and comparing the uniquenames to those found in the Solution.StartupProjects collection and utilised the Solution

Is it possible to use .ctc files in Visual Studio 2010 packages?

半城伤御伤魂 提交于 2019-12-11 16:14:12
问题 I have a VSPackage that started life off as a Visual Studio 2005 project, was migrated successfully to Visual Studio 2008 and now it is being migrated to Visual Studio 2010. The problem is that all of the menus are defined in a .ctc file which I understand has now been superseded by the XML-based .vsct file, and they no longer work. Is there a way to get Visual Studio 2010 to recognise the .ctc file as before or am I going to have to convert all of the menus into the .vsct format? Everything

Cannot find resource named 'VsTextBoxStyleKey'. Resource names are case sensitive. when debug vsix project

人盡茶涼 提交于 2019-12-11 10:57:41
问题 I'm using vs2019 to create a vsix project, and add a command item after project created, that's all I did. But when I debug the project, I whill get an exception: System.Windows.Markup.XamlParseException: 'Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.' Inner Exception Exception: Cannot find resource named 'VsTextBoxStyleKey'. Resource names are case sensitive. Exception StackTrace: at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader,

Easy VSIX get started?

青春壹個敷衍的年華 提交于 2019-12-11 08:40:11
问题 I've created some macros in VS 2010, I now want to migrate them so they are VSIXs and publish them in the gallery. They are built on top of the DTE object instance provided in the VS macro editor. How to implement this? What is the replacement for the DTE object? Update I also want to configure the extension so that when it's installed on the users machine, it should also install a keyboard shortcut that when pressed, it should run that method in the extension. Note that currently I'm using a

Visual Studio 2010 Extensibility - Override Build Action without effecting cproj file

眉间皱痕 提交于 2019-12-11 04:13:19
问题 I'm working on a way to get MonoTouch projects to build in Visual Studio 2010 without requiring a change of the cproj file. I'm almost there, but the final step is the *.xib files that has build action "Page" in MonoTouch projects. In Visual Studio 2010 bild action Page will invoke the XAML compiler, so in order to build the project in VS2010 I need to set the build action to None. The problem doing this is that the .cproj file is changed, and I need to set it back to Page before building in