-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running dotnet run on a console app has no output #23616
Comments
@zigpot Does this repro with the 6.0.100 SDK and targeting net6.0? I can't reproduce this behavior on windows with either the 6.0 or 5.0 SDK so I'm not sure if it's specific to debian. |
@marcpopMSFT I'm sorry, I haven't opened Github in a while. This behaviour was not specific to Debian as my previous attempt in (if I recalled correctly) Ubuntu 20.04, yielded the same result. And just like you, I wasn't able to reproduce the problem on Windows. Version 6.0.102 targeting net6.0 produces similar behavior, furthermore I specifically am avoiding using version 6 due to another issue I was also experiencing. However, I have just installed via snap the latest/beta which happens to be dotnet SDK version 7.0.0, and the all the problems disappear. |
Thanks for the detailed reply. Would you be able to try the recently released 6.0.200 version? It sounds like it affects linux but not windows and affects 6.0.102 but not 7.0.100. I'm just trying to narrow down where the issue might be. |
Why was this issue closed? It still exists. I can launch the project via the dll, but dotnet run simply terminates with no console output (aside from "using launchsettings.json"). This is for an ASPNET Core webapp. Using NET 3.1 on Ubuntu installed via Snap Was there any solution discovered to this? |
I followed this tutorial https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/run
Operating System: Debian GNU/Linux 11 (bullseye) amd64
As can be seen, running:
inside the project didn't output anything.
here is Program.cs:
and MyApp.csproj:
Surely I can do
and it would run, but that isn't how it was in the tutorial
How can I run this simple program, specifically using
alone?
The text was updated successfully, but these errors were encountered: