Extension Compatibility between V1 and VS 11 Beta
-
Friday, March 30, 2012 4:18 PM
I noticed one of my extension (http://visualstudiogallery.msdn.microsoft.com/5b064b35-cdf5-46aa-909f-fa43ad98b512) is not showing up in VS 11's Extension manager and saw that it says supported version : VS 2010. However my two extensions are showing VS 2011 as supported version.
I download the source compiled it in VS 2011, but it says, it can install only for VS 2010. I didn't see any property value differences between either one of my extensions. Could someone plz help me what am I missing here?
-Bala
- Moved by Steve HoagMicrosoft Employee, Moderator Friday, March 30, 2012 6:08 PM Extensibility question (From:LightSwitch in Visual Studio 11 Beta)
All Replies
-
Friday, March 30, 2012 5:31 PMModerator
Hi Bala,
Check the "Supported Editions" value in your VSIX manifest. It should be "Microsoft.VisualStudio.Pro" in order to show up in VS11; in VS2010 it was "VSLS".
Hope this helps,
Steve Hoag Microsoft aka the Lights Witch (IEnumerable of Newt)
-
Friday, March 30, 2012 5:47 PM
Steve,
Sorry but that didn't fix the problem but ended up with another error now.
The first two SS are the manifest from two extensions, before I make the change (Both SS took from VS 2010).
The difference between these two was the specific edition. But check/uncheck those checkbox didn't make any difference. This SS was took from VS 2011 after I replace VSLS to "Microsoft.VisualStudio.Pro".
-Bala
-
Friday, March 30, 2012 5:47 PM
In fact, I didn't make any changes on any of my Extensions after VS 2011's Beta release. Somehow two made themselves to VS 2011, but not this one (ImageButotn Extension).
-Bala
-
Friday, March 30, 2012 6:07 PMModerator
Let's move this to the Extensibility forum where you are more likely to get some help.
Also, rather than screenshots could you post the raw xml from the manifest that works and the one that doesn't.
Steve Hoag Microsoft aka the Lights Witch (IEnumerable of Newt)
-
Friday, March 30, 2012 6:10 PM
Thanks Steve.
Thats what I'm doing now. Going each XML file line by line and comparing. Will play around a little bit and post my results.
-Bala
-
Friday, March 30, 2012 6:20 PM
Alight. Haven't find anything funny between these two manifest. Both files are from the source code I uploaded in MSDN. Not sure, why one extension says.. it is compatible with VS 2011 not the other.
This one doesn't work.
<?xml version="1.0" encoding="utf-8"?> <Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010"> <Identifier Id="ImageButtonExtension"> <Name>Image Button Extension</Name> <Author>PowerBala</Author> <Version>1.1</Version> <Description xml:space="preserve">Image Button Extension helps you add an images to your LightSwitch Buttons. Also you can wrap button text. Change Log : V1.1 * Added another control : Transparent Image Button with GrayScale support when Image is in Disable state * Added support for Description</Description> <Locale>1033</Locale> <Icon>ImageButton.png</Icon> <PreviewImage>ImageButton.png</PreviewImage> <SupportedProducts> <VisualStudio Version="10.0"> <Edition>Ultimate</Edition> <Edition>Premium</Edition> <Edition>Pro</Edition> <Edition>VSLS</Edition> </VisualStudio> </SupportedProducts> <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.5" /> </Identifier> <References /> <Content> <CustomExtension Type="LightSwitchPackage">|ImageButtonExtension.Lspkg;LspkgOutputGroup|</CustomExtension> </Content> </Vsix>
This one works fine.
<?xml version="1.0" encoding="utf-8"?> <Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010"> <Identifier Id="XTextBoxExtension"> <Name>Extended Text Box Extension</Name> <Author>PowerBala</Author> <Version>1.0</Version> <Description xml:space="preserve">XTextBoxExtension control extension contains one textbox control that enables to set one of the below Character casing. -Normal -Upper Case -Lower Case -Proper Case -Title Case -Sentense Case</Description> <Locale>1033</Locale> <Icon>XTextBox.png</Icon> <PreviewImage>XTextBoxPreview.png</PreviewImage> <SupportedProducts> <VisualStudio Version="10.0"> <Edition>Ultimate</Edition> <Edition>Premium</Edition> <Edition>Pro</Edition> <Edition>VSLS</Edition> </VisualStudio> </SupportedProducts> <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.5" /> </Identifier> <References /> <Content> <CustomExtension Type="LightSwitchPackage">|XTextBoxExtension.Lspkg;LspkgOutputGroup|</CustomExtension> </Content> </Vsix>
-Bala
-
Friday, March 30, 2012 7:19 PMModeratorDoes your ImageButton extension have any dependencies on the Visual Studio IDE? See John Stallo's reply to the post here: http://social.msdn.microsoft.com/Forums/en-US/LightSwitchDev11Beta/thread/cf462d63-1649-4ec6-9ccf-9f30ea6af1d9
Steve Hoag Microsoft aka the Lights Witch (IEnumerable of Newt)
-
Friday, March 30, 2012 7:28 PM
Not at all. Perhaps, this is the simplest of all three extensions I've done. Just 3 lines of C# code with few lines of XAML.
I'm gonna create this extension from the scratch (VS 2010) and see.
-Bala
-
Friday, March 30, 2012 7:50 PM
Update :
I thought the last update (V 1.1) might caused some kind of compatibility issues as you suggested above, but even compiling my old source (V 1.0) gives the same result. No VS 2011 support at all. Created a new extension project in VS 2010, and still the same result.
Where it gets more weird is, I tried to compile other extensions (which are compatible with VS 2011 as per MSDN) from old my source (not the one I downloaded from MSDN) and guess what... no VS 2011 support. But downloaded source from MSDN adds VS 2011 support.
Really confused
-Bala
-
Monday, April 02, 2012 9:22 PMModerator
You need to up the vsixmanifest file to state that the extension supports VS 11:
<SupportedProducts> <VisualStudio Version="10.0"> <Edition>Ultimate</Edition> <Edition>Premium</Edition> <Edition>Pro</Edition> <Edition>VSLS</Edition> </VisualStudio> <VisualStudio Version="11.0"> <Edition>Ultimate</Edition> <Edition>Premium</Edition> <Edition>Pro</Edition> <Edition>VSLS</Edition> </VisualStudio> </SupportedProducts>Justin Anderson, LightSwitch Development Team
- Proposed As Answer by Justin AndersonMicrosoft Employee, Moderator Monday, May 07, 2012 6:44 PM
- Marked As Answer by Justin AndersonMicrosoft Employee, Moderator Tuesday, June 05, 2012 4:18 AM
-
Tuesday, April 17, 2012 4:54 AMJustin is correct, but our extensions only have the 'VSLS' additions for 10.0 and 11.0, so perhaps the Ultimate/Premium/Pro are not necessary. Perhaps Justin can comment further. Thanks.
Xpert360 blog | twitter : @xpert360 Opinions are my own. Please mark as answer if this helps solve your problem.
-
Tuesday, April 17, 2012 5:47 AMModerator
Correct. The only edition that is necessary for LightSwitch Extensions is VSLS.
If the VSIX includes other VS componenets that plug into the higher editions, then those editions need to be included as well so that the VSIX can be installed into those editions.
Justin Anderson, LightSwitch Development Team

