{"id":555,"date":"2022-05-12T09:47:08","date_gmt":"2022-05-12T08:47:08","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=555"},"modified":"2022-05-12T09:47:09","modified_gmt":"2022-05-12T08:47:09","slug":"file-path-is-too-long","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/issues\/file-path-is-too-long","title":{"rendered":"File path is too long"},"content":{"rendered":"\n<p>When building, particularly for release versions, VS can add a lot of characters to paths with its output files and if you end up with a path over 260 characters you can get build errors caused by the path being too long (file inaccessible etc errors).<\/p>\n\n\n\n<p>A solution is to enable long file path support in windows.  <\/p>\n\n\n\n<h5 class=\"wp-block-heading\">On Windows 10\/11<\/h5>\n\n\n\n<p>Use regedit to alter the following registry key:<\/p>\n\n\n\n<p>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\FileSystem\\LongPathsEnabled<\/p>\n\n\n\n<p>(Type: REG_DWORD) must exist and be set to 1. You will likely need to reboot for the new setting to take effect.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When building, particularly for release versions, VS can add a lot of characters to paths with its output files and if you end up with a path over 260 characters you can get build errors caused by the path being too long (file inaccessible etc errors). A solution is to enable long file path support [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[],"class_list":["post-555","post","type-post","status-publish","format-standard","hentry","category-issues"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=555"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/555\/revisions"}],"predecessor-version":[{"id":556,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/555\/revisions\/556"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}