Tring to install octopack in silverlight projects, fails with
PM> Install-Package octopack
’OctoPack 3.0.43’ already installed.
Adding ‘OctoPack 3.0.43’ to xxx.
Install-Package : Could not install package ‘OctoPack 3.0.43’. You are trying to install this package into a project that targets ‘Silverlight,Version=v5.0’, but the
package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
Thanks for getting in touch. We haven’t created OctoPack to work in a Silverlight project directly hence why there’s no
Silverlight,Version=5.0 parts to the NuGet package.
It is more typical to use OctoPack to package the application that will serve your Silverlight app to your users. A typical scenario would be to deploy your Silverlight app using an ASP.NET Web Site. In that case you’d install OctoPack into the ASP.NET Web Site project, and use it to package the Web Site.
A couple of things to be aware of:
- You need to make sure the Silverlight app is built and copied into the Web Site
- You may need to create a
.nuspec file to make sure all of the Silverlight files are included in the NuGet package.
We have good help documentation on OctoPack itself including adding a
.nuspec file: http://docs.octopusdeploy.com/display/OD/Using+OctoPack
Hope that helps!
Thank you I will check custom package creation.
Thanks for getting back to me and I hope everything goes smoothly for your deployment.