vsx

Issues after I add a command filter to textview

耗尽温柔 提交于 2019-12-11 00:54:42
问题 I want to intercept key events in vs. I searched many articles for help, and this article inspired me. What I have done is: create a new class and implement "IVsTextManagerEvents" interface to register every textview. public void OnRegisterView(IVsTextView pView) { CommandFilter filter = new CommandFilter(); IOleCommandTarget nextCommandTarget; pView.AddCommandFilter(filter, out nextCommandTarget); filter.NextCommandTarget = nextCommandTarget; } add new class "CommandFilter" which implement

VS2015 VSIX System.OutOfMemoryException

时间秒杀一切 提交于 2019-12-10 21:03:48
问题 I created a new VSIX project and added a new item -> Extensibility -> Custom Tool Window Then I tried to build, but it gave an error: 1>------ Build started: Project: JSBQ, Configuration: Debug Any CPU ------ 1>E:\JSBQ\packages\Microsoft.VSSDK.BuildTools.14.2.25123\tools\VSSDK\Microsoft.VsSDK.Common.targets(126,5): error MSB4018: The "VSCTCompiler" task failed unexpectedly. 1>E:\JSBQ\packages\Microsoft.VSSDK.BuildTools.14.2.25123\tools\VSSDK\Microsoft.VsSDK.Common.targets(126,5): error

Visual Studio Extension: Get the path of the current selected file in the Solution Explorer

泄露秘密 提交于 2019-12-10 18:55:31
问题 I'm trying to create my first extension for visual studio and so far I've been following this tutorial to get me started (http://www.diaryofaninja.com/blog/2014/02/18/who-said-building-visual-studio-extensions-was-hard). Now I have a custom menu item appearing when I click on a file in the solution explorer. What I need now for my small project is to get the path of the file selected in the solution explorer but I can't understand how can I do that. Any help? ---------------------------- EDIT

Can't get extensions to work in VS 2010 Professional - should I reinstall?

霸气de小男生 提交于 2019-12-10 16:13:00
问题 I've had this problem for a while, and no one I've talked to on the various Microsoft boards I've visited has been able to help me. I have a copy of VS 2010 Professional installed on my laptop. It works pretty well, but extensions simply don't work. I've tried installing and running several of them, but all that happens is my program becomes unstable, to the point of crashing every few minutes. I've tried repairing my install, both as a normal user and as an administrator, but the problem

Changing the namespace for a Web Reference in a Project to be Made Into a VS Project Template

拈花ヽ惹草 提交于 2019-12-10 13:36:01
问题 When I add a web reference to a project, it comes up with a default namespace of: com.wpdevs.myservice. This is the namespace I'd have expected it to use in the application. When I add the using statement to the project, I have to add: using MyProject.com.wpdevs.myservice; I'd like to find a way to eliminate having to reference the project name in the using statement. The project I'm putting together now is destined to be converted into a VS Project template and having that rather strange

Creating a custom designer

眉间皱痕 提交于 2019-12-10 11:27:08
问题 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? 回答1: You can create custom designers, but how you go about it depends on your requirements. If you're lucky, you can get

T4 Templates and Visual Studio Item Templates

一曲冷凌霜 提交于 2019-12-10 10:16:49
问题 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! 回答1: 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. 回答2: 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

Suppress “No Source Available” pane in 2010

怎甘沉沦 提交于 2019-12-09 09:42:10
问题 Arg! I have a custom "harness" executable running my class library project. Every time I step into the harness's code, I get that "No Source Available" pane popping up. As I know there is no source available, and that this is completely expected, I don't want this very intrusive and useless pane popping up every time. How can I suppress it completely? I can make it smaller at least by making that window part of another smaller pane-set, such as with the watches/locals. It remembers its

VS 2010 mouse processor extension - not working

人走茶凉 提交于 2019-12-09 03:48:48
问题 I am experimenting with a Visual Studio 2010 extension, where I need to work with the events exposed by IMouseProcessor. As far as I can tell from the docs, I should create an IMouseProcessorProvider and export is using MEF, so that it can be automatically picked up by Visual Studio. I created this class: [Export(typeof(IMouseProcessorProvider))] [ContentType("code")] internal sealed class MouseProcessorFactory : IMouseProcessorProvider { public IMouseProcessor GetAssociatedProcessor

Can one assign keyboard shortcuts to Visual Studio 2012 extensibility package commands that use DynamicItemStart?

拜拜、爱过 提交于 2019-12-08 12:20:28
问题 I've got a VS2012 extensibility package that adds commands to a menu using the DynamicItemStart command flag, as described on MSDN. These commands work a bit like the inbuilt External Tools facility, so the exact set is configured by the addin user, rather than being defined by me. A DynamicItemStart command seems most suitable for this. As per the example, I add a bunch of items, hide them, and then control the visibility using the BeforeQueryStatus callback. This all appears to be working: