Is it possible to use class library written in CORE 6 in another core 6 and/or NET 4.8 framework project

Viewed 1671

I have a class library using core 6.0

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

</Project>

enter image description here

I would like to use this library either in a core 6.0 framework project or in a WPF NET 4.8 framework. so actually, I cant reference the library core 6 in a project written in Net 4.8

I would like to use the same library (same source code) for both environments, how I could resolve my problem, is it possible to use a different configuration Framework for the same source code?

0 Answers
Related