I'm using VSIX Manifest Designer under VS2013. I've added Microsoft.VisualStudio.Pro product identifier and [10.0,13.0) version range to install targets. Despite that fact, I still don't see my VS2010 Professional as an available installation target:
The source.extension.vsixmanifest file content is shown below:
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="ae98c9e5-8e14-4c92-b45a-c4fd24a49123" Version="1.0" Language="en-US" Publisher="whosoever" />
<DisplayName>MyExtension</DisplayName>
<Description xml:space="preserve">whosoever</Description>
<MoreInfo>http://www.myextension.com</MoreInfo>
<License>LICENSE.txt</License>
<Icon>icon.png</Icon>
<PreviewImage>screenshot.png</PreviewImage>
</Metadata>
<Installation InstalledByMsi="false">
<InstallationTarget Version="[10.0,13.0)" Id="Microsoft.VisualStudio.Pro" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="4.5" />
<Dependency Id="Microsoft.VisualStudio.MPF.11.0" DisplayName="Visual Studio MPF 11.0" d:Source="Installed" Version="11.0" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
</PackageManifest>
What should be changed to enable installation of this extension to VS2010, 2012 and 2013?
What you have is the version 2 VSIX manifest, which is not compatible with Visual Studio 2010. Later Visual Studio versions respect version 1 of the manifest, so in order to support all 3 Visual Studio versions with a single manifest, you'll have to convert it to v1.0 manually (and make sure NOT to edit it with VS2012+, otherwise it will be converted back to v2.0).
Something like this:
<?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="ae98c9e5-8e14-4c92-b45a-c4fd24a49123">
<Name>MyExtension</Name>
<Author>whosoever</Author>
<Version>1.0</Version>
<Description xml:space="preserve">Your decription.</Description>
<Locale>1033</Locale>
<SupportedProducts>
<VisualStudio Version="10.0">
<Edition>Pro</Edition>
</VisualStudio>
<VisualStudio Version="11.0">
<Edition>Pro</Edition>
</VisualStudio>
<VisualStudio Version="12.0">
<Edition>Pro</Edition>
</VisualStudio>
</SupportedProducts>
<SupportedFrameworkRuntimeEdition MinVersion="4.0" />
</Identifier>
<Content>
<VsPackage>|%CurrentProject%;PkgdefProjectOutputGroup|</VsPackage>
<MefComponent>|%CurrentProject%|</MefComponent>
</Content>
</Vsix>
You don't have to specify all product editions (called SKUs), Pro is enough, if, say, Ultimate is installed, it will be displayed instead.
It is working pretty good (Thanks a lot to Igal), if the VSIX is developed in VS 2012, and installed in VS 2015. However, the reverse is not working (means developed in VS 2015 and try to install in VS 2012)
After analyzed Activitylog .xml, i found a work around
Could not load file or assembly 'Microsoft.VisualStudio.Shell.14.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
Workaround I did
Remove VisualStudio.Shell.14.0 and Install VisualStudio.Shell.11.0 using Package manager console (Install-Package VSSDK.Shell.11), and installed in VS 2012. Now Working as expected
Related
I created a Roslyn Analyzer/Code Fix Vsix for Visual Studio 2022. If I run it locally, it installs into VS and works fine.
I tried to submit to Visual Studio Marketplace and got an error stating: Target 'Microsoft.VisualStudio.Community' with version range '[17.0,18.0)' requires specifying a product architecture.
So in the .vsixmanifest file, I replaced:
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)" />
</Installation>
with
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
</Installation>
However, now, when I recompile I get Error VSSDK1062 Schema validation error for ... The 'http://schemas.microsoft.com/developer/vsx-schema/2011:Dependencies' element is not declared. and same for Assets element. However, both elements are there in the file:
What am I missing?
.vsixmanifest:
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="AnalyzerFoo.67e73b27-47db-43ce-a4d0-b4a540217728" Version="1.0" Language="en-US" Publisher="Frank Rizzo"/>
<DisplayName>Foo Code Fix for Visual Basic</DisplayName>
<Description xml:space="preserve">Use Explicit Type code fix for Visual Basic (like in C#)</Description>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="AnalyzerUseExplicitType" Path="|AnalyzerUseExplicitType|"/>
<Asset Type="Microsoft.VisualStudio.Analyzer" d:Source="Project" d:ProjectName="AnalyzerUseExplicitType" Path="|AnalyzerUseExplicitType|"/>
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="AnalyzerUseExplicitType.CodeFixes" Path="|AnalyzerUseExplicitType.CodeFixes|"/>
<Asset Type="Microsoft.VisualStudio.Analyzer" d:Source="Project" d:ProjectName="AnalyzerUseExplicitType.CodeFixes" Path="|AnalyzerUseExplicitType.CodeFixes|"/>
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.VisualStudio.Component.Roslyn.LanguageServices" Version="[17.0,18.0)" DisplayName="Roslyn Language Services" />
</Prerequisites>
</PackageManifest>
Hi I have created a nuget package for my xamarin.iOS project. I have included the DLL which is generated from my Xamarin binding project. This is my .nuspec file
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>ABC.SDK</id>
<version>1.0.0.0</version>
<title>Title</title>
<authors>ABC</authors>
<owners/>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Your description</description>
<releaseNotes/>
<copyright>Your copyright notice</copyright>
<tags/>
<dependencies>
<dependency id=""/>
</dependencies>
<summary/>
</metadata>
<files>
<file src="D:\ABC\proj\BindingProject\UnityBinding\UnityBinding\bin\Release\ABCLibrary.dll" target="iOS\ABCLibrary.dll"/>
</files>
</package>
I installed this nuget package into my Xamarin project using local repository. My problem is it is not included in the project solution's package folder.
Also in the project.assets.json file, for my nuget package it has only this
"ABC.SDK/1.0.0": {
"type": "package"
},
What is the wrong I have done? Please help me.
Thanks
The target you are using is wrong. For Xamarin.iOS you should use lib/Xamarin.iOS10 and not iOS/ABCLibrary.dll.
I have a solution file that was developed with VS2015, and it has about 20 project files. When we opened the file with VS2017 a prompt appeared: "The version of the report server project is not supported and the project must be upgraded". We chose to upgrade the project and commit the changes, and the solution/projects are now working in VS2017.
When I use VS2015 and use version control to Update Solution to Latest Version, the file are retrieved but the project files do not load correctly; "One or more projects in the solution were not loaded correctly. Please see Output Window for more detials". The Output when has a message for every project that says: "There is an error in XML document (2, 2).". I tried to right-click the project and Reload Project, but it gives the same XML document (2,2) error message. When I use version control to Update Solution to Specific Version (and choose the prior working version), the project files still say "(unavailable)" but when I choose Reload Project the project then loads correctly.
I would like to know how to fix the files in VS2015. And then ultimately I would like to make this work so that both VS2017 and VS2015 can make changes to the solution files (Projects .RPTPROJ, Datasource .RDS, Report .RDL, and so forth).
Full Error Message
C:\Users\myUser\Documents\Visual Studio
2015\Projects\SSRS\Project_ssrs2016\Transportation\Transportation.rptproj
: error : There is an error in XML document (2, 2).
Visual Studio Version Info
(edited)
I tried using VS 2017 about 1 year ago. It was working fine for about a week, and then one day the program would suddenly not launch giving me the error message: "Package management initialization failed: Access Denied." According to to people on SO, the is a very common error with VS 2017, but it has been likely been fixed in newer versions: (Package management initialization failed: Access Denied Error when opening Visual Studio 2017)
Some of my colleagues use VS2017, but they don't use it for too many things.
--Mine
Microsoft Visual Studio Community 2015
Version 14.0.25431.01 Update 3
---------------------------------------------
--Collegue 1 (did the SSRS Project upgrade)
Microsoft Visual Studio Professional 2017
Version 15.5.6
--Colleage 2 (also uses VS2015, but in the future will probably start using VS2017 more frequently)
Microsoft Visual Studio Professional 2017
Version 15.7.1
|--VS Extension-- || VS2015 || VS2015 updated || VS2017 (upgraded SSRS) |
| Data Tools || 14.0.61021.0 || 14.0.61707.300 || 15.1.61710.120 |
| Analysis Services || 13.0.1701.8 || 14.0.806.134 || 14.0.1016.244 |
| Integration Services || 13.0.1601.5 || 14.0.800.90 || 14.0.3002.92 |
| Reporting Services || 13.0.1701.8 || 14.0.806.134 || 14.0.1016.233 |
Transportation.rptproj
VS2015 ORIG
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ToolsVersion="2.0">
<State>$base64$PFNvdXJjZUNvbnRyb2xJbmZvIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOmRkbDI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yIiB4bWxuczpkZGwyXzI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yLzIiIHhtbG5zOmRkbDEwMF8xMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZX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CiAgPFByb2plY3ROYW1lPjwvUHJvamVjdE5hbWU+DQogIDxBdXhQYXRoPjwvQXV4UGF0aD4NCiAgPExvY2FsUGF0aD48L0xvY2FsUGF0aD4NCiAgPFByb3ZpZGVyPjwvUHJvdmlkZXI+DQo8L1NvdXJjZUNvbnRyb2xJbmZvPg==</State>
<DataSources>
<ProjectItem>
<Name>Gmenu.rds</Name>
<FullPath>Gmenu.rds</FullPath>
</ProjectItem>
</DataSources>
<DataSets>
<ProjectItem>
<Name>listWarehouse.rsd</Name>
<FullPath>listWarehouse.rsd</FullPath>
</ProjectItem>
</DataSets>
<Reports>
<ProjectItem>
<Name>Daily Yum Products Daily Traffic Report.rdl</Name>
<FullPath>Daily Yum Products Daily Traffic Report.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Load Comment Report.rdl</Name>
<FullPath>Load Comment Report.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Load Planning Worksheet.rdl</Name>
<FullPath>Load Planning Worksheet.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Loads Under Utilized Exceptions.rdl</Name>
<FullPath>Loads Under Utilized Exceptions.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Orders for Load Building.rdl</Name>
<FullPath>Orders for Load Building.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Transportation Order History.rdl</Name>
<FullPath>Transportation Order History.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Weekly Loads Shipped Detail.rdl</Name>
<FullPath>Weekly Loads Shipped Detail.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Weekly Yum Products Daily Traffic Report.rdl</Name>
<FullPath>Weekly Yum Products Daily Traffic Report.rdl</FullPath>
</ProjectItem>
</Reports>
<Configurations>
<Configuration>
<Name>Debug</Name>
<Platform>Win32</Platform>
<Options>
<OutputPath>bin\Debug</OutputPath>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<TargetServerURL>http://gcod049/ReportServer</TargetServerURL>
<TargetFolder>/Transportation</TargetFolder>
<TargetDataSourceFolder>/Data Sources/01-DEV</TargetDataSourceFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
</Options>
</Configuration>
<Configuration>
<Name>DebugLocal</Name>
<Platform>Win32</Platform>
<Options>
<OutputPath>bin\DebugLocal</OutputPath>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<TargetServerURL>http://localhost/reportserver</TargetServerURL>
<TargetFolder>Transportation</TargetFolder>
<TargetDataSourceFolder>Data Sources</TargetDataSourceFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
</Options>
</Configuration>
<Configuration>
<Name>Release</Name>
<Platform>Win32</Platform>
<Options>
<OutputPath>bin\Release</OutputPath>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<TargetServerURL>http://localhost/reportserver</TargetServerURL>
<TargetFolder>Transportation</TargetFolder>
<TargetDataSourceFolder>Data Sources</TargetDataSourceFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
</Options>
</Configuration>
</Configurations>
</Project>
VS2017 UPGRADE
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<FullPath>Debug</FullPath>
<OutputPath>bin\Debug</OutputPath>
<ErrorLevel>2</ErrorLevel>
<OverwriteDatasets>False</OverwriteDatasets>
<OverwriteDataSources>False</OverwriteDataSources>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<Platform>Win32</Platform>
<TargetReportFolder>/Transportation</TargetReportFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetDatasourceFolder>/Data Sources/01-DEV</TargetDatasourceFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
<TargetServerURL>http://gcod049/ReportServer</TargetServerURL>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'DebugLocal' ">
<FullPath>DebugLocal</FullPath>
<OutputPath>bin\DebugLocal</OutputPath>
<ErrorLevel>2</ErrorLevel>
<OverwriteDatasets>False</OverwriteDatasets>
<OverwriteDataSources>False</OverwriteDataSources>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<Platform>Win32</Platform>
<TargetReportFolder>Transportation</TargetReportFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetDatasourceFolder>Data Sources</TargetDatasourceFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
<TargetServerURL>http://localhost/reportserver</TargetServerURL>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<FullPath>Release</FullPath>
<OutputPath>bin\Release</OutputPath>
<ErrorLevel>2</ErrorLevel>
<OverwriteDatasets>False</OverwriteDatasets>
<OverwriteDataSources>False</OverwriteDataSources>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<Platform>Win32</Platform>
<TargetReportFolder>Transportation</TargetReportFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetDatasourceFolder>Data Sources</TargetDatasourceFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
<TargetServerURL>http://localhost/reportserver</TargetServerURL>
</PropertyGroup>
<PropertyGroup>
<State>$base64$PFNvdXJjZUNvbnRyb2xJbmZvIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOmRkbDI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yIiB4bWxuczpkZGwyXzI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbH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2Q9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vRGF0YVdhcmVob3VzZS9EZXNpZ25lci8xLjAiPg0KICA8RW5hYmxlZD5mYWxzZTwvRW5hYmxlZD4NCiAgPFByb2plY3ROYW1lPjwvUHJvamVjdE5hbWU+DQogIDxBdXhQYXRoPjwvQXV4UGF0aD4NCiAgPExvY2FsUGF0aD48L0xvY2FsUGF0aD4NCiAgPFByb3ZpZGVyPjwvUHJvdmlkZXI+DQo8L1NvdXJjZUNvbnRyb2xJbmZvPg==</State>
<DataSources>#(DataSource)</DataSources>
<DataSets>#(DataSet)</DataSets>
<Reports>#(Report)</Reports>
</PropertyGroup>
<ItemGroup>
<DataSet Include="listWarehouse.rsd" />
</ItemGroup>
<ItemGroup>
<DataSource Include="Gmenu.rds" />
</ItemGroup>
<ItemGroup>
<Report Include="Daily Yum Products Daily Traffic Report.rdl" />
<Report Include="Load Comment Report.rdl" />
<Report Include="Load Planning Worksheet.rdl" />
<Report Include="Loads Under Utilized Exceptions.rdl" />
<Report Include="Orders for Load Building.rdl" />
<Report Include="Transportation Order History.rdl" />
<Report Include="Weekly Loads Shipped Detail.rdl" />
<Report Include="Weekly Yum Products Daily Traffic Report.rdl" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Reporting Services\Microsoft.ReportingServices.MSBuilder.targets" />
</Project>
I resolved the problem by deleting the MyProjectName.rptproj.user file
Try to delete *.rptproj.rsuser file and reload project. It works for Visual Studio 2019 as well.
Or just create new project and add exsting items (reports, data sources) inside it.
The problem appears to be in the .suo and .csproj.user files that are left over from previous versions of Visual Studio. Delete these files and then the SSRS project should load successfully in VS2017.
Answers
I would like to know how to fix the files in VS2015:
If you can retrieve the older 2015 .RPTPROJ project files (from source control) and overwrite the new 2017 project files, then the rest of the files will work. For example-- AnkhSvn undo/revert a commit.
_
Ultimately, I would like to make this work so that both
VS2017 and VS2015 can make changes to the solution files (Projects
.RPTPROJ, Datasource .RDS, Report .RDL, and so forth):
Team development in SSRS with VS2015 and VS2017 is not possible (best as I can tell), due to project file XLM structure differences seen in my question post. We chose to revert to the VS2015 format, and get our team on the 2015 version of VS and SSDT. I have experienced some serious bugs with VS2017 (Package management initialization failed: Access Denied Error when opening Visual Studio 2017), so we are going to put that upgrade off for now.
It is now possible to open such projects with Visual Studio 2019 using the following extension:
Microsoft Reporting Services Projects
However, I met the same error as mentioned in the original post, which prevented loading the projects the first time around. The solution was to remove the whole project locally and re-fetch it from the source control - apparently some local temporary files are troublesome.
Just uninstall a visual new or recent visual studio update, A NEW .net update or the new version of vs. That is what creates that problem.
For a project I'm trying to create a set of development templates that hopefully can work on Visual Studio 2012, 2013 and 2015.
Google helped me a little bit and suggested to read this;
vsixmanifest for all: VS 2010, 2012 and 2013
This implies to me that I should try to use Version 1.0.0 schema instead of 2.0.0 is this assumption correct ?
Other questions, do I need to specify all the product Editions of a version or is a single on enough ?
And does anyone have an example how to add 2-3 itemTemplates ?
This is what I currently have...
<?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="a452ff57-dc92-4db0-9ae7-9d45eb1cd405">
<Name>My DevelopmentTemplates</Name>
<Author>myName</Author>
<Version>1.0</Version>
<Description xml:space="preserve">Some description for my DevelopmentTemplates</Description>
<Locale>1033</Locale>
<SupportedProducts>
<VisualStudio Version="12.0">
*<!-- are all version required to be specified, or is lowerst enough for all? -->*
<Edition>Community</Edition>
<Edition>Pro</Edition>
<Edition>Premium</Edition>
<Edition>Ultimate</Edition>
<Edition>Enterprise</Edition>
</VisualStudio>
<VisualStudio Version="13.0">
*<!-- are all version required to be specified, or is lowerst enough for all? -->*
<Edition>Community</Edition>
<Edition>Pro</Edition>
<Edition>Premium</Edition>
<Edition>Ultimate</Edition>
<Edition>Enterprise</Edition>
</VisualStudio>
<VisualStudio Version="15.0">
*<!-- are all version required to be specified, or is lowerst enough for all? -->*
<Edition>Community</Edition>
<Edition>Pro</Edition>
<Edition>Premium</Edition>
<Edition>Ultimate</Edition>
<Edition>Enterprise</Edition>
</VisualStudio>
</SupportedProducts>
<SupportedFrameworkRuntimeEdition MinVersion="4.0" />
</Identifier>
<content>
*<!-- how to add multiple ITemplates -->*
</content>
</Vsix>
Version 1.0 schema is required to support VS 2010. As you support VS 2012+, you can use version 2.0 schema.
Lowest edition (Pro) is enough to support all higher editions.
You should specify Visual Studio versions 11.0, 12.00, 14.0 to support VS 2012, 2013, 2015.
How can I add into Setup & Deployment project that I want to the client has more components, like:
Microsoft Chart Controls
Microsoft SQL 2008 Express Edition (not 2005)
etc...
alt text http://img55.imageshack.us/img55/2586/200902021225eu9.png
This options are not in VS 2008, and in the window (image above) it only has a link to "Check Microsoft Update for more Redistributable components" but it goes to a page with 2 "bootstrapper packages" (I don't even know what's this)
any ideas on how to add this to the project instead asking the users to install this manually?
Thank you.
Have a look at the article
Authoring a Custom Bootstrapper Package for Visual Studio 2005
If you locate a folder
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages (VS 2005)
or, for VS 2008,
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages
Each folder under 'Packages' is the prerequisite you see in the list, as shown on your screenshot.
So, if you want to add an application called MyPrereq as a prerequisite, you need to make your own folder 'MyPrereq' under 'Packages'. Then you make a product.xml file similar to this
<?xml version="1.0" encoding="utf-8"?>
<Product ProductCode="MyPrereq" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
<PackageFiles CopyAllPackageFiles="false">
<PackageFile Name="MyPrereq.exe" />
</PackageFiles>
<InstallChecks>
</InstallChecks>
<Commands Reboot="None">
<Command PackageFile="MyPrereq.exe" EstimatedInstallSeconds="90">
<InstallConditions>
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success"/>
<DefaultExitCode Result="Fail" String="GeneralFailure" FormatMessageFromSystem="true" />
</ExitCodes>
</Command>
</Commands>
</Product>
and your package.xml file similar to this
<?xml version="1.0" encoding="utf-8"?>
<Package Name="MyPrereq" Culture="Culture" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
<Strings>
<String Name="Culture">en</String>
<String Name="DisplayName">MyPrereq</String>
<String Name="GeneralFailure">A fatal error occurred. The installation failed.</String>
</Strings>
</Package>
and place these files and your setup package (MyPrereq.exe) in the folder. Check the existing packages as an example to see where to place files.
If you do everything properly, you will be able to see your MyPrereq option in the list of "Choose which prerequisites to install".