Question

I have created a custom web part, let's call is AppPart, and a custom web part page, let's call it AppPage, in the same solution. I changed the AppPage's Elements.xml so that it automatically contains the AppPart when the Feature is activated. This works excellent for my purposes. My problem is that Visual Studio will only allow me deploy the feature to a Site (site collection) scope and I need to deploy this page to a Web (specific web site) scope. From my understanding, this is possible to do but a configuration change has to be made by hand.

Was it helpful?

Solution

using powershell, specify the web application in the command.

Install-SPSolution -Identity <SolutionName> -WebApplication <URLname>

take a look at this link & do a ctrl+F for "To deploy a solution package to a single Web application by using Windows PowerShell"

http://technet.microsoft.com/en-us/library/cc262995(v=office.14).aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top