Eyvind
Eyvind

Reputation: 5271

.NET Core with .NET Framework as TargetFramework

I'm wondering what it means, exactly, when I have a .NET Core console app project that has its TargetFramework property (in the .csproj) set to a version of the full .NET Framework, e.g.

<TargetFramework>net461</TargetFramework>

Upvotes: 15

Views: 7367

Answers (1)

Marc Gravell
Marc Gravell

Reputation: 1063944

If you have <TargetFramework>net461</TargetFramework>, then you don't have a .NET Core console app. You have a .NET Framework app that simply makes use of the newer csproj tweaks in the project file, and which can be easily built with the dotnet command-line tool.

Upvotes: 11

Related Questions