Skip to content

Commit fd167fd

Browse files
committed
Adjust trim/aot warning messages (dotnet#35186)
For completeness, these messages should mention all of the properties that can be set to produce the warning, even those that aren't the recommended way to enable trim/aot compatibility.For completeness, these messages should mention all of the properties that can be set to produce the warning, even those that aren't the recommended way to enable trim/aot compatibility.
1 parent 875a54e commit fd167fd

15 files changed

+54
-60
lines changed

src/Tasks/Common/Resources/Strings.resx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ You may need to build the project on another operating system or architecture, o
930930
<comment>{StrBegin="NETSDK1209: "}</comment>
931931
</data>
932932
<data name="IsAotCompatibleUnsupported" xml:space="preserve">
933-
<value>NETSDK1210: IsAotCompatible is not supported for the target framework. Consider multi-targeting to a supported framework to enable ahead-of-time compilation analysis, and set IsAotCompatible only for the supported frameworks. For example:
933+
<value>NETSDK1210: IsAotCompatible and EnableAotAnalyzer are not supported for the target framework. Consider multi-targeting to a supported framework to enable ahead-of-time compilation analysis, and set IsAotCompatible only for the supported frameworks. For example:
934934
&lt;IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))"&gt;true&lt;/IsAotCompatible&gt;</value>
935935
<comment>{StrBegin="NETSDK1210: "}</comment>
936936
</data>
@@ -940,7 +940,7 @@ You may need to build the project on another operating system or architecture, o
940940
<comment>{StrBegin="NETSDK1211: "}</comment>
941941
</data>
942942
<data name="IsTrimmableUnsupported" xml:space="preserve">
943-
<value>NETSDK1212: IsTrimmable is not supported for the target framework. Consider multi-targeting to a supported framework to enable trimming, and set IsTrimmable only for the supported frameworks. For example:
943+
<value>NETSDK1212: IsTrimmable and EnableTrimAnalyzer are not supported for the target framework. Consider multi-targeting to a supported framework to enable trimming, and set IsTrimmable only for the supported frameworks. For example:
944944
&lt;IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))"&gt;true&lt;/IsTrimmable&gt;</value>
945945
<comment>{StrBegin="NETSDK1212: "}</comment>
946946
</data>

src/Tasks/Common/Resources/xlf/Strings.cs.xlf

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Tasks/Common/Resources/xlf/Strings.de.xlf

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Tasks/Common/Resources/xlf/Strings.es.xlf

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Tasks/Common/Resources/xlf/Strings.fr.xlf

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Tasks/Common/Resources/xlf/Strings.it.xlf

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)