Skip to content

Commit 336317a

Browse files
authored
Emit warning instead of an error in package compat (#72518)
Based on the discussed in open-telemetry/opentelemetry-dotnet#3448, we are now emitting a warning instead of an error on unsupported target frameworks. We still explicitly indicate that this is an unsupported scenario but don't actively block consumers anymore and also indicate how to suppress the warning.
1 parent 73374e8 commit 336317a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/packaging.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
<![CDATA[<Project InitialTargets="$(_NETStandardCompatErrorFileTarget)">
205205
<Target Name="$(_NETStandardCompatErrorFileTarget)"
206206
Condition="'%24(SuppressTfmSupportBuildWarnings)' == ''">
207-
<Error Text="$(PackageId) doesn't support %24(TargetFramework). Consider updating your TargetFramework to %(NETStandardCompatError.Supported) or later." />
207+
<Warning Text="$(PackageId) $(PackageVersion) doesn't support %24(TargetFramework) and has not been tested with it. Consider upgrading your TargetFramework to %(NETStandardCompatError.Supported) or later. You may also set &lt;SuppressTfmSupportBuildWarnings&gt;true&lt;/SuppressTfmSupportBuildWarnings&gt; in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk." />
208208
</Target>
209209
</Project>]]>
210210
</_NETStandardCompatErrorFileContent>

0 commit comments

Comments
 (0)