Questions tagged [vsx]

Visual Studio eXtensibility (VSX) is the ability to develop extensions to the Visual Studio IDE from Microsoft. Extensions are developed using the VSSDK.

Links:

Most of the information on add-ins is in the SDK.

351 questions
9
votes
2 answers

Is it possible to refresh WCF service reference from VS2010 addin?

I want to "simulate" the Right click/Update service reference command in a VS2010 addin. I have a reference to the containing (Silverlight...) project, I know the name of the service reference and the url of the service. I've found this:…
TDaver
  • 7,164
  • 5
  • 47
  • 94
9
votes
4 answers

Suppress "No Source Available" pane in 2010

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,…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
9
votes
1 answer

How to add commands to Visual Studio 2012?

How can I add custom commands to the keyboard dialog (Tools->Options->Keyboard) in order to trigger them by shortcuts? Unfortunately, I could not find any resource on the web. I crossed this blog post, but it's slightly different, because I'd have…
Matthias
  • 15,919
  • 5
  • 39
  • 84
9
votes
2 answers

How do I programmatically refresh/reload a VS project after modifying the underlying file?

I am developing a Visual Studio package and I have written some code that will make a file in Solution Explorer dependant upon another file. What this means is that it gives them the same relationship as code-behind files or designer files, where…
Martyn
  • 1,446
  • 2
  • 19
  • 30
8
votes
1 answer

How do I programmatically find out the Action of each StartUp Project in a solution?

Under Solution->Properties, I can set multiple start-up projects: I know that I can get the list of projects marked with "Start" (by using EnvDTE: solution.SolutionBuild.StartupProjects), but how do I get the list of projects whose action is "Start…
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82
8
votes
2 answers

How do I get the output directories from the last build?

Let's say I've got a solution with one or more projects, and I've just kicked off a build using the following method: _dte.Solution.SolutionBuild.Build(true); // EnvDTE.DTE How can I get the output paths for each project that just built? For…
user1228
8
votes
1 answer

Getting started with Visual Studio 2010 Extensibility - 3 questions

1.) How differs "Visual Studio Package" project from the "VSIX" project? 2.) Where I can find some beginners guides? 3.) Where I can find a overview of the extensibility model or extension points of Visual Studio 2010? Thanks in advance!
System.Data
  • 3,878
  • 7
  • 32
  • 40
8
votes
2 answers

VSX 2010 package loading- Markup.xaml parsing cannot find assemblies

I have built a Wpf UserControl Library and it contains a large group of assemblies and even references two other class libraries and several merged resourceDictionaries. It builds without error. I built a simple VSX package and referenced the Wpf…
isitdanny
  • 127
  • 8
8
votes
4 answers

Getting a SemanticModel of a cshtml file?

I'd like to use Roslyn to analyze semantic information within the context of a block of C# code inside a Razor View. Is there any way (within Visual Studio 2015, or even in a unit test) to get the SemanticModel that represents this code?
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82
8
votes
1 answer

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

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…
kdmurray
  • 2,988
  • 3
  • 32
  • 47
8
votes
1 answer

Supporting user-specified file extensions in custom Visual Studio language service

I'm working on a custom Visual Studio language service, and have several questions regarding the way file extensions are bound to a particular language service. Source files for the language "Example Language" has two primary file extensions: .e1…
Sam Harwell
  • 97,721
  • 20
  • 209
  • 280
7
votes
2 answers

Generate DTOs from Object

I want to auto gen some DTOs from some of my existing objects, I was wondering if there already exist a Resharper, DevExpress or VSX open source to use, I need a tool to look into my code and let me choose which properties I want to include in my…
Ali Shafai
  • 5,141
  • 8
  • 34
  • 50
7
votes
1 answer

Visual Studio 2015 toolbar combo, how to manage the value entered by the user correctly?

I have defined a dynamic combo for a toolbar in a VSIX package for Visual Studio 2015 using this setting in the VSCT file:
7
votes
4 answers

Visual Studio CommandBar "Names"

In Visual Studio 2010, the only option you can create is a commandbar under "Tools" on the "MenuBar". In some cases, I would want to know how to place the command bar on the standard bar, or be found when I right-click a project file.…
7
votes
1 answer

What is a viable method of spacing out text in visual studio

We are attempting to expand text in Visual Studio. Our current attempt consists of creating transparent intraline adornments at certain points in the text. We have just stumbled upon a disadvantage to this method. Namely that when the given text has…
1
2
3
23 24