With mono you'd compile and run C# code by doing csc test.cs && mono test.exe. How would you do it with the official .NET SDK on Ubuntu?
Depending on what your goal is:
dotnet run - This will build and run your application directlydotnet test - This will build everything and run your unit testsdotnet publish - This will build your application for deploymentdotnet build - This will build your application (for development only). Generally, you don' want to use this: one of the others on this list will be a better way to do what you want. If you want to share this with users, you want dotnet publish instead.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With