So today I was working on a Workflow in SharePoint2010 with VS2010. I had deployed and retracted several times while debugging this workflow. When all of a sudden I get this error that makes no sense at all. "The language-neutral solution package was not found" I got this if I was either deploying or retracting the solution. After some digging and playing with power shell I got it to work.
Steps:
- Right Click the solution and select Package
- Open SharePoint Power Management Shell
- Use the following Command: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction "SilentlyContinue"
- Then use : Add-SPSolution -LiteralPath "[PATH and FileName].wsp" -Confirm:$false
- Now go back to VS2101 and you will be able to retract the solution since you have added a solution back into SharePoint.