C# package for .NET when the project uses .NETFramework 4.6.1

Viewed 41

I am trying to revive an old project (not mine, https://github.com/Cosmik42/BAP) that's written in C#. I am using Visual Studio. The program does not compile due to a dependency with the following package: FastColoredTextBox.

this.fastColoredTextBox1 = new FastColoredTextBoxNS.FastColoredTextBox();

The type or namespace name 'FastColoredTextBoxNS' could not be found (are you missing a using directive or an assembly reference?)

I use the correct version of the .NET framework, as originally compiled (4.6.1).

However, then I use NuGet to install the FastColoredTextBox package, I get the following error.

What am I doing wrong?

NuGet\Install-Package : Could not install package 'FastColoredTextBox.Net5 2.16.26'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. At line:1 char:1 + NuGet\Install-Package FastColoredTextBox.Net5 -Version 2.16.26

0 Answers
Related