When I update a solution in 2010, I use the following PowerShell Script with the
Update-SPSolution -Identity MySolution.wsp -LiteralPath "E:\Install\MySolution\1.3.25\MySolution.wsp" -GACDeployment -CASPolicies
When I check my solution status in Central Admin, it gives no clue if the
-CASPolicies did anything even after deployment. Before and after looks exactly the same following this URL http://CentralAdminUrl.com/_admin/SolutionStatus.aspx?ItemName=mysolution%2Ewsp&Lcid=0
Contains Global Assembly: Yes
Contains Code Access Security Policy: No
Specifically I find the
-CASPolicies attribute hard to understand what it's for and under what circumstances? Technet has the following to say on
Specifies that Code Access Security (CAS) policies can be deployed for the new SharePoint solution.
Not very enlightening, so I'd like to know when I should use it and when not to.