Error opening source code Ms Visual Studio

Hello,

when I open the source code from c:\Program Files (x86)\FastReports\FastReport.Net\Sources\FastReport\ with the latest version of Visual Studio I get this error:

Your project does not reference ".NETFramework,Version=v4.0" framework. Add a reference to ".NETFramework,Version=v4.0" in the "TargetFrameworks" property of your project file and then re-run NuGet restore.

But my Target framework is already set to .NET Framwork 4. Anyone knows how to fix it?

Comments

  • Hello!

    Please install the .NET Framework 4.x / 4.8 targeting packs via the Visual Studio Installer (under the ‘Individual components’ tab). For older net40 versions, you may need the .NET Framework 4.5+ targeting pack or to update the `TargetFrameworks` in your local copy of the .csproj file, for example, to `net472;net8.0-windows`.

    Before building, run ‘Restore NuGet Packages’ (or ‘dotnet restore’) on the solution.

This discussion has been closed.