{"id":8735,"date":"2023-09-29T05:52:27","date_gmt":"2023-09-29T05:52:27","guid":{"rendered":"https:\/\/www.bacancytechnology.com\/qanda\/?p=8735"},"modified":"2023-10-13T06:37:02","modified_gmt":"2023-10-13T06:37:02","slug":"dotnet-command-not-found-in-mac","status":"publish","type":"post","link":"https:\/\/www.bacancytechnology.com\/qanda\/dot-net\/dotnet-command-not-found-in-mac","title":{"rendered":"Dotnet: Command not Found in Mac"},"content":{"rendered":"<p>1. First, check the prerequisites for your MacOS version with your .NET SDK version from the below link: <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/core\/install\/macos\" target=\"_blank\" rel=\"noopener\">Microsoft<\/a><\/p>\n<p>2. Now you have to locate dotnet.exe. It may be in one of the below paths:<\/p>\n<p><mark>\/usr\/local\/share\/dotnet\/dotnet <\/mark><br \/>\nOR<br \/>\n<mark>\/usr\/local\/share\/dotnet\/x64\/dotnet ( for newer versions)<\/mark><\/p>\n<p>3. After locating dotnet.exe, you have to create a new symbolic link to create a new shortcut link to that dotnet.exe file in the usr\/local\/bin folder. For that, you can run the below command in the terminal:<\/p>\n<p><mark>ln -s \/usr\/local\/share\/dotnet\/dotnet \/usr\/local\/bin\/<\/mark><br \/>\nOR<br \/>\n<mark>ln -s \/usr\/local\/share\/dotnet\/x64\/dotnet \/usr\/local\/bin\/<\/mark><\/p>\n<p>Select the command as per your dotnet.exe location.<\/p>\n<p>4. If you find this error <strong>&#8220;\/usr\/local\/bin\/\/dotnet: File exists&#8221;<\/strong> that means the symbolic link is already there but it might be broken. For that you have to delete that from \/usr\/local\/bin\/.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. First, check the prerequisites for your MacOS version with your .NET SDK version from the below link: Microsoft 2. Now you have to locate dotnet.exe. It may be in one of the below paths: \/usr\/local\/share\/dotnet\/dotnet OR \/usr\/local\/share\/dotnet\/x64\/dotnet ( for newer versions) 3. After locating dotnet.exe, you have to create a new symbolic link to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8830,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[20],"tags":[],"class_list":["post-8735","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dot-net"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/8735"}],"collection":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/comments?post=8735"}],"version-history":[{"count":1,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/8735\/revisions"}],"predecessor-version":[{"id":8736,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/8735\/revisions\/8736"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media\/8830"}],"wp:attachment":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media?parent=8735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/categories?post=8735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/tags?post=8735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}