xiaoguang
(xiaoguang)
1
Hello,
Just found that there is no .exe generated for .net core project.
Binary type is by default as “exe”

Open the project in VS 2019, try debug:

I am using VS 2019 RC3 with English language pack, but there are not 100% in English.
The chinese mean the system can not find the specific file.
Its always meant to generate a dll. That option probably shouldnt appear in the dropdown.
xiaoguang
(xiaoguang)
3
If built a Net core console app using Visual C#, there is an exe executable there.

So I can copy the exe on U-disk and run it on another computer.
With Oxygene/Remobject C#, Java, Swift, I dont’t know how to…
you can run it using dotnet ConsoleApplication.dll.
I wonder if the exe is new for the v3. I was reading about “default executables” here
I think if your intending to run the console app on another machine you should do “publish” . its in the settings
Thats what I did when I ran a console app in a docker container. The runtime was already installed so dotnet console.dll worked ok.
xiaoguang
(xiaoguang)
5
Thanks for the information.
I tried to set the “Publish” to Yes, there is still no .exe in the folder.
Later I tried to cd to the folder, and run dotnet xxx.dll, works as expect.
mh
(marc hoffman)
6
it’s still an executable, it’s just called .dll. because, Microsoft. so this is “as designd”.