Visual Studio Extensibility Beta 2 ForumDiscuss extending Visual Studio, using the Extension Manager, building VSIX deployment containers, and other Visual Studio Extensibility questions.© 2009 Microsoft Corporation. All rights reserved.Sat, 28 Nov 2009 02:28:49 Z2832d72e-4cd6-4ef1-a18a-db821709c3adhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/2e3ac303-7c39-4d05-9a9b-df0d65c2d472http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/2e3ac303-7c39-4d05-9a9b-df0d65c2d472a280Z28http://social.msdn.microsoft.com/Profile/en-US/?user=a280Z28Styled WPF controlsI'm creating a new editor margin that has a ComboBox in it. I'd like it to use the same style as the Type &amp; Member dropdowns showing in the C# editor, which are instances of Microsoft.VisualStudio.Editor.Implementation.EditorNavigationComboBox.<br/><br/>How can I set my control to use a Visual Studio theme?<br/><br/>Thanks :)<br/>Sat, 28 Nov 2009 02:28:48 Z2009-11-28T02:28:49Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/d12ac2e1-dddc-4ba6-972e-e4fc02790e9fhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/d12ac2e1-dddc-4ba6-972e-e4fc02790e9fSaju Mathewhttp://social.msdn.microsoft.com/Profile/en-US/?user=Saju%20MathewCreate a new project type like .csproj<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">Hi, </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">Can somebody list out the steps to be followed to create a new custom project type<span style="">  </span>like .csproj so that we can define a project template for this type, and use it like the standard type.</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">We should be able to open the project projectname.mytype by double clicking and should open up in Visual studio. So it not just about creating a project template.</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'"><span style=""> </span>Any help greatly appreciated.</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">Thanks in advance,</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'"> -</span><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">Saju Mathew</span></p>Fri, 27 Nov 2009 13:08:37 Z2009-11-27T14:29:54Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/3ef1de39-505d-4da8-89a5-eeadea90975chttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/3ef1de39-505d-4da8-89a5-eeadea90975cSaju Mathewhttp://social.msdn.microsoft.com/Profile/en-US/?user=Saju%20MathewCustomizing Property Grid<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">Hi,</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">Is there way we can customize the property window, by displaying images and custom information. </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">Currently when we select a control from the designer, and press F4 for the properties, we get the property grid with a Text description. </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">Can we place an image in the description area along with the custom properties in the property grid?</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">Thanks in advance.</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:#333333;font-family:'Trebuchet MS','sans-serif'">-Saju Mathew</span></p>Fri, 27 Nov 2009 13:20:48 Z2009-11-27T13:20:50Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/f0d539a7-4b0e-447c-8233-0e68693da779http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/f0d539a7-4b0e-447c-8233-0e68693da779Gastonhttp://social.msdn.microsoft.com/Profile/en-US/?user=GastonProject System in VS 2010 Beta 2When are you estimating to have the CustomProject sample or other project system working on VS 2010 Beta 2. I was trying to convert the existing project but I missing something because I couldn't see the new project type on the New Project Dialog. <div><br/></div> <div>I did:</div> <div><br/></div> <div>- Patch the .vsixmanifest.</div> <div>- Fix some base classes</div><hr class="sig">Gaston MilanoWed, 18 Nov 2009 17:21:24 Z2009-11-26T09:27:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/c5140147-86d5-49e9-a9f4-35214a47003ahttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/c5140147-86d5-49e9-a9f4-35214a47003aJanBaanhttp://social.msdn.microsoft.com/Profile/en-US/?user=JanBaanwhere is vcprojectengine?I have a project package that extends VS 2003, 2005 and 2008 with a new project type (which encapsulates a VC project). Now it needs to run in VS2010. The code is basically these two lines at the start:<br/><span style="color:#808080;font-size:xx-small"><span style="color:#808080;font-size:xx-small">#import &quot;C:\Program Files\Microsoft Visual Studio 9.0\VC\vcpackages\vcprojectengine.dll&quot;<br/><span style="color:#808080;font-size:xx-small"><span style="color:#808080;font-size:xx-small">using namespace VCProjectEngineLibrary;<br/><br/>and then I can use types like <span style="font-size:xx-small">VCCLCompilerTool and <span style="font-size:xx-small">VCLinkerTool. In VS2010 this dll no longer exists and the vcproject.dll file does not contain these types.<br/>Any suggestion on how to do this with a major rewrite?<br/><br/>Thanks, Jan</span></span></span></span></span></span>Wed, 25 Nov 2009 11:05:31 Z2009-11-26T09:22:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/643a61d1-ae6a-4795-9f28-95f11fe94e49http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/643a61d1-ae6a-4795-9f28-95f11fe94e49Phlow2001http://social.msdn.microsoft.com/Profile/en-US/?user=Phlow2001Missing functionality in Menu/Toolbar customization, Add Command dialog contains no Extension commands?When you try to customize a menu or toolbar by adding a command, the Add Command dialog doesn't seem to include any commands from loaded Extensions.  There is an Addins category, but none for Extensions.  Was this an oversight, or am I missing something?Tue, 17 Nov 2009 17:43:50 Z2009-11-26T09:10:50Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/2d04ba5d-90a8-4714-a0fc-011e43e4ab19http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/2d04ba5d-90a8-4714-a0fc-011e43e4ab19JoDanhttp://social.msdn.microsoft.com/Profile/en-US/?user=JoDanWriting to the output paneFollowing the MSDN tutorials on how to write to the output pane, but I cannot get to it. My code is taken from msdn:<br/><br/> <pre lang="x-c#">var outputWindow = GetService( typeof(SVsOutputWindow)) as IVsOutputWindow; IVsOutputWindowPane pane; Guid guidGeneralPane = VSConstants.GUID_OutWindowGeneralPane; outputWindow.GetPane(ref guidGeneralPane, out pane); if (pane != null) { pane.OutputString(string.Format( &quot;To Do item created: {0}\r\n&quot;, item.ToString())); }<br/></pre> Pane is aways null. I've made sure the output window is open in the IDE.<br/>Fri, 18 Sep 2009 22:29:25 Z2009-11-25T23:22:48Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/897040e8-c006-4299-97b9-437df1d795cbhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/897040e8-c006-4299-97b9-437df1d795cbAlexey Bhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alexey%20BProper way to register package for VS Beta 2Hello, <p>I have custom package, and it works fine with Beta 1 but does not work correctly in Beta 2 without additional registration steps.</p> The reason is in package registration. Originally, package is registered in Packages subkey under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0. It is registered manually, by supplying corresponding registry values. It seems like Visual Studio 2010 Beta 2 does not mention it and does not load it at all. But, if I provide all registration keys under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0_Config all works fine, nevertheless it's .NET 2 package. Yes, I understand that this is not right way to register package, because it will be available only for that user who performed the installation. <p>So the question is how to register my package properly in VS 2010 Beta 2?</p>Wed, 18 Nov 2009 15:45:04 Z2009-11-25T17:24:56Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/defc960a-9050-4b95-85fa-3a6fa6f4d2b0http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/defc960a-9050-4b95-85fa-3a6fa6f4d2b0Salechttp://social.msdn.microsoft.com/Profile/en-US/?user=SalecIsolated Shell: Removing Tools->Connect to databaseHello, <div>     Does anyone know how I can go by removing the menu item Tools-&gt;Connect to database?</div> <div><br/></div> <div>I'm not quite sure which package this menu item comes from and/or if there is a vsct element I can uncomment.</div> <div><br/></div> <div>-Shaun</div> <div><br/></div> <div><br/></div>Tue, 17 Nov 2009 20:26:47 Z2009-11-25T00:31:04Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/3ff8ef54-9a6b-4e61-a7b8-44dcf4bee171http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/3ff8ef54-9a6b-4e61-a7b8-44dcf4bee171OutOfCoffeeExceptionhttp://social.msdn.microsoft.com/Profile/en-US/?user=OutOfCoffeeExceptionVisual Studio 2010 StylesHello,<br/><br/>I am currently creating a VS package with custom editors and tool windows (WPF). I'd like to stay as close as possible to the Visual Studio 2010 design. Is there any way to use the same styles as Visual Studio?<br/><br/>I only found the documentation for <a href="http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.vsbrushes_properties(VS.100).aspx">http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.vsbrushes_properties(VS.100).aspx</a>, which does not say anything about which of these brushes is used where.<br/><br/>For example, one of the things I try to do is create a toolbar with toolbarbuttons that look just like the toolbar buttons in Visual Studio. Is there an easy way to reuse the VS2010 styles?<br/><br/>Thanks,<br/>MathiasMon, 23 Nov 2009 21:24:02 Z2009-11-24T21:37:26Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/ae1ab102-f3be-4671-a77a-08fd93482e80http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/ae1ab102-f3be-4671-a77a-08fd93482e80Grant Croftonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Grant%20CroftonWhere to find resources for vs2010 extensibility?Hi, I have an idea for a plug-in I want to write, I haven't written one before.  As it's going to take me a while, I though I'd go straight for 2010, but I'm having difficulty finding much information on how to get started.  I'm running beta2 at the moment.<br/><br/>My assumption in going for 2010 is that it's quite different from 2008 to develop for due to MEF (my plugin would centre around the code editor and would also tie in to commands and general navigation).  If this assumption is wrong and you think that what I create for 2008 will be fairly easily portable (or work directly) with 2010, please let me know.<br/><br/>So aside from that, if anyone could point me in the direction of any documents, videos, blog etc about how to get going with vs2010 extensibility, that would be great, as everything I'm finding at the moment seems to be for 2008.<br/><br/>Cheers,<br/>Grant<br/><br/>PS I'm developing with .NetSat, 14 Nov 2009 13:01:48 Z2009-11-24T20:28:57Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/eb14685d-0bd7-49e8-9086-b05e1d6de6a9http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/eb14685d-0bd7-49e8-9086-b05e1d6de6a9Michael Feingoldhttp://social.msdn.microsoft.com/Profile/en-US/?user=Michael%20FeingoldVS crashes after double click on an error in the errorlistI am using IVsOutputWindowPane.OutputTaskItemString to add an error message to the VS Error List. Double click on the message added through this call should show the line of the source code identified by the appropriate parameters of the method.<br/> <br/> It does exactly as it should, but at least on one computer it sometimes crashes the VS. There is no messages no restart - no nothing, the VS just disappears. Even if I run the VS under debugger - another instance of VS, in this other instance there is no exception or any other indication of what causes the crash.<br/> I cannot replicate it on other computers, but on this one it is pretty consistent - every time you click a message in the errorlist it is fifty fifty chance it will fall flat on its face.<br/> <br/> What else can I do to troubleshoot what's wrong?Fri, 23 Oct 2009 16:05:04 Z2009-11-24T20:14:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/135dfbbf-6805-46bc-8b5a-1b6a3ca05473http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/135dfbbf-6805-46bc-8b5a-1b6a3ca05473pstecklerhttp://social.msdn.microsoft.com/Profile/en-US/?user=pstecklerBeta 3?Will there be a beta 3 of VS2010, and if so, when can we expect it?<br/> <br/> One of the responses to an earlier query of mine in this forum acknowledged a bug in beta 2 <br/> that breaks my code.  It'd be useful to confirm that the bug has been swatted before <br/> VS2010 is released.Tue, 24 Nov 2009 02:06:54 Z2009-11-24T18:13:39Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/22f017b8-3d0b-46ed-a334-d0f5d097d3f4http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/22f017b8-3d0b-46ed-a334-d0f5d097d3f4Tomas Restrepohttp://social.msdn.microsoft.com/Profile/en-US/?user=Tomas%20RestrepoVS2010 and Microsoft.VisualStudio.Data.FrameworkI've been working on a custom ADO.NET data provider and getting it integrated into Visual Studio with a simple experience. I've got this working fairly well with VS2008, but was interested in making it work with VS2010 as well. <div><br/></div> <div>From initial tests, I know the provider works just fine under .NET 4.0, so that's not much of a concern. However, the VS integration is a different story. So far, I very much wanted only the basic experience. That is, I'm not interested at this point in supporting custom dialogs or anything like that, so the <a href="http://msdn.microsoft.com/en-us/library/bb163740(VS.80).aspx">&quot;basic provider&quot; DDEX story</a> was appealing and that was the route we took.</div> <div><br/></div> <div>However, since it appears that Microsoft.VisualStudio.Data.Framework is <a href="http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/54b0a254-6e6f-499d-879e-0cad2a205e9b/">not supported at all</a> under VS2010 (and why not? Works just fine on a machine with both 2008/2010 installed, btw), it seems we are SOL. Is there a story for data provider integration on VS2010 at all that doesn't force me to write an entire VS package with all new custom UI and boatloads of code?</div> <div><br/></div> <div>Notice that the provider assembly doesn't link to Microsoft.VisualStudio.Data.Framework at all... but of course it's used in the provider registration in the VS registry key.</div> <div><br/></div> <div>Seriously screwed up if there's no story here.</div><hr class="sig">http://winterdom.com/Tue, 24 Nov 2009 15:46:41 Z2009-11-25T02:30:07Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/c74ed55e-ab13-4ff7-9dd9-2e2854fcbd18http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/c74ed55e-ab13-4ff7-9dd9-2e2854fcbd18a280Z28http://social.msdn.microsoft.com/Profile/en-US/?user=a280Z28Adding a language to Tools > Options using MEFCurrently, I know you can implement syntax highlighting, IntelliSense, and other items for a new language using the MEF extensibility. How would I go about adding the language I implemented to Tools &gt; Options &gt; Text Editor so I can set preferences for the text editor?Sun, 15 Nov 2009 00:47:37 Z2009-11-22T07:00:23Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/ae1af306-1459-4ac8-b590-99945bef77d9http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/ae1af306-1459-4ac8-b590-99945bef77d9jessieluhttp://social.msdn.microsoft.com/Profile/en-US/?user=jessieluCustom editor not loading in VS2010 Beta 2I have a package for VS2008 that contains a custom editor, and I'm testing out moving it to VS2010 Beta 2.  I seem to have everything set up correctly, but the custom editor never loads in VS2010 Beta 2.  The file always opens as text.  Any ideas what I might be missing?Fri, 20 Nov 2009 14:25:15 Z2009-11-21T01:03:27Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/54b0a254-6e6f-499d-879e-0cad2a205e9bhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/54b0a254-6e6f-499d-879e-0cad2a205e9bReggie Burnetthttp://social.msdn.microsoft.com/Profile/en-US/?user=Reggie%20BurnettSupport for VS 2008 and 2010?I currently ship a ddex package (along with some custom editors) that works in 2005 and 2008.  I'm assuming I can't support all 3 from a single binary but can I support 2008 and 2010 from a single binary?Thu, 12 Nov 2009 22:01:55 Z2009-11-20T03:00:35Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/e60cc921-cf43-46e3-975c-fd036146e2cahttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/e60cc921-cf43-46e3-975c-fd036146e2caSaju Mathewhttp://social.msdn.microsoft.com/Profile/en-US/?user=Saju%20MathewRibbon Interface in VS2010 Beta 2 Shell Hi,<br/><br/>We are developing an application using VS2010 Shell (Isolated) and the product requires the Ribbon interface in place of the classic VS menu. We understand that the Ribbon Interface is not supported by default. <br/>We are planning to use Microsoft RibbonControlsLibrary for the same. <br/><br/>Here are the challenges:<br/>1. We need to replace the VS classic menu and toolbars with the Ribbon control (hence can't use .vsct as in the case of classic menus) <br/>2. Positioning the RibbonApplicationMenu hiding he VS default control menu (with options Restore, Move, Size, Minimize, Maximize &amp; Close)<br/>3. We should be able to dock, project related document windows as tabbed document under the ribbon bar<br/><br/>Any inputs greatly appreciated.<br/><br/>Thanks in advance,<br/>-Saju<br/>Fri, 13 Nov 2009 08:34:01 Z2009-11-19T05:27:58Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/94b395e1-729f-49eb-bef5-c04fae514970http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/94b395e1-729f-49eb-bef5-c04fae514970Rayanahttp://social.msdn.microsoft.com/Profile/en-US/?user=RayanaHow to remove "Powered by Visual studio" from splash screenHI,<br/><br/>how to hide/remove &quot;Powered by Visual studio&quot; part when the application launchs the splash screen.<hr class="sig">RaviTue, 17 Nov 2009 09:23:43 Z2009-11-18T17:04:07Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/e74b5cb8-940f-463f-824c-21dba87674d9http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/e74b5cb8-940f-463f-824c-21dba87674d9pstecklerhttp://social.msdn.microsoft.com/Profile/en-US/?user=pstecklerInheritance in .vcxproj filesMy VS package parses .vcxproj files for VS2010, and I'm having trouble understanding the inheritance model.<br/> <br/> In VS2005/VS2008 .vcproj files, there were macros $(INHERIT) and $(NOINHERIT), whose semantics are described at<br/> http://msdn.microsoft.com/en-us/library/hx1tt59t%28VS.80%29.aspx.  Those macros appear to have disappeared <br/> in VS2010.<br/> <br/> Instead, I see things like %(PreprocessorDefinitions), which presumably indicates some kind of inheritance.  Is there<br/> somewhere that lists all possible such macros, and how they're used?<br/> <br/> For the %(PreprocessorDefinitions) macro, I'm confused because I see it within the &lt;PreprocessorDefinitions&gt; tags <br/> within ItemDefinitionGroup/ClCompile.  Does that define a value for that macro, to be used elsewhere?  Or does it <br/> indicate inheritance from somewhere else?  If the latter, inheritance from where?<br/> <br/> -- Paul<br/>Wed, 18 Nov 2009 00:59:23 Z2009-11-18T01:59:34Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/c12f6a15-bce4-472d-b6cb-217e857c43e3http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/c12f6a15-bce4-472d-b6cb-217e857c43e3a280Z28http://social.msdn.microsoft.com/Profile/en-US/?user=a280Z28Handling the comment/uncomment selection commandsI want to provide the ability for my content type to comment/uncomment selection. Is there any way to provide an MEF component that gets called for this command? Constructing the component with an ITextView, it would be easy to handle the command with a port of <a href="http://blog.280z28.org/archives/2008/10/19/">my old API code</a> to the new ITextEdit features.<br/>Wed, 18 Nov 2009 01:45:17 Z2009-11-18T01:45:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/986143de-d1dd-4688-9b64-be203f5d335bhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/986143de-d1dd-4688-9b64-be203f5d335bPhilosophilhttp://social.msdn.microsoft.com/Profile/en-US/?user=PhilosophilHow to extend solution explorer and have templated XSLT files?Hi<br/><br/>I'm curious to know the best approach to extend VS. I want to use an XSLT to transform XML to HTML and I want to simplify how localization works. I was thinking that I could parse a base .xslt file and generate a base_en.xslt and base_fr.xslt which would be dependeant on base.xslt. The result files would be part of the 'content' of the project whereas base.xslt is only used to generate those two files. I'd also like to generate a class which would be used by other classes in the project to load the appropriate XSLT based on the locale. Here is an example for the XSLT<br/>    &lt;div&gt;<br/>        &lt;span&gt;$resource:order,description$&lt;/span&gt;<br/>        &lt;input type=&quot;text&quot; value=&quot;$product.description$&quot;/&gt;<br/>   &lt;div&gt;<br/><br/>would get converted to  <br/>    &lt;div&gt;<br/>        &lt;span&gt;Description&lt;/span&gt;<br/>        &lt;input type=&quot;text&quot;&gt;<br/>           &lt;xsl:attrribute name=&quot;value&quot;&gt;<br/>                 &lt;xsl:value-of &quot;product/description&quot;/&gt;<br/>           &lt;/xsl:attribute&gt;<br/>        &lt;/input&gt;<br/>   &lt;/div&gt;<br/><br/>For English. The idea is to read the .resx in the case of $resource,...$  and convert the rest to &lt;xsl:value-of select=&quot;...&quot;/&gt;   It makes the XSLT easier to read.<br/><br/>Anyway, if I want to make sure that the VS views all the files (base.en.xsl, base.fr.xslt and base.cs) as dependant, whats the best approach with VS extension ?  My current thinking is that a custom tool is needed. Am I in the right ball park?<br/><br/>Thanks<br/><br/>PhilFri, 23 Oct 2009 14:48:14 Z2009-11-17T22:07:59Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/5ddc8cd4-027d-4147-9f3f-f19223953231http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/5ddc8cd4-027d-4147-9f3f-f19223953231a280Z28http://social.msdn.microsoft.com/Profile/en-US/?user=a280Z28How can I get the classification of a character in the text editor?What is the cleanest way to get the classification type at some position in a SnapshotSpan? I'm implementing brace matching and I need to ignore characters classified as StringLiteral, CharacterLiteral, and Comment.Tue, 17 Nov 2009 08:15:44 Z2009-11-17T22:52:20Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/f7ac34d9-fea7-44e3-a375-aadcbaf85c65http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/f7ac34d9-fea7-44e3-a375-aadcbaf85c65MadKeithVhttp://social.msdn.microsoft.com/Profile/en-US/?user=MadKeithVVS2010: Can't access EnvDTE.Constants?When I try to access EnvDTE.Constants I get the following error:<br/> error CS1752: CoClass 'EnvDTE.Constants' can be used only as one of its applicable interfaces<br/> <br/> I can't find more information about this error in MSDN, and the same code worked fine in VS2005 and VS2008.  Does anyone know what I'm doing wrong?<br/> <br/> The actual code: OutputWindow outputWindow = (OutputWindow)_applicationObject.Windows.Item(EnvDTE.Constants.vsWindowKindOutput).Object;<br/> <br/> Edit:  I found this: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=464158&amp;wa=wsignin1.0<br/> but that doesn't actually help me to resolve the issue at all.Thu, 09 Jul 2009 14:09:39 Z2009-11-17T17:36:03Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/b74a97b3-99bc-423b-be2e-ed93ead3436dhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/b74a97b3-99bc-423b-be2e-ed93ead3436dOren Novotnyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Oren%20NovotnyBest way to implement custom colors for identifiersI'd like to write an addin (a classifier?) to provide some cusomizable to identifiers beyond what's out-of-the-box.  Specifically, I'd like to have options for Methods, Class Fields, Properties, Extension Methods and Events (and modifiers for versions for each -- static, virtual/override, etc).  For any given combination, I'd like to set a user-defined font/foreground/background.  I'll need to insert an item into the Options tree as the existing Fonts and Colors isn't good enough -- you can't opt for Italics and/or other fonts per group.  I'd like to persist the options in the vssettings file and my code would need to be notified when the options change.  My code would also need to be re-executed to update the colors displayed in the editor.<br/><br/>So what's the best way to do this?  Is it a classifier?  Looking at some of the examples, the classifiers seem to be working on arbitrary text and scanning text to look for keywords.  I don't need/want to do that as VS already knows what each identifier is.  <br/><br/>Ideally I'd imagine I'd want a single callback that gets a list of all identifiers for a window.  There'd be sufficient metadata to determine what color/style to make it.  I'd also get a callback when identifiers are added/changed/removed and update the color accordingly.  This as opposed to having a different callback for each identifier type, which would seem to indicate multiple passes over the same data.  <br/><br/>Thoughts, help? :)<br/><br/>Once I get something concrete, I do plan on putting the code up on CodePlex under MS-Pl for others to help maintain/extend.<br/><br/>Thanks!Sat, 14 Nov 2009 16:01:11 Z2009-11-17T12:05:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/9ac19d30-a5bf-4689-ad4f-70bf1c07b868http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/9ac19d30-a5bf-4689-ad4f-70bf1c07b868a280Z28http://social.msdn.microsoft.com/Profile/en-US/?user=a280Z28Implementing ISmartIndentFactoryServiceI'd like to provide an ISmartIndent implementation for a text view. I tried the following, but CreateSmartIndent was never called. My classifier for this content type <em>is</em> already working correctly.<br/><br/> <pre lang="x-c#"> [Export(typeof(ISmartIndentFactoryService))] [ContentType(Constants.MyContentType)] [TextViewRole(PredefinedTextViewRoles.Interactive)] public sealed class MySmartIndentProvider : ISmartIndentFactoryService { public ISmartIndent CreateSmartIndent(ITextView textView) { return null; // this is never called } } </pre>Sun, 15 Nov 2009 00:44:33 Z2009-11-16T23:14:53Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/f6c2a983-e6eb-491c-a8a4-14df95c77bbdhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/f6c2a983-e6eb-491c-a8a4-14df95c77bbda280Z28http://social.msdn.microsoft.com/Profile/en-US/?user=a280Z28What is the best way to execute the "View.NavigateBackward" command?In my old add-in for Visual Studio 2005/2008, I called ExecuteCommand(&quot;View.NavigateBackward&quot;) on the application object. Is this command available in any location through MEF, or am I stuck grabbing the DTE2 object from COM?Tue, 10 Nov 2009 02:20:17 Z2009-11-15T01:05:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/be006a75-f4d5-4b4e-8dd1-ad98b1c07521http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/be006a75-f4d5-4b4e-8dd1-ad98b1c07521SonoranCellisthttp://social.msdn.microsoft.com/Profile/en-US/?user=SonoranCellistHow do I hook into the mouse wheel eventThanks in advance, <div><br/></div> <div>I'm trying to put code behind the mouse wheel event. I saw this thread:</div> <div><a href="http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/c859e7c9-5205-402e-ac9e-2938382ef5ef/">http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/c859e7c9-5205-402e-ac9e-2938382ef5ef/</a></div> <div>that uses the Platform SDK. I was just wondering if this is still the best way to do this, or if the new VS2010 SDK has something more ideal.</div> <div><br/></div> <div>Thanks again!</div>Wed, 11 Nov 2009 20:49:24 Z2009-11-15T01:02:39Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/531b99a1-473a-425b-9a5a-2d479ed2a026http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/531b99a1-473a-425b-9a5a-2d479ed2a026pfeddyhttp://social.msdn.microsoft.com/Profile/en-US/?user=pfeddyVisual Studio Shell: Illegal HKLM MessagesI've been trying to get an Isolated Shell project running, and was having fairly good luck until I started seeing this.  When the shell app is starting up, I see lots of messages like this:<br/> <br/> RANU: Illegal HKLM access (UNICODE): Software\MyCompany\LimeVS\1.0\Packages\{DA9FB551-C724-11D0-AE1F-00A0C90FFFC3}<br/> <br/> I'm not sure what caused the messages to display.  Earlier in the day I was not seeing them.  Searching for clues in the forums didn't yield any answers.<br/> <br/> Any thoughts?<br/> <br/> Paul<br/> Visual Studio 2010 beta 2Fri, 13 Nov 2009 14:08:48 Z2009-11-16T14:05:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/13d0e5bd-1e87-498c-9c2a-932efe6e9ecfhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/13d0e5bd-1e87-498c-9c2a-932efe6e9ecfsjnaughtonhttp://social.msdn.microsoft.com/Profile/en-US/?user=sjnaughtonPiano Keys or Listing paper adornment issueSee this video: <a href="http://social.msdn.microsoft.com/shows/10-4/10-4-Episode-5-Code-Focused-in-Visual-Studio-2010/">10-4 Episode 5: Code Focused in Visual Studio 2010</a> on channel 9 I started with the extansibility sample at 13m 30 seconds in this is what it does: <table style="width:auto" border=0> <tbody> <tr> <td><a href="http://picasaweb.google.com/lh/photo/Zi4B_-4T7qtiZ2kpB7OD2g?authkey=Gv1sRgCPX5i_fjo_bNzgE&amp;feat=embedwebsite"><img src="http://lh3.ggpht.com/_UUHjb9DZhJM/SvyiZ03PhpI/AAAAAAAAAs4/T3USpNkf990/s800/13-11-2009 00-01-36.png.jpg" alt=""></a></td> </tr> <tr> <td style="text-align:right;font-family:arial,sans-serif;font-size:11px">From <a href="http://picasaweb.google.com/wizzard1961/BloggerPictures?authkey=Gv1sRgCPX5i_fjo_bNzgE&amp;feat=embedwebsite">Blogger Pictures</a></td> </tr> </tbody> </table> <br/>And then after you open VS2010 a second time you get this: <table style="width:auto" border=0> <tbody> <tr> <td><a href="http://picasaweb.google.com/lh/photo/gldQWRaeAL8boGVbG0D5pQ?authkey=Gv1sRgCPX5i_fjo_bNzgE&amp;feat=embedwebsite"><img src="http://lh3.ggpht.com/_UUHjb9DZhJM/SvyiZty0AtI/AAAAAAAAAs0/Ewm_Bqy7Fpk/s800/13-11-2009 00-01-59.png.jpg" alt=""></a></td> </tr> <tr> <td style="text-align:right;font-family:arial,sans-serif;font-size:11px">From <a href="http://picasaweb.google.com/wizzard1961/BloggerPictures?authkey=Gv1sRgCPX5i_fjo_bNzgE&amp;feat=embedwebsite">Blogger Pictures</a></td> </tr> </tbody> </table> so what seems to be happening is the adornment is now covering the text.<br/><br/>When it is first installed and VS2010 is open the adornment is always correct but after closing and opening for the second time the adornment always seems to be infornt and is infront there after.<br/><br/>I have attempted to link to the zipped project file :(<br/><a href="http://cid-96845e7b0fac1eed.skydrive.live.com/self.aspx/Public/NotAClue.AlternatineLineColor.zip">Download</a><br/>Fri, 13 Nov 2009 00:10:06 Z2009-11-13T09:51:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/6c6c910c-d4fe-4cb6-bf11-518253a654cfhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/6c6c910c-d4fe-4cb6-bf11-518253a654cfOutOfCoffeeExceptionhttp://social.msdn.microsoft.com/Profile/en-US/?user=OutOfCoffeeException__VSHPROPID.VSHPROPID_IconIndex for .xaml filesFor a VS2010 plugin I'm working on, I need to write a tool window similar to the solution explorer. I already solved most of my problems, my tool window displays a treeview very similar to the solution explorer. I have only one strange problem: I don't get an icon for .xaml files.<br/><br/>When I call GetProperty(__VSHPROPID.VSHPROPID_IconIndex) for a .xaml file in my IVsHierarchy, I always get -1. I don't know if that happens for other file types as well, all other file types I have in my test project seem to work.<br/><br/>Why do I get no icon for .xaml files?<br/><br/>Thanks,<br/>Mathias<br/>Wed, 11 Nov 2009 22:31:20 Z2009-11-12T17:44:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/6e1f8fec-c117-4de1-8af0-65897064d939http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/6e1f8fec-c117-4de1-8af0-65897064d939Salechttp://social.msdn.microsoft.com/Profile/en-US/?user=SalecIsolated Shell: Setting default search pageHello, <div>I'd like to customize the default search page used by the web browser in an isolated shell.  In my shell pkgdef I have this url specified in two ways.  I first tried modifying the &quot;DefaultSearchPage&quot; that is listed under [$RootKey$] to my custom search url and that did not work (note: the DefaultHomePage DID work).</div> <div><br/></div> <div>I then noticed that under Tools-&gt;Options-&gt;Environment-&gt;Web Browser the Home page AND Search page were different than what I specified.</div> <div><br/></div> <div>This key is found in the registry once the application is run.</div> <div> <div>[$RootKey$\ToolsOptionsDefaults\WebBrowser]</div> <div>&quot;HomePage&quot;=&quot;homepageurl&quot;</div> <div>&quot;SearchPage&quot;=&quot;searchurl&quot;</div> <div><br/></div> <div>This key was spotted after I had manually opened the option window and assigned my new settings</div> <div> <div>[$RootKey$\WebBrowser]</div> <div>&quot;HomePage&quot;=&quot;homepageurl&quot;</div> <div>&quot;SearchPage&quot;=&quot;searchurl&quot;</div> </div> <div><br/></div> <div>With those 3 locations of modifying the SearchPage, neither worked at actually changing the search page when the shell is opened for the first time on a user's machine.  The HomePage was correctly displayed in the options after my ToolsOptionsDefaults key change.  Is this a bug or am I missing some simple yet critical detail?  </div> <div><br/></div> <div>-Shaun</div> </div> <div><br/></div>Wed, 04 Nov 2009 21:28:38 Z2009-11-11T20:14:13Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/3beee40f-fcaf-4358-ad15-85cc7517f86chttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/3beee40f-fcaf-4358-ad15-85cc7517f86cGordonTWattshttp://social.msdn.microsoft.com/Profile/en-US/?user=GordonTWattsWhat is the proper extensibility approach?Hi,<br/>  I don't know enough about VSIDE 2010 extensibility to do the following (with the least amount of work possible, obviously!). Could someone give me some pointers as to what direction I should go in?<br/><br/>  I've got a tool that interprets (or compiles) C++ files in its own environment. Under the covers it uses the 2010 command line compiler (cl) when it does the compiling; it uses its custom C++ interpreter otherwise. I would like to do the following:<br/><br/>- A project template that contains a single C++ source file filled with a &quot;helloWorld&quot; bit of code<br/>- When user hits &quot;run&quot; it will invoke the tool with the file and the output will be sent to a console window<br/>- multiple files can be included in a project, but a single file is the &quot;start up file&quot; (like an ASP.NET project).<br/>- There is no such thing as a library or other dependency for this type of project.<br/>- The editor used is a the regular 2010 C++ editor<br/>- The tool's interpreter does a number of automatic includes - the editor should know about these so intellisense would work correctly (even though the #include is not there in the actual source file).<br/>- Different solution configurations which would run the tool under different configurations<br/>- one of these configurations that would have the tool compile the code, and allow for debugging.<br/><br/>  It feels like I'm re-using a lot of the functionality of the C++ project type, but with a lot of other defaults. Is that the right way to go? To try to customize that? Or are there other approaches I should take? If so, where do I go for docs and examples? I did a bunch of C++ project customization in VS2008, but the project system has changed under 2010 and I'd rather have this new project speak to 2010 natively than any 2008 compatibility libraries.<br/><br/>  Many thanks in advance!<br/><br/>  Cheers,<br/>    Gordon.<hr class="sig">GordonFri, 23 Oct 2009 22:35:09 Z2009-11-10T23:19:36Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/d086dc54-efd6-4a36-94d8-226271740337http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/d086dc54-efd6-4a36-94d8-226271740337K_Mhttp://social.msdn.microsoft.com/Profile/en-US/?user=K_MUsing EnvDTE to trigger a debugger visualizer; possible?<span> <p>I'm using EnvDTE to interact with a Visual Studio 2010 debugger instance. The debugged application is stopped at a breakpoint in a class that has a debugger visualizer I have written associated with it. I can manually start the debugger visualizer by clicking on the magnifying glass, for example in the Locals panel or a Watch window. But these windows look opaque to EnvDTE, unless I'm not looking in the right place. So can anyone suggest any way I could do something via the EnvDTE interfaces that would result in the debugger visualizer being triggered as if I'd pressed the magnifying glass?<br/><br/>Thanks</p> </span>Wed, 04 Nov 2009 14:21:53 Z2009-11-10T17:54:06Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/21e72b8b-be8e-422c-84bf-598dc7a64589http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/21e72b8b-be8e-422c-84bf-598dc7a64589Phlow2001http://social.msdn.microsoft.com/Profile/en-US/?user=Phlow2001Add-In: DTE2.Windows collection doesn't contain all windows?<p>I'm writing an add-in in Visual Studio 2010 Beta 2, C#, .NET 4.0.  I am trying to hide all but a few windows in the IDE, in a specific situation.  I have created a new WindowConfiguration, and Apply()'d it, and I'm then trying to enumerate all the windows and .Close() them.<br/><br/>I have tried enumerating using the DTE2.Windows collection, as well as the IEnumWindowFrames method, but there only seems to ever be these windows by default: Start Page, Solution Explorer, Class View, Object Browser, Find and Replace.<br/><br/>The Server Explorer is part of a tab that is hidden by default.  If I activate that tab, then the Server Explorer is included in the Windows collection.  It seems VS is loading windows on demand, which is nice, but it leaves me with a problem.  I want to be able to hide the tabs that represent windows, whether the window has been loaded or not.<br/><br/>Is there a way to enumerate all the windows in the IDE that are either visible or may be hiding with a tab , or is there a way to access the tabs and hide them?<br/><br/>Thanks</p>Fri, 06 Nov 2009 08:39:28 Z2009-11-10T13:04:35Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/bf7af919-fc51-48df-94e5-d16f3c188cbfhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/bf7af919-fc51-48df-94e5-d16f3c188cbfdermothoganhttp://social.msdn.microsoft.com/Profile/en-US/?user=dermothoganProblem with VS 2010 beta 2 and IVsResourceManagerI've come across a problem with VS2010 beta 2. I've built my package under VS2008 and tried to install on VS 2010 (obviously with VisualStudio\10.0 registry entries). My package loads, but when I try to access resources which are in the standard VSpackage.resx, I get an error. <br/><br/>The code I use is:<br/><br/> resourceManager = (IVsResourceManager)GetService(typeof(SVsResourceManager));<br/> g = TestPackageGuid;<br/> r = resourceManager.LoadResourceString(ref g, -1, resourceName, out resourceValue);<br/> NativeMethods.ThrowOnFailure(r);<br/><br/>and the error I get is:<br/><br/>Error: Could not find file 'TestPackage.resources'.<br/>   at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, CultureInfo culture, Version version, Boolean throwOnFileNotFound, StackCrawlMark&amp; stackMark)<br/>   at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark&amp; stackMark)<br/>   at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark&amp; stackMark)<br/>   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark&amp; stackMark)<br/>   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)<br/>   at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)<br/>   at Microsoft.VisualStudio.CommonIDE.ResourceLoader.GetString(String resourceName, Int32 lcid)<br/>   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)<br/><br/>That is, the 'resourceManager.LoadResourceString' fails because it cant find the requested resource and seems to end up looking for a file. <br/><br/>Everything works fine using the same package under VS2008 which is installed on the same machine (Vista Business).<br/><br/>Any ideas as to what's going wrong?<br/><br/>Thanks,<br/><br/>DermotMon, 09 Nov 2009 23:01:46 Z2009-11-10T15:48:22Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/58f15900-7826-4b62-9c40-13c825b296eehttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/58f15900-7826-4b62-9c40-13c825b296eekvedhttp://social.msdn.microsoft.com/Profile/en-US/?user=kvedAccessViolationException when doing IvsWindowFrame.show()<div class=body> <p>I have a desginer that i am trying to open and this designer has an embedded editor. Following is the code:</p> <p>IVsUIShellOpenDocument shell = (IVsUIShellOpenDocument)DesFMPkg.Instance.GetService(typeof(IVsUIShellOpenDocument));</p> <p>IOleServiceProvider sp = (IOleServiceProvider)DesFMPkg.Instance.GetService(typeof(IOleServiceProvider));</p> <p>Guid editorType = GuidList.guidMultiViewEditor;</p> <p>       Guid logicalView = GuidList.guidDesignView;</p> <p>int hr;</p> <p>       if (des.HasCodeEditorView)</p> <p>       {</p> <p>          IVsSolution vsSolution = (IVsSolution)DesFMPkg.Instance.GetService(typeof(SVsSolution));</p> <p>          object obj;</p> <p>          hr = vsSolution.GetProperty((int)__VSPROPID.VSPROPID_IsSolutionOpen, out obj);</p> <p>          if (!(bool)obj)</p> <p>           {</p> <p>              hr = vsSolution.CreateSolution(string.Empty, string.Empty, (uint)__VSCREATESOLUTIONFLAGS.CSF_TEMPORARY);</p> <p>            }</p> <p>         }</p> <p>this.m_designer = des;</p> <p>        string caption = &quot;&quot;;</p> <p>// Find the item id assigned to this document by the project.</p> <p>uint pitemid = VSConstants.VSITEMID_NIL;</p> <p>string moniker = des.Moniker;</p> <p>VSVirtualProject project = DesFMPkg.Instance.GetService(typeof(VirtualProject));</p> <p>IVsUIHierarchy hier = project as IVsUIHierarchy;</p> <p>IVsProject proj = project as IVsProject;</p> <p>hr = project.AddDesigner(des, out pitemid);</p> <p>ErrorHandler.ThrowOnFailure(hr);</p> <p>hr = shell.OpenSpecificEditor(</p> <p>(uint)0,</p> <p>moniker,</p> <p>ref editorType,</p> <p>null,</p> <p>ref logicalView,</p> <p>caption,//node.Caption,</p> <p>hier,</p> <p>pitemid,</p> <p>System.IntPtr.Zero,        </p> <p>sp,</p> <p>out editorFrame);</p> <p>if (ErrorHandler.Succeeded(hr)) {</p> <p>editorFrame.SetGuidProperty((int)__VSFPROPID.VSFPROPID_InheritKeyBindings, ref GuidList.guidCmdUI_TextEditor);</p> <p>if (this.DontShowWindow == false)</p> <p>rrorHandler.ThrowOnFailure(editorFrame.Show());</p> <p>}</p> <p>on the EditorFrame.show, i get AccessViolationException. &quot;Attempt to read to write protected memory&quot;. <br/>Cam someone help..</p> </div>Wed, 04 Nov 2009 17:41:57 Z2009-11-09T21:50:46Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/d9c2aacd-ed1b-4e96-8f5a-a8084d6338a4http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/d9c2aacd-ed1b-4e96-8f5a-a8084d6338a4Salechttp://social.msdn.microsoft.com/Profile/en-US/?user=SalecPossible comment bug in pkgundef fileHello, <div>     Not sure how I should post bugs. I've found that in my pkgundef file.  Comments that contain &quot;*&quot; cause a error message to be shown while loading the isolated shell.  This seems like a bug since I would have expected all characters after &quot;//&quot; to be disregarded.</div> <div><br/></div> <div>Example Comment:</div> <div>// ** General Packages **</div> <div><br/></div> <div>-Shaun</div>Mon, 02 Nov 2009 15:37:01 Z2009-11-09T21:49:59Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/11f558c6-1591-4658-8bf8-fe428b9e7e66http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/11f558c6-1591-4658-8bf8-fe428b9e7e66ln613http://social.msdn.microsoft.com/Profile/en-US/?user=ln613T4 Project Reference doesn't work in VS2010 Beta 2<p>Hi,<br/><br/>In a .tt file, adding a assembly reference to another project in the solution (first in the current project, add a reference to the other project, then add &lt;#@ assembly name=&quot;T1.dll&quot;#&gt; to the .tt file). <br/> <br/>This works in VS2008, but in VS2010 Beta 2, it doesn't work. When I save the .tt file, I got the error:<br/><br/>Compiling transformation: Metadata file 'T1.dll' could not be found<br/><br/>Anything changed in VS2010 Beta 2?</p> <p>What should I do to make it work?</p> <p><br/>Thanks</p> <span style="font-family:Courier New;font-size:x-small"> <p> </p> </span><span style="font-family:Courier New;font-size:x-small"></span>Fri, 06 Nov 2009 19:49:50 Z2009-11-07T00:32:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/d6e7896a-a447-4d41-ad8c-438a6e20ca62http://social.msdn.microsoft.com/Forums/en-US/vsxprerelease/thread/d6e7896a-a447-4d41-ad8c-438a6e20ca62Salechttp://social.msdn.microsoft.com/Profile/en-US/?user=SalecIsolated Shell: Writing to output window pane causes unrecoverable hang<span style="font-family:'Times New Roman';font-size:medium"> <div style="color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:67%;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#ffffff;margin:8px">Hello, <div>     I'm current using a custom project type built using the MPF for Visual Studio 2010 found at <a href="http://mpfproj10.codeplex.com/">http://mpfproj10.codeplex.com/</a>   I'm having a problem where whenever the IDEBuildLogger goes to write an item to the OutputWindowPane it will cause a unrecoverable hang.</div> <div><br/></div> <div>    The hang happens  with the following line in IDEBuildLogger.cs of MPF:</div> <div>Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(this.OutputWindowPane.OutputStringThreadSafe(msg.ToString()));</div> <div><br/></div> <div>Anyone have any suggestions as to how this can be fixed?</div> </div> </span>Wed, 04 Nov 2009 02:47:25 Z2009-11-06T01:00:38Z