メッセージの例
warning XA1029: The 'AotAssemblies' MSBuild property is deprecated. Edit the project file in a text editor to remove this property, and use the 'RunAOTCompilation' MSBuild property instead.
Issue
この警告は、falseに設定されている場合を含め、$(AotAssemblies)が指定されるたびに生成されます。
ソリューション
Mono を使用する、サポート対象の .NET 10 以前のプロジェクトでは、次を使用する代わりに:
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<AotAssemblies>true</AotAssemblies>
</PropertyGroup>
代わりに次の方法を使用します。
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<RunAOTCompilation>true</RunAOTCompilation>
</PropertyGroup>
CoreCLR または NativeAOT プロジェクトの場合は、$(RunAOTCompilation)を追加せずに$(AotAssemblies)を削除します。 これらのランタイムでは、Mono AOT パイプラインは使用されません。
$(RunAOTCompilation) が true であり、かつ $(AotAssemblies) が未設定または true の場合、転送によりビルドを停止させる XA1044 エラーが発生します。