punkouter
punkouter

Reputation: 5366

Can Application Insights be added to a .NET 4.0 DLL ?

It says it is not supported. The DLL is used by Encompass 360 product. It would be nice to have Application Insights on all my projects but they are class libraries.

Upvotes: 0

Views: 1353

Answers (2)

John Gardner
John Gardner

Reputation: 25156

what says it is not supported? do you mean from the Application Insights built-in support in Visual Studio?

In that case, yes, we don't know how to auto add it, wire it up like we would for the other project types.

However, you can always just add the base

https://www.nuget.org/packages/Microsoft.ApplicationInsights/1.1.0

package to your project yourself from nuget package manager / manage nuget packages in VS. You'll have to do the manual hookups yourself to set your instrumentation key, but the package itself fully supports .net assemblys.

Upvotes: 1

Anastasia Black
Anastasia Black

Reputation: 1900

4.0 is supported. If you open Application Insights API nuget you will see that it supports 4.0, 4.5 and win phone target frameworks. Beta version of this nuget as well supports dnxcore 5.0.

Upvotes: 2

Related Questions