{"id":7548,"date":"2014-11-11T15:18:51","date_gmt":"2014-11-11T15:18:51","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/fixing-could-not-load-file-or-assembly-error-for-cks-dev-copy-to-sharepoint-root-command\/"},"modified":"2016-07-28T10:55:50","modified_gmt":"2016-07-28T10:55:50","slug":"fixing-could-not-load-file-or-assembly-error-for-cks-dev-copy-to-sharepoint-root-command","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/fixing-could-not-load-file-or-assembly-error-for-cks-dev-copy-to-sharepoint-root-command\/","title":{"rendered":"Fixing &ldquo;Could not Load File or Assembly&rdquo; Error for CKS Dev Copy to SharePoint Root Command"},"content":{"rendered":"<p>I&#8217;ve got a SharePoint solution containing a standard SharePoint solution project and a SharePoint App project.&#160; While trying to use CKS Dev to deploy mapped files for the standard SharePoint solution using context menu command <strong>Quick Deploy (CKSDev) &gt; Copy to SharePoint Root<\/strong> I got the following error:<\/p>\n<p>Could not load file or assembly &#8216;AssemblyName.dll&#8217; or one of its dependencies.&#160; The system cannot find the file specified.<\/p>\n<p>Apparently CKS dev looks at all your SharePoint projects and attempts to load up the DLLs, even if your projects is a SharePoint App.&#160; Unfortunately, SharePoint App projects do not compile into a DLL (because that would defeat the purpose).&#160; CKS will probably fix this issue eventually, but if you encounter the error you can &#8220;trick&#8221; CKS dev into working by copying a DLL into your SharePoint App&#8217;s bin\\debug\\ folder and renaming the DLL to match the name of your project.&#160; CKS dev will then work as expected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve got a SharePoint solution containing a standard SharePoint solution project and a SharePoint App project.&#160; While trying to use CKS Dev to deploy mapped files for the standard SharePoint solution using context menu command Quick Deploy (CKSDev) &gt; Copy to SharePoint Root I got the following error: Could not load file or assembly &#8216;AssemblyName.dll&#8217;&#8230;&hellip;<\/p>\n","protected":false},"author":46738,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[],"class_list":["post-7548","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/46738"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=7548"}],"version-history":[{"count":3,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7548\/revisions"}],"predecessor-version":[{"id":42437,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7548\/revisions\/42437"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=7548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=7548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=7548"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=7548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}