{"id":1914,"date":"2018-04-21T17:37:51","date_gmt":"2018-04-21T21:37:51","guid":{"rendered":"http:\/\/www.ObiOberoi.com\/?p=1573"},"modified":"2018-04-21T17:37:51","modified_gmt":"2018-04-21T21:37:51","slug":"how-to-create-an-exe-using-net-core-console-app-2","status":"publish","type":"post","link":"https:\/\/obioberoi.com\/?p=1914","title":{"rendered":"How to create an .EXE using .NET Core Console App"},"content":{"rendered":"<p>In the previous exercise, we learnt how to publish and execute a .NET Core Console App! In case you want to review that exercise, you can access it from <a href=\"http:\/\/www.obioberoi.com\/2018\/04\/14\/how-to-publish-and-execute-a-net-core-console-app\/\">here<\/a>.<\/p>\n<p>In this exercise, we&#8217;ll look at a quick way to turn a .DLL to an .EXE. Please note, when you build a .NET Core console app, it compiles the app to a DLL.<\/p>\n<p>Here&#8217;s I&#8217;ll show you how to create an EXE:<\/p>\n<ul>\n<li>Go to the command prompt and navigate to the location where the project is stored<\/li>\n<li>Issue the following command: <strong>dotnet build -r win10-x64<\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1580\" src=\"\/wp-content\/uploads\/2018\/05\/Exe-1.jpg\" alt=\"\" width=\"1098\" height=\"320\" \/>You&#8217;ll find the .EXE in the folder i.e. <em>Win10-x64<\/em>. See image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1581\" src=\"\/wp-content\/uploads\/2018\/05\/ExeFileStructure-1.jpg\" alt=\"\" width=\"619\" height=\"197\" \/><\/p>\n<p>Hope this was helpful. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous exercise, we learnt how to publish and execute a .NET Core Console App! In case you want to review that exercise, you can access it from here. In this exercise, we&#8217;ll look at a quick way to &hellip; <a href=\"https:\/\/obioberoi.com\/?p=1914\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1914","post","type-post","status-publish","format-standard","hentry","category-net"],"_links":{"self":[{"href":"https:\/\/obioberoi.com\/index.php?rest_route=\/wp\/v2\/posts\/1914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/obioberoi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/obioberoi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/obioberoi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/obioberoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1914"}],"version-history":[{"count":0,"href":"https:\/\/obioberoi.com\/index.php?rest_route=\/wp\/v2\/posts\/1914\/revisions"}],"wp:attachment":[{"href":"https:\/\/obioberoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obioberoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obioberoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}