When packaging a project to be deployed it is possible that you'll receive a warning indicating that a prerequisite has not been found for bootstrapping. During the publishing process it will only show up as a warning... not an error, but it is something that needs to be resolved for a complete error free deployment. If you goto the project properties and then click on the Publish tab you can view the prerequisites for your clickonce deployment. If one of your prerequisites is not available it will appear will a yellow icon, and mousing over the item will tell you "Prerequisite could not be found for bootstrapping". In my case the package missing is the Sql Server Compact Edition 3.5.
Alert icon for missing package
The FIX
- Goto C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages and select the package you need for your deployment. Mostly likely you should use the most recent Windows SDK available, at the time of this post it was version 6.0A. This assumes you have correctly installed the dependency on your system. This example is using Windows XP.
- Copy the folder to your visual studio bootstrapping directory. For Visual Studio 2005 the directory is... C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages .
- If you have Visual Studio Open you will need to shut it down and restart it.
- If you then open your project properties you should no longer see the alert, and publishing the project should result in a clean build with no warnings or errors.
Notes
- If you need would like to have two versions of a package available in visual studio you can rename the package folder. In my case I want both sql ce 3.1 and 3.5 available. So I renamed the directories as shown below.
Rename Sql Server CE Bootstrapping Package
Need a fresh perspective on a tough project?
Let’s talk about how RDG can help.