Top ".net-core" questions

.NET Core is an open-source successor of the .NET Framework.

How to instantiate a DbContext in EF Core

I have setup .net core project and db context also. But i cant start using dbContext yet due this error- "…

c# asp.net-core .net-core entity-framework-core
Return View as String in .NET Core

I found some article how to return view to string in ASP.NET, but could not covert any to be …

c# asp.net razor asp.net-core .net-core
Encrypted configuration in ASP.NET Core

With web.config going away, what is the preferred way to store sensitive info (passwords, tokens) in the configurations of …

asp.net-mvc asp.net-core asp.net-core-mvc .net-core
How to extract a list from appsettings.json in .net core

I have an appsettings.json file which looks like this: { "someSetting": { "subSettings": [ "one", "two", "three" ] } } When I build my configuration …

c# asp.net-core .net-core
Error NU1605 Detected package downgrade

I am experiencing the following NU1605 dependency errors in my netcoreapp2.0 console application: NU1605 Detected package downgrade: System.Diagnostics.Debug …

.net visual-studio-2017 .net-core nuget .net-core-2.0
Is ApiController deprecated in .NET Core

Is it true that "ApiController will get deprecated in .NET Core"? Asking since I'm planning to use it in new …

c# asp.net-mvc asp.net-web-api asp.net-core .net-core
dotnet run OR dotnet watch with development environment from command line?

I am using dotnet watch command to run asp.net core project. However, by default, it is picking up the …

asp.net-core .net-core dotnet-cli .net-core-rc2
Upload files and JSON in ASP.NET Core Web API

How can I upload a list of files (images) and json data to ASP.NET Core Web API controller using …

c# file-upload asp.net-core .net-core
Looking for simple rules-engine library in .NET

Does anyone know of a good .NET library rules library (ideally open-source)? I need something that can do nested logic …

c# .net .net-core logic rule-engine
An assembly specified in the application dependencies manifest (...) was not found

I upgraded Microsoft.AspNetCore from 2.0.3 to 2.0.5 and my WebAPI project, although running successfully locally, fails to start in production (IIS). …

asp.net-core .net-core asp.net-web-api2 upgrade nuget-package