ERROR WHEN INSTALLING ELASTIC.APM.AspNetCore IN VISUAL STUDIO 2019

Hi I am trying to install the Elastic APM.AspNetCore package, but I get the following error:

Severity Code Description Project File Line Suppression State
Error Could not install package 'Elastic.Apm.AspNetCore 1.11.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', 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.

Elastic.Apm.AspNetCore nuget package is not compatible with .NET Framework 4.6. It's a package to instrument ASP.NET Core and it's compatible with (at current time of writing):

  • .NET Core that implements .NET Standard 2.0
  • .NETCoreApp 3.0
  • .NET 5.0

An ASP.NET Full Framework application running on at least .NET Framework 4.6.1 can be instrumented with Elastic.Apm.AspNetFullFramework nuget package. Please see the documentation for how to configure in the application.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.