I have a SP2013 solution that contains a custom WCF service, custom Timer Job and a Feature Event Reciever. Because of these the solution Assembly Deploying Target is set to GlobalAssemblyCache. The Feature is scoped to Web Application because I want to install it only for a unique WebApplication in the farm.
When I deploy it using Visual Studio 2012, no problem. But when I try to use powershell I get:
Install-SPSolution : This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.
I can't change the deploying target to Web Application because that will break the Custom Timer job and feature event receiver.
Why does deploying through VS work but not through Powershell?
UPDATE The command I'm executing is as follows:
Add-SPSolution C:\MySolution.wsp Install-SPSolution –Identity MySolution..wsp –WebApplication http://sp2013srv/ –GACDeployment -Force