Top ".net-core" questions

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

What's the difference between SDK and Runtime in .NET Core?

I've read many articles, including this one, yet I can't still figure out what's the difference, and they have not …

sdk .net-core runtime
How to use System.Windows.Forms in .NET Core class library

I've created .NET Core class library and try to build it against net40 framework. I want to use Clipboard class …

.net .net-core project.json
Proper way to register HostedService in ASP.NET Core. AddHostedService vs AddSingleton

What is the proper way to register a custom hosted service in ASP.NET Core 2.1? For example, I have a …

c# asp.net-core .net-core dependency-injection asp.net-core-hosted-services
.NET Standard vs .NET Core

I have read about the difference between .NET Standard and .NET Core, but I really don't know what the difference …

.net .net-core .net-standard
.NET Core doesn't know about Windows 1252, how to fix?

This program works just fine when compiled for .NET 4 but does not when compiled for .NET Core. I understand the …

vb.net character-encoding .net-core windows-1252
.NET Core RuntimeIdentifier vs TargetFramework

Can someone explain the purpose of this two in csproj file (VS2017): <TargetFramework>netstandard1.6</TargetFramework> <…

asp.net-core .net-core visual-studio-2017 asp.net-core-webapi runtime-identifier
Dependency injection in ASP.NET Core 2 throws exception

I receive following exception when I try to use custom DbContext in Configure method in Startup.cs file. I use …

c# asp.net-core dependency-injection .net-core asp.net-core-2.0
The following constructor parameters did not have matching fixture data

I'm trying to test my controllers using xUnitbut getting the following error during execution of Customer Controller: "The following constructor …

c# .net unit-testing .net-core xunit
.NET Core: Remove null fields from API JSON response

On a global level in .NET Core 1.0 (all API responses), how can I configure Startup.cs so that null fields …

json serialization .net-core asp.net-core-1.0