Tag: dotnet
96 posts · Page 10 of 10
2023-08-29 dotnet-scriptdotnet
How to install dotnet script
dotnet script enables you to run C# scripts (.CSX) from the .NET CLI. The only requirement is to have .NET 6 or newer installed on your machine. You can use the following command to install dotnet-script globally: Then to execute a script file you simply call dotnet script <file_path> like in the example below: How…
2023-08-11 csharpdotnet
C# How to wait for a process to end?
You can use the WaitForExit method to wait for the process to complete. Your code will wait synchronously for the process to finish, then it will resume execution. Let’s look at an example: The code above will start a new cmd.exe process, and execute the timeout 5 command. The process.WaitForExit() call will force your program…
2023-08-06 dotnetdotnet-8
.NET 8 – JSON serialize property names using snake case and kebab case
Learn how to use the new snake_case and kebab-case JSON naming policies introduced in .NET 8 with System.Text.Json.
2023-06-14 dotnet
dotnet new api -aot: ‘-aot’ is not a valid option
Fix the '-aot is not a valid option' error by using the correct double-hyphen syntax: dotnet new api --aot.
2023-06-11 csharpdotnet
How to start programming with C#
A beginner's guide to getting started with C# programming, from setting up Visual Studio to writing your first program and finding learning resources.
2023-06-10 dotnetdotnet-8
What’s new in .NET 8
.NET 8 was released on November 14, 2023 as an LTS (Long Term Support) version, meaning it will continue to receive support, updates, and bug fixes for at least three years from its release date. As usual, .NET 8 brings support for a new version of the C# language, namely C# 12. Check out our dedicated page…