Scaffold-DbContext (EF Core Tools) throws ‘Instance failure’ exception

I think you need to change your instance name. For example : Scaffold-DbContext “Server=PC\SQLEXPRESS;Database=***;User ID=sa;Password=****” Microsoft.EntityFrameworkCore.SqlServer -OutputDir model So your instance in this case is : PC\\SQLEXPRESS. This instance should be like this : .\SQLEXPRESS

Blazor template with menu across the top

The sidebar in Blazor isn’t something special. If you check MainLayout.razor you’ll see a reference to a NavMenu component with the sidebar class : <div class=”sidebar”> <NavMenu /> </div> If you open NavMenu.razor you’ll see it’s just a Bootstrap Navbar, conveniently packed in a reusable component. Update Blazor uses Bootstrap which makes the rest of … Read more

Has something replaced bundleconfig.json in ASP.NET Core MVC 2.1?

bundleconfig.json was removed from the 2.1 templates because it relied on a tool not created or supported by Microsoft. See https://github.com/aspnet/templating/issues/326. This file [bundleconfig.json] is for configuring the various incantations of the BundlerMinifier tool, which isn’t actually shipped in the templates, or supported by Microsoft. The ASP.NET Core team has replaced bundleconfig with “libman”. Rightclick … Read more

Visual studio 2017 Update 3 – The SDK ‘Microsoft.NET.Sdk.Web’ specified could not be found

I stumbled upon this issue a number of times recently. Here’s a brief list of the workaround I found (one of them always worked until now): Install the right .NET Core SDK: Either the latest version or the version required by your project. Clean-up obsolete .NET Core versions: Go to Control Panel and uninstall previous … Read more

“Initialize interactive with Project” is missing for .Net Core Projects in Visual Studio 2019

Does anyone knows if there is a technical limitation and therefore this feature is simply not feasible for .NET Core? I’m afraid the answer is negative. So far this option only supports for .net framework, and not for .net core project and .net standard project temporarily. To get this option available for .net core projects … Read more

How can I uninstall dotnet core from macOS Sierra

To uninstall dotnet core from macOS: download dotnet-uninstall-pkgs.sh from https://github.com/dotnet/sdk/blob/main/scripts/obtain/uninstall/dotnet-uninstall-pkgs.sh make dotnet-uninstall-pkgs.sh executable execute dotnet-uninstall-pkgs.sh as root (requires superuser privileges to run). curl -O https://raw.githubusercontent.com/dotnet/sdk/main/scripts/obtain/uninstall/dotnet-uninstall-pkgs.sh chmod u+x dotnet-uninstall-pkgs.sh sudo ./dotnet-uninstall-pkgs.sh