Top ".net-core" questions

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

Startup.cs in a self-hosted .NET Core Console Application

I have a self-hosted .NET Core Console Application. The web shows examples for ASP.NET Core but i do not …

c# console-application .net-core
Routes in ASP.net Core API

I read lot of topic about routes for API in Asp.net core but I cannot make it work. First, …

c# asp.net-core .net-core asp.net-core-webapi asp.net-core-routing
HTTP Error 500.19 when publish .net core project into iis with 0x80070005

I want to publish a sample .net core web application on my pc's IIS manager but I failed. I am …

c# .net-core iis-8 publishing
Where is the PostAsJsonAsync method in ASP.NET Core?

I was looking for the PostAsJsonAsync() extension method in ASP.NET Core. Based on this article, it's available in the …

c# asp.net-core .net-core coreclr
Determine Operating System in .NET Core

How can I determine which operating system my .NET Core app is running on? In the past I could use …

c# .net-core
EF Linq Error after change from dotnet Core 2.2.6 to 3.0.0

I'm trying to upgrade a solution to the new Core Framework 3.0.0. Now I'm having a small issue I don't understand. …

c# .net-core entity-framework-core-3.0
How to run all tests in Visual Studio Code

The latest version of VS Code already provides an easy way of running a single test as pointed on Tyler …

.net visual-studio-code .net-core xunit.net
Dependency Injection with classes other than a Controller class

At this point I'm injecting things into my Controllers with ease, in some cases building my own ResolverServices class. Life …

c# asp.net-core asp.net-core-mvc .net-core
Can WPF applications be run in Linux with .Net Core 3?

Microsoft announced .Net Core 3 comes with WPF and Windows Forms. So can I create a Desktop application for Linux or …

linux wpf .net-core desktop-application .net-core-3.0
dotnet publish doesn´t publish correct appsettings.{env.EnvironmentName}.json

When I issue the following command in the command line: dotnet publish -o "./../output" -c Release The dotnetcli publishes the …

asp.net-core .net-core publish dotnet-cli