No .exe generated for .Net Core Project

Hello,

Just found that there is no .exe generated for .net core project.

Binary type is by default as “exe”

%E5%9B%BE%E7%89%87

Open the project in VS 2019, try debug:

%E5%9B%BE%E7%89%87

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.

If built a Net core console app using Visual C#, there is an exe executable there.

%E5%9B%BE%E7%89%87

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.

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.

it’s still an executable, it’s just called .dll. because, Microsoft. so this is “as designd”.