-1
I’m developing an introduction material to programming using . NET Core. I have read the documentation regarding the creation and execution of projects for the web, but I haven’t found anything that addresses how to create a console application project and generate a .EXE
.
I figured with the namespace ConsoleApplication
the code would generate an executable, but in fact it creates a .DLL
which can be executed with dotnet programa.dll
.
What should I do for the project to create an executable?
Thank you for your reply, but I don’t understand. I use command prompt to invoke
dotnet new
in the folder where the project will live; how do I choose Console Application as project type?– user57493
You use Visual Studio to write code?
– ManelAcacio
No, for this introductory material project, to be used in low-resource computer labs, I’m going to use Visual Studio Code as an editor. I wanted to tag
vscode
, but I still don’t have enough reputation in this stackoverflow for this.– user57493
I removed the visual-studio tag, no relation to the subject. But I also did not add vscode, because the question is not about Ides, but about how to create the executable application and console, if I understand correctly (I believe that a good answer should not present a solution that works only in an IDE).
– Bacco
Completely ridiculous. This has everything to do with the kind of IDE you obviously have. If working with Visual Studio is one way, with VS Code is another, it is ridiculous a right answer to this question and that does not indicate that with Visual Studio Community (Gratis) it is only clikar new console application and not the other. And answer the question. But I abandon the question since perhaps the only one that answers the question without relying on the IDE is "Doing")
– ManelAcacio