Erroneous warning about VSIX containing non-template content when targeting Express versions of visual studio?
-
Friday, March 25, 2011 8:01 AM
I have created a simple VSIX project including item templates and project templates from two projects. However when building this VSIX I get the warning:
source.extension.vsixmanifest : warning : VSIX targets Express Versions of Visual Studio but VSIX contains non-template content.
However I cannot see what this non-template content should be? The extension seems to install just fine in Visual C# Express however, so its not a major problem, but I would like to get rid of the warning if possible however.
The source.extension.vsixmanifest looks like:
The two projects referred two builds no .dll, and only contains vstemplate files, .cs and .csproj files and .ico files.<?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="ScriptCodeGenTool.Templates.iCore.cad5e538-bb57-4902-b348-5eb9f3231d7c"> <Name>My Templates</Name> <Author>Microsoft</Author> <Version>1.0.0.3</Version> <Description xml:space="preserve">some description.</Description> <Locale>1033</Locale> <SupportedProducts> <VisualStudio Version="10.0"> <Edition>Ultimate</Edition> <Edition>Premium</Edition> <Edition>Pro</Edition> <Edition>Express_All</Edition> </VisualStudio> </SupportedProducts> <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" /> </Identifier> <References /> <Content> <ProjectTemplate>ProjectTemplates</ProjectTemplate> <ItemTemplate>ItemTemplates</ItemTemplate> </Content> </Vsix>
Answers
-
Tuesday, April 05, 2011 4:07 PMOwner
Hi Peter,
This looks like a bug. It you have a VSIX with a single Project Template, you shouldn't be seeing that warning regarding Express. For now, you can ignore the warning.
I'll follow up to make sure we have a bug tracking this issue for future releases.
Regards,
Aaron
http://blogs.msdn.com/aaronmar- Proposed As Answer by Ryan MoldenMicrosoft Employee, Moderator Tuesday, April 05, 2011 5:04 PM
- Marked As Answer by Victor_Chen Wednesday, April 06, 2011 3:05 AM
All Replies
-
Friday, March 25, 2011 9:48 AM
Thanks for your post.
I think the value of <ProjectTemplate> and <ItemTemplate> should be template files(.zip files).
do you create this .manifest file within visual studio?
if not I suggest to open it in Visual Studio and click "Add Content" button to add contents.
If I misunderstand your issue, be free to let me know.
Best Regards,
Ziwei Chen
Ziwei Chen [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
Friday, March 25, 2011 12:00 PM
Thanks for your reply!
Ah, but the <ProjectTemplate> and <ItempTemplate> tags were created by the vsixmanifest editor GUI inside visual studio by selecting add content, selecting the content type, and then selecting "Project" as source and there selecting another project in the same solution that actually contained the actual templates. And as I said, the installation of the resulting vsix works fine, even in an express version of Visual Studio. It is why the warning pops up I'm wondering about.
These projects were created using the project-template template project supplied with the visual studio sdk. I removed the item-template project with the same result, so now the vstemplate in the project-template project contains the following:
<?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="ScriptCodeGenTool.Templates.iCore.cad5e538-bb57-4902-b348-5eb9f3231d7c"> <Name>ScriptCodeGenTool</Name> <Author>Microsoft</Author> <Version>1.0.0.3</Version> <Description xml:space="preserve">Some description.</Description> <Locale>1033</Locale> <SupportedProducts> <VisualStudio Version="10.0"> <Edition>Ultimate</Edition> <Edition>Premium</Edition> <Edition>Pro</Edition> <Edition>Express_All</Edition> </VisualStudio> </SupportedProducts> <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" /> </Identifier> <References /> <Content> <ProjectTemplate>ProjectTemplates</ProjectTemplate> </Content> </Vsix>
Regards, Peter.
-
Monday, March 28, 2011 3:20 AM
Hi Peter,
Thanks for your post.
As far as I know, Express version doesn't support extensions like VSPackage and addins,
which means it only accept Project template and Item template,
if in your VSIX package, there is no available templates in the content, the warning shows up.
Hope my reply helps resolve your issue.
Ziwei Chen [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
Monday, April 04, 2011 9:56 AM
Hi Peter,
Is it resolved?
Ziwei Chen [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
Monday, April 04, 2011 10:15 AM
No, unfortunately I still don't understand the warning.
However I see I accidentally posted the same file contents twice above which may have been quite confusing. So I will try to clarify somewhat:
I have a solution containing two projects. One (lets call it the template project) was based on the "C# Project Template", and the other (lets call it the vsix project) based on the "VSIX Project" template.
The VSIX project references the template project. This was done by editing the source.extension.vsixmanifest, selecting "Add content", choosing "Project" under "Select a source" and there selecting the template project. The resulting vsixmanifest contents is what I posted in an earlier post.
The template project contains the project template files, a .csproj and some .cs files and an .ico file. The vstemplate contains the following:
<?xml version="1.0" encoding="utf-8"?> <VSTemplate Version="3.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"> <TemplateData> <Name>Script Code Generator</Name> <Description>Create a Script Code Generator assembly.</Description> <Icon>iCore.ico</Icon> <ProjectType>CSharp</ProjectType> <RequiredFrameworkVersion>2.0</RequiredFrameworkVersion> <SortOrder>1000</SortOrder> <TemplateID>2e10e5f2-61e2-457a-94d8-d382472e03c6</TemplateID> <CreateNewFolder>true</CreateNewFolder> <DefaultName>ScriptCodeGenerator</DefaultName> <ProvideDefaultName>true</ProvideDefaultName> </TemplateData> <TemplateContent> <Project File="ProjectTemplate.csproj" ReplaceParameters="true"> <ProjectItem ReplaceParameters="true" TargetFileName="Properties\AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem> <ProjectItem ReplaceParameters="true" OpenInEditor="true">Generator1.cs</ProjectItem> </Project> </TemplateContent> </VSTemplate>
So as I understand it, the resulting VSIX should contain one project template and nothing else, but still I get the warning mentioned above.
Hopefully this clarifies my question somewhat.
Thanks again,
Sincerely, Peter.
-
Tuesday, April 05, 2011 4:07 PMOwner
Hi Peter,
This looks like a bug. It you have a VSIX with a single Project Template, you shouldn't be seeing that warning regarding Express. For now, you can ignore the warning.
I'll follow up to make sure we have a bug tracking this issue for future releases.
Regards,
Aaron
http://blogs.msdn.com/aaronmar- Proposed As Answer by Ryan MoldenMicrosoft Employee, Moderator Tuesday, April 05, 2011 5:04 PM
- Marked As Answer by Victor_Chen Wednesday, April 06, 2011 3:05 AM
-
Wednesday, April 06, 2011 7:21 AM
I almost suspected that. Thank you very much for confirming this. The installer works as intended despite the warning so I will simply ignore it.
Once again, thanks.
Sincerely,
Peter