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-13 microsoft-graph The type or namespace name ‘QueryOption’ could not be found Starting with Microsoft Graph .NET SDK 5.0, the QueryOption class is no longer used. Instead, query options are set using the requestConfiguration modifier. Let’s take a simple example: If you must use QueryOptions, your only alternative is to downgrade the Microsoft Graph package to a 4.x version.
2023-06-12 dotnet-script How to pass arguments to a dotnet script Learn how to pass arguments to a dotnet script using the -- separator and access them via the Args collection.
2023-06-11 aspnetentity-framework How to fix: dotnet ef not found (dotnet-ef does not exist) Fix the 'dotnet-ef does not exist' / 'dotnet ef command not found' error by installing the EF Core CLI as a global or local .NET tool.
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 csharp How to switch to C# 12 Fix C# 12 language version errors by updating your target framework to .NET 8 or setting LangVersion in your .csproj file.
2023-06-10 csharp What’s new in C# 12 An overview of new features in C# 12, including primary constructors, default lambda parameters, collection expressions, inline arrays, and more.
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…
2023-05-09 csharp C# 12 – Default values for parameters in lambda expressions C# 12 lets you specify default parameter values and params arrays in lambda expressions, just like in methods and local functions.
2023-03-21 csharp C# 11 – Generic attributes Learn how to define and use generic attributes in C# 11, including restrictions on type arguments and common error messages.