In an earlier question, I've found out that sadly Solution Folders are not real folders inside a directory.
I wonder if there is an AddOn or Macro that adds this functionality? i.e. when I create a Solution Folder, it created a real folder. When I Create a new Item (Right Click => Add => New Item) it automatically moves them into that f...
In a VS Package (Visual Studio Extensibility), I have a custom extension registered (for ex ".custx") with XamlLanguageService, so that in Visual Studio when the user opens .custx, it opens up in Xaml Designer/editor just like a .xaml file.
However when I compile it as "Page" (BuildAction), the WINFX targets / Compiler errors out with ...
What we ideally need is, to know how Microsoft handles XAML generated code (Those *.g.cs files). If you goto a XAML code behind, intellisense will work even if the *.g.cs file is not part of the project!!
Context:
In a custom VS package, we need to have some logic to open a CS file (with out making it a part of the project) in the V...
Hello,
What are the events that are raised when a new or existing file is added/removed to/from a project (.vcproj or .csproj)?
I actually want to handle all possible events that might change the project structure in terms of added or removed project items.
This is in the context of creating add-ins for Visual Studio. Can anybody tell...
After installing VS Sp1, the build breaks as it can't find LC.exe (to run on top of license files). Seems like SP1 don't install LC.exe
I found in this MSDN forum post and the solution I found is, I should install Windows SDK.
http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/93fe03a0-117c-406e-b0ea-c2e2227e1835/
Microsoft ...
A call like this requires the server name or url:
TeamFoundationServerFactory.GetServer("mytfsserver");
Likewise, I can use the following to get a list of available servers or server names:
TeamFoundationServer[] servers = RegisteredServers.GetServers();
string[] serverNames = RegisteredServers.GetServerNames();
But how do I get th...
I am writing a VSPackage for Visual Studio 2008, and am deploying it with a WiX generated Msi. As the end of the install, I am running "devenv.exe /setup" as required to get VS to notice my package. However, this command will not succeed if there are any copies of Visual Studio running.
Currently, I tell people they have to close all ...
This is the question that has been posted to MSDN forums some time ago, and stayed unanswered to this day:
http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/676b13d4-acfc-4252-b102-5fc0553e4b81/
The property I'm interested in is ProjOutputReferences, stored in the Visual Studio solution (.sln) file.
In Visual Studio, this prope...
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!
...
Hi there,
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 DTO and then generate a class based on that...
...
I am interested in marking folders as Active, Archived, and Released in Source Control Explorer so it is easier for the team to see which branches are active. I am somewhat familiar with VSX so once I know where to start I can make progress, but I need help with where to start.
An example of what I want to do is VisualSVN which places a...
I want to write a visual studio addon to do some code modifications for me (like some specific refactoring). I was wondering which one of these tools should I use and why?
we have licenses for resharper, the other two are free and this is an internally used software, so we don't need to worry about licensing.
...
Hi,
I've implemented a custom editor in VS Shell (using an integration package). By default the tab at the top of the editor displays the file name that the editor has currently open.
I'm talking about the text the red arrow is pointing at in the image:
How do I change this to content I supply?
...
Hi,
I just created an event handler to determine when a new item is added to the solution explorer; however, I'm unable to obtain the properties of the item(Name, etc).
In the event handler method, I just have my project item. Is there any way I could possibly use an interface to obtain the information I need?
Thank you!
...
Hello,
Using Visual Studio's Managed Package Framework, how can I inherit from C# so I can have C# property pages and C# project items? I've tried making a flavored project, but it was limited in terms of making our own custom nodes and custom file properties. When using the MPF, however, I cannot seem to obtain those C# properties that...
Hello,
Is it possible to have custom properties for Project items while implementing a flavored C# project? For example add a MyProperty property to a class.cs's Properties Window.
Thanks in adavance.
Kenny
...
Hello,
I have a C# flavored project and I want to add some custom nodes to my project where the only options when you right click on them is to add or remove a custom project item that I have already created, so I want it to be like the References node in that it cannot be deleted renamed and it only has 2 context menu options. Any ...
Edit: I reported this as a bug on the Microsoft Connect site here.
Edit 2: Microsoft will not fix this bug (at least not in VS2010).
User defined warnings are only shown in the Error List window for one file per project. So if you put the #warning directive in several files of your project, you will not see any warnings after build for...
Hi folks,
i wrote a little addin, which does some formatting of my C# code.
in the addins Exec method i do the following
try {
TextSelection selection = (EnvDTE.TextSelection)_applicationObject.ActiveDocument.Selection;
String foo = String.Empty;
if (!text.IsEmpty) {
foo = someCoolObjectThatFormatsText.Format(...
Used the New Add-in Wizard to create a Visual C++ / ATL add-in project.
Generated code:
HRESULT hr = S_OK;
pApplication->QueryInterface(__uuidof(DTE2), (LPVOID*)&m_pDTE);
pAddInInst->QueryInterface(__uuidof(AddIn), (LPVOID*)&m_pAddInInstance);`
Get the Events object, and the WindowEvents:
m_pDTE->get_Events(&m_pEvents);
m...