{"id":362,"date":"2014-07-17T14:39:43","date_gmt":"2014-07-17T12:39:43","guid":{"rendered":"http:\/\/dev.flauschig.ch\/wordpress\/?p=362"},"modified":"2014-07-17T14:39:43","modified_gmt":"2014-07-17T12:39:43","slug":"nuget-powershell-execution-policy","status":"publish","type":"post","link":"http:\/\/dev.flauschig.ch\/wordpress\/?p=362","title":{"rendered":"NuGet PowerShell Execution Policy"},"content":{"rendered":"<blockquote><p>.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies<\/p><\/blockquote>\n<p>If you ever worked with NuGet in VisualStudio and faced the error above in the Packet Manager Console &#8211; you might need to set the Execution Policy accordingly.<\/p>\n<p><a title=\"http:\/\/technet.microsoft.com\/en-us\/library\/hh847748.aspx\" href=\"http:\/\/technet.microsoft.com\/en-us\/library\/hh847748.aspx\" target=\"_blank\">http:\/\/technet.microsoft.com\/en-us\/library\/hh847748.aspx<\/a><\/p>\n<p><em>Example<\/em><\/p>\n<pre class=\"lang:ps decode:true\">Set-ExecutionPolicy Unrestricted -scope LocalMachine<\/pre>\n<p><strong>BUT<\/strong> since both versions of PowerShell (x86 \/ x64) will use their own Execution Policy you need to set them in both versions too!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies If you ever worked with NuGet in VisualStudio and faced the error above in the Packet Manager Console &#8211; you might need to set the Execution Policy accordingly. http:\/\/technet.microsoft.com\/en-us\/library\/hh847748.aspx Example Set-ExecutionPolicy Unrestricted -scope LocalMachine BUT since both versions &hellip; <\/p>\n","protected":false},"author":370,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[113,101],"tags":[130,128,104,129],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-against","4":"post-362","6":"format-standard","7":"category-powershell-tools","8":"category-visualstudio","9":"post_tag-executionpolicy","10":"post_tag-nuget","11":"post_tag-powershell","12":"post_tag-visualstudio-2"},"acf":[],"views":1649,"_links":{"self":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/362"}],"collection":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/370"}],"replies":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=362"}],"version-history":[{"count":0,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions"}],"wp:attachment":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}