This solution contains no resources scoped for a Web application and cannot be deployed to a .....

来源:互联网 发布:matlab矩阵的取值 编辑:程序博客网 时间:2024/06/06 03:56

Today when i use PowerShell to run Install-SPSolution:

Install-SPSolution –Identity MySolution.wsp -AllWebApplications -GACDeployment

for deploying one solution, it occures the following message:

This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application

 

Resolved:

Option1:

Install-SPSolution –Identity MySolution.wsp -GACDeployment

or

Install-SPSolution –Identity MySolution.wsp -GACDeployment -Confirm:$false

 

Option 2:

Go to Solution Properties, Change Assembly Deployment Target from GlobalAssemblyCache to WebApplication.

原创粉丝点击