vsx

Visual Studio Add in to Add Tracing

I was looking to write/get a visual studio addin. I want to be able to write descriptive log calls at the top and bottom of a function. like this log.debug("TheClass.TheMethod(string TheStringParam ="+TheStringParam+") - in"); log.debug("TheClass.TheMethod(string TheStringParam ="+TheStringParam+") - out"); Is there an adin that do...

How can I cancel a Visual Studio NewPendingChange event?

I'm trying to programmatically intercept and cancel a user's attempt to check out a file in TFS. Am I correct in thinking that the proper way to go about this would be to handle the NewPendingChange in a Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer ? What is the proper way for canceling the event from its event ...

e.data.GetData is always null

I am working with Visual Studio 2010, developing an Extension I need to drag and drop from a WPF TreeView in a Toolwindow onto a DSL Diagram but when I call e.data.GetData I can not get a value and want to know what I am doing wrong private void OnDragDrop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(type...

Visual Studio style editor for an application-specific scripting language?

Right now I only know about Visual Studio 2008 Shell and the custom control used in the Snippet Compiler. Also is VS shell suitable for this job? I don't know if it's a custom control or a standalone app? Any tutorials about it? I would imagine the Snippet Compiler's custom control to be usable and therefore should work, but I still wa...

Can you programatically execute 'Run Custom Tool' on a ProjectItem in C#?

I was wondering if it is possible to execute 'Run Custom Tool' on a file in the VS Solution? I have the ProjectItem object already. info: C#, Visual Studio 2010 SDK ...

C# CodeFunction2 - How do you prevent creation of 'return'?

I am creating a C# class as per: http://msdn.microsoft.com/en-us/library/x6h10s6x.aspx however I want my own 'return' rather than the return default(int); it automatically generates. I know I can insert my own text using an EditPoint i.e editPoint.Insert("return records.AsEnumerable<" + tableNameAsSingular + ">();"); but it still ...

Opening a file from TFS using the full TFS Path, from a web site

So I have a website running that displays full path of a TFS File on the page somewhere, I want the user to be able to click on it, which should then open up that file from TFS inside their Visual Studio. The command to do this inside Visual Studio is "File.TfsOpenFromSourceControl" (DTE command) - it's basically the user manually going...

VSX: Custom Package's Project Type to mimik "Debug >> Start Action >> Start External Program"

I have a custom project type based on the C# Class Library project type in a VSX Package (2008+). For this project type, even though the output is a class library, I want to be able to debug this app just by pressing F5 (etc). I have a prebuilt executable that takes an assembly path as a command-line argument and loads it for workbench...

Best Practice for Obfuscating a C# Visual Studio DSL Solution as VSIX

I was wondering if anyone has any advice for obfuscating a DSL? Background - We have created a DSL which we will putting into the Visual Studio Gallery as a VSIX file. We already use dotfuscator for our obfuscation on other projects but I would like to know if there are any best practices or issues when packaging a DSL for deployment a...

Why is there no Project Item when Deploying VSIX?

We have a VS2010 Beta 2 DSL Project , We can build, deploy and test on our Development machines and all is well i.e When we go to 'Add New Item' we can select our DSL When it comes to giving the VSIX to someone else to try the ONLY way that they can see the associated Project Item is if they build the DSL Project on their machine, they ...

VS 2010 mouse processor extension - not working

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(IMouseProcess...

Visual Studio extension: splash info not showing

I'm building (read: trying to build) a Visual Studio integration package, which contains some custom highlighting and intellisense. The language part is working fine, the package is being loaded in the IDE, installing on non-SDK machines without problems. However, here's one annoying thing I can't get to work. I want to see my package d...

Visual Studio plug-ins development, first steps

I would like to make a plug-in for visual studio... But I have no idea where to start. While it was quite easy to find guides for Eclipse plug-in development, I'm having troubles to find a good guide for VS plug-in development. I guess what I'm trying to ask here, is where do I start? ...

Permanent node in DSL explorer

In my custom DSL tool I want a node in its Explorer which cannot be removed. Other than that, I want it to be like a regular node. Basically what I want is a node like the Xml Serialization Behavior in the DSL Explorer: Through using Reflector on the XmlSerializationDefinitionSerializer class in the Microsoft.VisualStudio.Modeling.Sdk...

Visual Studio 2010 Extension Deployment

I have created a VS Package Extension.I want to add a folder(contains sub folders) in the package that get packed and get installed with the package? How do I do this? ...

Legality of distributing Visual Studio SDK Components

I have a project that relies on some libraries from the Visual Studio SDK. The installer created by Visual Studio added these libraries into thee installer project automatically. I am just wondering if it is legal for me to distribute them with my project or if I need to require the users to install the Visual Studio SDK separately. ...

VSX: Programmatically disabling breakpoints at runtime

How can breakpoints be enabled or disabled at runtime? I'm writing a test workbench application that can run other .net code for the purposes of debugging plugins. The workbench app itself is not debuggable (DebuggableNonUserCodeAttribute) but the user code that it calls should be. But then, under certain circumstances at runtime, the...

Web Project for F#

I am building a project system for Visual Studio MVC web projects with controllers written in F#. It comes along pretty cool. I can build and run the apps, but I have a problem with FSharp Language Service. In the editor it shows the syntax colorization and diagnostic as it should. With one problem - it does not pick up project referenc...

EnvDTE partial class keyword

I'm introspecting on the code in a project using EnvDTE, and I want to be able to determine if they're a partial class, but it doesn't seem to exist in the namespace. Does anyone know how to do this? ...

Drag Drop Within WPF ToolWindow in VS2010 Extension Not Allowed

I have a strange problem here. I've created a simple plugin using the wizard for a Visual Studio Integration Package / VSIX project with a tool window. Within that window I want to do a simple drag/drop from a listbox and drop within the same window. I've done the same thing in a normal WPF program, but when I do this in a WS toolwindow ...