remove AspNetCore net461 (#2415)
This commit is contained in:
Родитель
fb0e8a4d94
Коммит
e2731fee82
|
@ -7,9 +7,7 @@
|
|||
using Microsoft.ApplicationInsights.AspNetCore.Extensions;
|
||||
using Microsoft.ApplicationInsights.AspNetCore.TelemetryInitializers;
|
||||
using Microsoft.ApplicationInsights.Extensibility;
|
||||
#if NETSTANDARD2_0
|
||||
using Microsoft.ApplicationInsights.Extensibility.EventCounterCollector;
|
||||
#endif
|
||||
using Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<AssemblyName>Microsoft.ApplicationInsights.AspNetCore</AssemblyName>
|
||||
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netstandard2.0</TargetFrameworks>
|
||||
|
||||
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0</TargetFrameworks>
|
||||
<DefineConstants>$(DefineConstants);AI_ASPNETCORE_WEB;</DefineConstants>
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
using Microsoft.ApplicationInsights.DependencyCollector;
|
||||
using Microsoft.ApplicationInsights.Extensibility;
|
||||
|
||||
#if NETSTANDARD2_0
|
||||
using Microsoft.ApplicationInsights.Extensibility.EventCounterCollector;
|
||||
#endif
|
||||
|
||||
using Microsoft.ApplicationInsights.Extensibility.Implementation.ApplicationId;
|
||||
using Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing;
|
||||
|
@ -343,9 +341,7 @@
|
|||
services.AddSingleton<ITelemetryModule, QuickPulseTelemetryModule>();
|
||||
|
||||
AddAndConfigureDependencyTracking(services);
|
||||
#if NETSTANDARD2_0
|
||||
services.AddSingleton<ITelemetryModule, EventCounterCollectionModule>();
|
||||
#endif
|
||||
}
|
||||
|
||||
private static void AddTelemetryChannel(IServiceCollection services)
|
||||
|
|
|
@ -44,13 +44,11 @@
|
|||
/// </summary>
|
||||
public bool EnableDependencyTrackingTelemetryModule { get; set; } = true;
|
||||
|
||||
#if NETSTANDARD2_0
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether EventCounterCollectionModule should be enabled.
|
||||
/// Defaults to <value>true</value>.
|
||||
/// </summary>
|
||||
public bool EnableEventCounterCollectionModule { get; set; } = true;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether telemetry processor that controls sampling is added to the service.
|
||||
|
@ -184,10 +182,8 @@
|
|||
target.EnableAppServicesHeartbeatTelemetryModule = this.EnableAppServicesHeartbeatTelemetryModule;
|
||||
target.EnableAzureInstanceMetadataTelemetryModule = this.EnableAzureInstanceMetadataTelemetryModule;
|
||||
target.EnableDiagnosticsTelemetryModule = this.EnableDiagnosticsTelemetryModule;
|
||||
|
||||
#if NETSTANDARD2_0
|
||||
target.EnableEventCounterCollectionModule = this.EnableEventCounterCollectionModule;
|
||||
#endif
|
||||
|
||||
#if AI_ASPNETCORE_WEB
|
||||
target.EnableAuthenticationTrackingJavaScript = this.EnableAuthenticationTrackingJavaScript;
|
||||
target.EnableRequestTrackingTelemetryModule = this.EnableRequestTrackingTelemetryModule;
|
||||
|
|
|
@ -17,9 +17,7 @@ namespace Microsoft.Extensions.DependencyInjection
|
|||
using Microsoft.ApplicationInsights.DataContracts;
|
||||
using Microsoft.ApplicationInsights.DependencyCollector;
|
||||
using Microsoft.ApplicationInsights.Extensibility;
|
||||
#if NETSTANDARD2_0
|
||||
using Microsoft.ApplicationInsights.Extensibility.EventCounterCollector;
|
||||
#endif
|
||||
using Microsoft.ApplicationInsights.Extensibility.Implementation;
|
||||
using Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing;
|
||||
using Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector;
|
||||
|
@ -187,7 +185,6 @@ namespace Microsoft.Extensions.DependencyInjection
|
|||
}
|
||||
#endif
|
||||
|
||||
#if NETSTANDARD2_0
|
||||
// EventCounterCollectionModule
|
||||
if (module is EventCounterCollectionModule)
|
||||
{
|
||||
|
@ -197,7 +194,6 @@ namespace Microsoft.Extensions.DependencyInjection
|
|||
continue;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// PerformanceCollectorModule
|
||||
if (module is PerformanceCollectorModule)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
|
||||
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp3.1</TargetFrameworks>
|
||||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||
<AssemblyName>FunctionalTests.Utils</AssemblyName>
|
||||
|
|
Загрузка…
Ссылка в новой задаче