{"id":3194,"date":"2023-01-10T21:29:49","date_gmt":"2023-01-11T02:29:49","guid":{"rendered":"https:\/\/blog.jonesling.us\/?p=3194"},"modified":"2023-01-19T17:13:39","modified_gmt":"2023-01-19T22:13:39","slug":"the-framework-microsoft-netcore-app-version-6-0-0-was-not-found","status":"publish","type":"post","link":"https:\/\/blog.jonesling.us\/?p=3194","title":{"rendered":"The framework &#8216;Microsoft.NETCore.App&#8217;, version &#8216;6.0.0&#8217; was not found."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">New Linux box, old home directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Attempting to execute <code>dotnet ef database update<\/code> repeatedly failed with the error, &#8220;<strong>The framework &#8216;Microsoft.NETCore.App&#8217;, version &#8216;6.0.0&#8217; was not found<\/strong>.&#8221; Individual dotnet commands (<code>dotnet --version<\/code>, <code>dotnet build<\/code>, etc) were working, which became very confusing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google was not my friend today, the error as a search term produced lots of noise, some issues from github that indicated old bugs, and red herrings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I finally stumbled across the problem: the value of the environmental variable <code>DOTNET_ROOT<\/code> was wrong.  The value was <code>\/opt\/dotnet-sdk-bin-5.0<\/code>, but the installed version was 6.0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Version 5.0 <em>had<\/em> been installed initially, but I upgraded it during the same login session.  While <code>\/etc\/env.d\/90dotnet-sdk-bin-6.0<\/code> was installed properly, and used the correct value, it would not take effect until I logged out and\/or rebooted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Shame on Microsoft for their terrible, uninformative errors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>New Linux box, old home directory. Attempting to execute dotnet ef database update repeatedly failed with the error, &#8220;The framework &#8216;Microsoft.NETCore.App&#8217;, version &#8216;6.0.0&#8217; was not found.&#8221; Individual dotnet commands (dotnet &#8211;version, dotnet build, etc) were working, which became very confusing. Google was not my friend today, the error as a search term produced lots of &hellip; <a href=\"https:\/\/blog.jonesling.us\/?p=3194\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;The framework &#8216;Microsoft.NETCore.App&#8217;, version &#8216;6.0.0&#8217; was not found.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[151,750,791,83],"class_list":["post-3194","post","type-post","status-publish","format-standard","hentry","category-linux","tag-dad-needs-to-stop-bringing-work-home","tag-dotnet","tag-error-messages","tag-linux"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4o3FW-Pw","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/3194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3194"}],"version-history":[{"count":2,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/3194\/revisions"}],"predecessor-version":[{"id":3197,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/3194\/revisions\/3197"}],"wp:attachment":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}