Using C# 7.1 with MSBuild

Nuget packages Microsoft.Net.Compilers nuget package does not work and needn’t to be installed. Set the following project/build settings Set at least C# 7.1 or higher in the Debug and Release build properties. (via: Project menu > [ProjectName] Properties > Build tab > [Advanced] button > Language Version). Setting it to latest does not work. Also … Read more

IWebHost: Calling Run() vs RunAsync()

The default ASP.NET Core templates contain the following Main method: public static void Main(string[] args) { BuildWebHost(args).Run(); } That Run method there is the WebHostExtensions.Run extension method which is implemented like this: public static void Run(this IWebHost host) { host.RunAsync().GetAwaiter().GetResult(); } So this actually calls WebHostExtensions.RunAsync, and just blocks on it. Now, let’s look at … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)