{"id":751,"date":"2020-10-26T19:22:05","date_gmt":"2020-10-26T18:22:05","guid":{"rendered":"https:\/\/wp.bizoir.dk\/?p=751"},"modified":"2020-10-26T19:22:27","modified_gmt":"2020-10-26T18:22:27","slug":"azure-function-v1-publish-directorynotfoundexception-not-found","status":"publish","type":"post","link":"https:\/\/wp.bizoir.dk\/?p=751","title":{"rendered":"Azure Function v1 Publish &#8211; DirectoryNotFoundException not found"},"content":{"rendered":"<p>During a recent migration between Azure tenants, I encountered the dreaded<\/p>\n<p><span style=\"color: #0000ff;\">Unhandled Exception: System.IO.DirectoryNotFoundException: The path `C:\\REPOS\\AzureFunctionsProject\\obj\\Release\\net461\\PubTmp\\Out\\bin` does not exist. Unable to generate Azure Functions extensions metadata file.<\/span><\/p>\n<p>error when I tried to publish an Azure Function to the new tenant. And quite correctly, the &#8216;bin&#8217; folder does not exist.<\/p>\n<p>My &#8220;Microsoft.NET.Sdk.Functions&#8221; Version was &#8220;1.0.24&#8221; and it worked for me to follow the advise below to change that to use version 1.0.26 (by editing the .csproj file directly)<br \/>\nI probably ought to have tried with the newest version of the SDK, but time constraints in the project did not allow that.<\/p>\n<p><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/784557\/cant-publish-azure-function-unable-to-generate-azu.html?page=2&amp;pageSize=10&amp;sort=votes&amp;type=problem\">Cant publish azure function unabe to generate azure function metadata<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>During a recent migration between Azure tenants, I encountered the dreaded Unhandled Exception: System.IO.DirectoryNotFoundException: The path `C:\\REPOS\\AzureFunctionsProject\\obj\\Release\\net461\\PubTmp\\Out\\bin` does not exist. Unable to generate Azure Functions extensions metadata file. error when I tried to publish an Azure Function to the new tenant. And quite correctly, the &#8216;bin&#8217; folder does not exist. My &#8220;Microsoft.NET.Sdk.Functions&#8221; Version was &#8220;1.0.24&#8221; &hellip; <a href=\"https:\/\/wp.bizoir.dk\/?p=751\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Azure Function v1 Publish &#8211; DirectoryNotFoundException not found&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[30],"class_list":["post-751","post","type-post","status-publish","format-standard","hentry","category-guides","tag-azure"],"_links":{"self":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=751"}],"version-history":[{"count":4,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":758,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/751\/revisions\/758"}],"wp:attachment":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}