diff --git a/build/Common.nonprod.props b/build/Common.nonprod.props
index 7f617c4549..6de6e014c8 100644
--- a/build/Common.nonprod.props
+++ b/build/Common.nonprod.props
@@ -44,4 +44,24 @@
+
+
+
+
+
+
+
+
+
+ $(DefineConstants);@(CompilerConstantsForDependenciesWithExposedExperimentalFeatures)
+
+
diff --git a/build/Common.prod.props b/build/Common.prod.props
index 011f7d9b31..333f1f3a79 100644
--- a/build/Common.prod.props
+++ b/build/Common.prod.props
@@ -39,6 +39,10 @@
+
@@ -82,6 +86,15 @@
$(DefineConstants);EXPOSE_EXPERIMENTAL_FEATURES
+
+
+
diff --git a/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs b/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs
index e26443707d..24d343d98b 100644
--- a/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs
+++ b/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs
@@ -62,7 +62,11 @@ private sealed class NoopLoggerProvider : LoggerProvider
private sealed class TestLoggerProvider : LoggerProvider
{
+#if OPENTELEMETRY_API_EXPERIMENTAL_FEATURES_EXPOSED
protected override bool TryCreateLogger(
+#else
+ internal override bool TryCreateLogger(
+#endif
string? name,
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
[NotNullWhen(true)]