Top ".net-core" questions

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

How to seed in Entity Framework Core 2?

I have two tables and I want to fill it using seeds. I use ASP.NET Core 2 in Ubuntu. How …

c# .net-core entity-framework-core
Entity framework EF.Functions.Like vs string.Contains

I was reading the announcement of entity framework core 2.0 https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-entity-framework-core-2-0/ It says that …

c# entity-framework .net-core entity-framework-core
Cannot find command 'dotnet ef'?

I am using .NET core 2.0 on Arch VScode and trying to get EF tools to work but I keep getting …

c# entity-framework asp.net-core .net-core csproj
Manipulating images with .NET Core

I have updated my project from .NET 4.5 to .NET Core (with ASP.NET Core). I had some very simple code …

c# asp.net-core .net-core system.drawing
How to compile .NET Core app for Linux on a Windows machine

I'm developing a .NET Core app on a Windows 10 machine (with Visual Studio 2015 update 3 + Microsoft .NET Core 1.0.1 VS 2015 Tooling Preview 2) …

c# linux .net-core asp.net-core-webapi
Configuring Serilog RollingFile with appsettings.json

I'm trying to configure Serilog for a .NET Core project. Here's what I have in my appsettings.json: "Serilog": { "MinimumLevel": "…

c# serilog .net-core
ASPNETCoreModule not installed with .NET Core SDK

I installed VS 2017 along with .NET Core SDK on Windows 10. But it did not install ASPNETCoreModule as shown in figure 2 …

iis asp.net-core .net-core visual-studio-2017 iis-10
String.Format way to format Currency without Cents

I'm displaying currency using the current method String.Format("{0:C}", item.DonationAmount) Which outputs like $10.00 We will be dealing with …

.net-core string-formatting
How do you multi-target a .NET Core class library with csproj?

When .NET Core still used the project.json format, you could build a class library targeting multiple frameworks (e.g. …

c# msbuild .net-core visual-studio-2017 csproj
'IHostingEnvironment' is obsolete

I updated my ASP.NET Core project to .NET Core v3.0.0-preview3, and I now get: Startup.cs(75,50,75,69): warning CS0618: …

asp.net-core .net-core asp.net-core-3.0