Creation of stand-alone console applications Net Core
Answered
Windows 10. I created the default console application in Rider. As a result, dll was created, but I could not find the exe. The following questions arose:
1. Is it possible to create an exe file in Rider?
2. How to make it so that you could transfer the console program NET core to any PC and run it on it without installing the NET core, and just transfer the necessary libraries together with the exe file?
3. Is there a good Russian-language forum on Rider on any resource? I read normally in English, but it's hard for me to build offers.
Please sign in to leave a comment.
Hi!
Thanks for contacting us!
It is possible and it depends on your project configuration. By default dotnet core generates .dll file instead of .exe. And you can run it with command bellow on any OS
if you'd like to generate an
.exefile produced duringdotnet build, you need to specify a target platform in MSBuild property RuntimeIdentifier in .csproj file.After that rebuild your console project. You will find an exe file in <prj folder>/bin/Debug/<netcoreapp folder>/win10-x64.
To make a standalone application you need to publish it. In Rider you may do it with menu "Build | Publish Solution". A self-contained app will be located in <prj folder>/bin/Debug/<netcoreapp folder>/win10-x64/publish.
Here is a good article describing a common process (and the Russian version https://habr.com/post/311520/).
Unfortunately, we do not have a Russian-language forum or blog, but sometimes good articles appear for example on habr.com.
You also can contact us in Russian by creating a request in our support form (here).
I hope, this information helps. If you have any other questions, please, feel free to let me know.
Sofya.