diff --git a/.props/Product.props b/.props/Product.props
index e97b6effa..5415663e3 100644
--- a/.props/Product.props
+++ b/.props/Product.props
@@ -13,23 +13,20 @@
-
+
All
-
- All
-
-
+
all
runtime; build; native; contentfiles; analyzers
-
+
All
-
+
diff --git a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Microsoft.ApplicationInsights.Tests.csproj b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Microsoft.ApplicationInsights.Tests.csproj
index e402926e6..f30d9f278 100644
--- a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Microsoft.ApplicationInsights.Tests.csproj
+++ b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Microsoft.ApplicationInsights.Tests.csproj
@@ -13,15 +13,15 @@
-
-
-
-
-
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
diff --git a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientExtensionAsyncTests.cs b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientExtensionAsyncTests.cs
index 53e447e33..35ffce74c 100644
--- a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientExtensionAsyncTests.cs
+++ b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientExtensionAsyncTests.cs
@@ -33,6 +33,7 @@ public class TelemetryClientExtensionAsyncTests : IDisposable
public TelemetryClientExtensionAsyncTests()
{
var configuration = new TelemetryConfiguration();
+ configuration.SamplingRatio = 1.0f;
this.sendItems = new List();
this.traceItems = new List();
this.logItems = new List();
diff --git a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientExtensionTests.cs b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientExtensionTests.cs
index 02dd6d073..8d81e1ed0 100644
--- a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientExtensionTests.cs
+++ b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientExtensionTests.cs
@@ -30,6 +30,7 @@ public class TelemetryClientExtensionTests : IDisposable
public TelemetryClientExtensionTests()
{
this.telemetryConfiguration = new TelemetryConfiguration();
+ this.telemetryConfiguration.SamplingRatio = 1.0f;
this.sendItems = new List();
this.traceItems = new List();
this.logItems = new List();
diff --git a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientTest.cs b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientTest.cs
index 8559d84e6..ac9fed955 100644
--- a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientTest.cs
+++ b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryClientTest.cs
@@ -34,6 +34,7 @@ public class TelemetryClientTest : IDisposable
public TelemetryClientTest()
{
var configuration = new TelemetryConfiguration();
+ configuration.SamplingRatio = 1.0f;
this.logItems = new List();
this.metricItems = new List();
this.activityItems = new List();
diff --git a/BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj b/BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj
index 942ba8956..766540a7f 100644
--- a/BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj
+++ b/BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj
@@ -27,8 +27,8 @@
-
-
+
+
All
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bb88592e8..2f6d948f5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,15 @@
- [The JavaScript in `Microsoft.ApplicationInsights.AspNetCore` has been updated to version 10.](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3078)
+- [Centralized package version management](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3080)
+- [Update OpenTelemetry dependencies](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3080)
+ - OpenTelemetry 1.15.0
+ - OpenTelemetry.Instrumentation.AspNetCore 1.15.0
+ - OpenTelemetry.Instrumentation.AspNet 1.15.0
+ - OpenTelemetry.Instrumentation.Http 1.15.0
+ - OpenTelemetry.Instrumentation.SqlClient 1.15.0-rc.1
+ - OpenTelemetry.Resources.Azure 1.15.0-beta.1
+
## Version 3.0.0-beta2
### Added
- [Automatic configuration binding from "ApplicationInsights" section in appsettings.json for both AspNetCore and WorkerService packages with configuration precedence: environment variables > explicit configuration > appsettings.json](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3064)
diff --git a/Directory.Build.props b/Directory.Build.props
index 3c77a96b9..54c02dbad 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -1,6 +1,12 @@
+
+
+ true
+ true
+
+
false
diff --git a/Directory.Packages.props b/Directory.Packages.props
new file mode 100644
index 000000000..acb89ed58
--- /dev/null
+++ b/Directory.Packages.props
@@ -0,0 +1,147 @@
+
+
+
+
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/LOGGING/src/NLogTarget/NLogTarget.csproj b/LOGGING/src/NLogTarget/NLogTarget.csproj
index fa034ca32..0be009dfd 100644
--- a/LOGGING/src/NLogTarget/NLogTarget.csproj
+++ b/LOGGING/src/NLogTarget/NLogTarget.csproj
@@ -16,7 +16,7 @@
-
+
diff --git a/LOGGING/test/NLogTarget.Tests/NLogTarget.Tests.csproj b/LOGGING/test/NLogTarget.Tests/NLogTarget.Tests.csproj
index ca8045cdc..a854c28a0 100644
--- a/LOGGING/test/NLogTarget.Tests/NLogTarget.Tests.csproj
+++ b/LOGGING/test/NLogTarget.Tests/NLogTarget.Tests.csproj
@@ -9,13 +9,13 @@
-
-
-
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
diff --git a/NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Microsoft.ApplicationInsights.AspNetCore.csproj b/NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Microsoft.ApplicationInsights.AspNetCore.csproj
index ca156ee99..a4c6afce7 100644
--- a/NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Microsoft.ApplicationInsights.AspNetCore.csproj
+++ b/NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Microsoft.ApplicationInsights.AspNetCore.csproj
@@ -28,11 +28,11 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/NETCORE/src/Microsoft.ApplicationInsights.WorkerService/Microsoft.ApplicationInsights.WorkerService.csproj b/NETCORE/src/Microsoft.ApplicationInsights.WorkerService/Microsoft.ApplicationInsights.WorkerService.csproj
index a948ebbeb..b16a59443 100644
--- a/NETCORE/src/Microsoft.ApplicationInsights.WorkerService/Microsoft.ApplicationInsights.WorkerService.csproj
+++ b/NETCORE/src/Microsoft.ApplicationInsights.WorkerService/Microsoft.ApplicationInsights.WorkerService.csproj
@@ -21,10 +21,10 @@
-
-
-
-
+
+
+
+
diff --git a/NETCORE/test/IntegrationTests.Tests/IntegrationTests.Tests.csproj b/NETCORE/test/IntegrationTests.Tests/IntegrationTests.Tests.csproj
index ee7177f7e..49371b9b3 100644
--- a/NETCORE/test/IntegrationTests.Tests/IntegrationTests.Tests.csproj
+++ b/NETCORE/test/IntegrationTests.Tests/IntegrationTests.Tests.csproj
@@ -16,13 +16,13 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
@@ -45,15 +45,15 @@
-
+
-
+
-
+
diff --git a/NETCORE/test/IntegrationTests.WebApp/IntegrationTests.WebApp.csproj b/NETCORE/test/IntegrationTests.WebApp/IntegrationTests.WebApp.csproj
index dfdb2c7de..e91049675 100644
--- a/NETCORE/test/IntegrationTests.WebApp/IntegrationTests.WebApp.csproj
+++ b/NETCORE/test/IntegrationTests.WebApp/IntegrationTests.WebApp.csproj
@@ -7,8 +7,8 @@
-
-
+
+
diff --git a/NETCORE/test/IntegrationTests.WorkerApp/IntegrationTests.WorkerApp.csproj b/NETCORE/test/IntegrationTests.WorkerApp/IntegrationTests.WorkerApp.csproj
index cedae069b..148adab85 100644
--- a/NETCORE/test/IntegrationTests.WorkerApp/IntegrationTests.WorkerApp.csproj
+++ b/NETCORE/test/IntegrationTests.WorkerApp/IntegrationTests.WorkerApp.csproj
@@ -8,7 +8,7 @@
-
-
+
+
diff --git a/NETCORE/test/WorkerIntegrationTests.Tests/WorkerIntegrationTests.Tests.csproj b/NETCORE/test/WorkerIntegrationTests.Tests/WorkerIntegrationTests.Tests.csproj
index dc9b17b8b..de1583649 100644
--- a/NETCORE/test/WorkerIntegrationTests.Tests/WorkerIntegrationTests.Tests.csproj
+++ b/NETCORE/test/WorkerIntegrationTests.Tests/WorkerIntegrationTests.Tests.csproj
@@ -6,12 +6,12 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
diff --git a/WEB/Src/Web/Web.Tests/Web.Tests.csproj b/WEB/Src/Web/Web.Tests/Web.Tests.csproj
index 28ba8cb77..25d215e8f 100644
--- a/WEB/Src/Web/Web.Tests/Web.Tests.csproj
+++ b/WEB/Src/Web/Web.Tests/Web.Tests.csproj
@@ -10,15 +10,15 @@
-
-
-
-
-
+
+
+
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
@@ -41,9 +41,9 @@
-
-
-
+
+
+
diff --git a/WEB/Src/Web/Web/Web.csproj b/WEB/Src/Web/Web/Web.csproj
index 03ff5788a..2ab0ae578 100644
--- a/WEB/Src/Web/Web/Web.csproj
+++ b/WEB/Src/Web/Web/Web.csproj
@@ -22,12 +22,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/examples/BasicConsoleApp/BasicConsoleApp.csproj b/examples/BasicConsoleApp/BasicConsoleApp.csproj
index e9621dafc..8b5926cf0 100644
--- a/examples/BasicConsoleApp/BasicConsoleApp.csproj
+++ b/examples/BasicConsoleApp/BasicConsoleApp.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/examples/NLogConsoleApp/NLogConsoleApp.csproj b/examples/NLogConsoleApp/NLogConsoleApp.csproj
index 3ffc257f7..9d580d506 100644
--- a/examples/NLogConsoleApp/NLogConsoleApp.csproj
+++ b/examples/NLogConsoleApp/NLogConsoleApp.csproj
@@ -8,9 +8,9 @@
-
-
-
+
+
+
diff --git a/examples/WorkerService/WorkerService.csproj b/examples/WorkerService/WorkerService.csproj
index 3153ad991..e3c5a47c4 100644
--- a/examples/WorkerService/WorkerService.csproj
+++ b/examples/WorkerService/WorkerService.csproj
@@ -10,6 +10,6 @@
-
+