G
G
getfield2021-08-10 20:55:12
.NET
getfield, 2021-08-10 20:55:12

How to set up the assembly of a .Net project for 2 frameworks?

I need to set my console project build to either .NET Core 3.0 or .NET Framework 5.0 depending on the settings. How to do it? I had no business with .NET, I understand that I need to somehow configure the project through the .csproj file, but I can’t figure out how to do it at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2021-08-10
@getfield

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>netcoreapp3.0;net5.0</TargetFrameworks>
  </PropertyGroup>
</Project>

https://docs.microsoft.com/en-us/dotnet/standard/f...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question