Install-SPSolution: this solution does not contain resources intended for the web application, and cannot be deployed to a specific web application

I have a PowerShell script that deploys about 12 web parts. They are all designed as visual studio 2010 and deployed to SharePoint 2010.

When launching Install-SPSolution for one of my web parts, the following error occurs: Install-SPSolution: this solution does not contain resources dedicated to the web application, and cannot be deployed to a specific web application.

Can someone help me debug this? Each Install-SPSolution command uses -AllWebApplications, and I don’t want to specify a web application directly using -URL. Here is the command that breaks (this is the same command that was used to successfully deploy all 11 other web parts):

Install-SPSolution –Identity PortalSelector.wsp -AllWebApplications -GACDeployment 
+7
powershell sharepoint
source share
2 answers

Wow, this is old. You are probably a PS guru.

For archives / next visitor follow these steps:

Install-SPSolution -Identity PortalSelector.wsp -GACDeployment

or

Install-SPSolution -Identity PortalSelector.wsp -GACDeployment -Confirm: $ false

The latter prevents the confirmation dialog box from appearing.

+12
source share

The event I discovered was the same problem when I started working on sharepoint 2010. This is the solution I found and sharing it can help others

http://programming.cmsstores.com/this-solution-contains-no-resources-scoped-for-a-web-application-sharepoint-wsp-exception/

+2
source share

All Articles