Add XSD to ItemTemplate
I've created an ItemTemplate which works as expected but what i'd like to do is set the Schema to a custom XSDIve seen some things about registering the namespace so that VS knows automatically and...
View ArticleVisual Studio 2012 Find in Files not Displaying Files
Maybe I am doing something wrong but all of a sudden the Find in Files in my VS2012 does not display the actual file results. It displays the count but the file list is empty.. Am I missing...
View ArticleChanging the visible text of collapsed blocks
Hi,I'm writing a Visual Studio Extension to customize my editor. I would like to change the text that is displayed when a block of code is collapsed.I tried "Walkthrough: Outlining"...
View ArticleCannot upload VSIX - "VSIX ID already exists on the site"
I have created a new VS extension packaged as a VSIX. It has never been uploaded to the VS Gallery, but when I try to upload it, I get "VSIX Id already exists on the site." Just to be safe, I...
View ArticleVisual Studio 2013 crashes on creating a document window with moniker...
Hi All,Visual Studio 2013 shows error "An Exception has been thrown by target of invocation" and crashes on creating a document window with IVsUIShell.CreateDocumentWindow, if the document id...
View ArticleAccessViolation Exception not handled after adding Tools to Toolbox, Visual...
! Added at Microsoft ConnectAfter adding Tools to Toolwindow with AddItem2() method of IVsToolBox Interface and after VisualStudio calls ToolboxSelectionChanged() method of IVsToolboxActiveUserHook I...
View ArticleHow do I set the IVsTextView default font?
I am writing a Visual Studio 2010 extension that uses the IVsTextView to edit acustom content type. I'm using MEF extensions (I wish to avoid writing an implementation for ILanguageService).I defined 3...
View ArticleInstallshield QueryEdit
While editing any file, IVsQueryEditQuerySave2::QueryEditFiles() should be called so that source control plugins can make the necessary arrangements (like checkout the file).But it seems that this API...
View ArticleSet XAML Property Binding via Model Item
I know that something like:myModelItem.Properties["myProperty"].ComputedValue = value;will produce a writing in the .Xaml file like:<myElement myProperty=value />Now, what I need to do is to...
View ArticleHow to get ModelItem from a UserControl
I need to get the ModelItem from an instance of a User Control.ex:myUserControl uc = new myUserControl()ModelItem mItem = ?? //something like new ModelItem(uc);Is there a way to achieve this result?
View ArticleTab Colors Change in Extensibility
<object height="0" id="e8282969-9908-a38f-4b3b-8bb769ac8c8b" type="application/gas-events-abn" width="0"></object>Hi, I'm creating a SQL Server Management Studio Add-in, I want to change...
View ArticleCancel solution loading programmatically
Hello, I'm trying to cancel a solution loading process within the IVsSolutionLoadEvents.OnBeforeOpenSolution method. Any ideas howto accomplish it? Returning E_FAIL or throwing exceptions does not...
View ArticleHow to change/overwrite windows of IDE in addin or package?
I have an add-in for SQL Server Management Studio, I want to capture the command if user clicks on "Execute" button to execute SQL statement and add a button and textblock on the "Execution Plan"...
View ArticlePackage: Rename Project throws an Access Violation
Hi there,I want to unload and re-load a project within a Visual Studio package. The solution is open and I listens to the OnAfterRenameProject event. In this event I wrote the following few lines of C#...
View ArticleVLC Plugin is disabled in Tool Box VS2012
Hi All I am trying to add VLC plugin in Visual Studio 2010/12 both but no success. However when I add from COM components it says Added Successfully but not enable in the current designer - Can you...
View ArticleSupported HTML markup
I have created help files formatted as CHM that use the HTML <sub></sub> markup. This is rendered correctly in CHM and Microsoft Help Viewer 1, but not anymore as of Microsoft Help Viewer...
View ArticleSetting page unable to auto resize
Hi Expert,We are working on VSpackage project based on MPF. We implemented a setting page and we found the grid is unable to auto resize when we drag the dialog. We get debug into MPF base project...
View Articlehow to load macro automatically
HiI have develop a macro that automatically add dependencies DLL to project reference upon I add any DLL reference.How could I configure Visual studio to always has my macro to be executed even after I...
View ArticleHow to hook filesystem operations on project files in Visual Studio Extention?
I have folowing problem. Unity3d engine tracks assets using special meta files having '.meta' extention. While I do something with file in Unity editor it handles meta file automaticly. But I prefer...
View ArticleVSPackage: context menu on project node in Solution Explorer for a specific...
I found this, but some sample code would be useful.I have set up the context menu in the .vstc file using IDM_VS_CTXT_PROJNODE. That works fine.I have set up...
View Article