[dotnet] aotdata files go in the same directory as the assemblies. (#12058)
aotdata files go next to the assemblies, not next to the executable. This does not make a difference for mobile platforms (because it's the same location), but it matters for Mac Catalyst / macOS, where assemblies are not located next to the executable.
This commit is contained in:
Родитель
2f50096a09
Коммит
9ae7d236e6
|
@ -741,7 +741,7 @@
|
|||
|
||||
<!-- copy the aotdata files to the .app -->
|
||||
<ResolvedFileToPublish Include="%(_AssembliesToAOT.AOTData)" >
|
||||
<RelativePath>$([MSBuild]::MakeRelative($(MSBuildProjectDirectory)\$(PublishDir),$(_NativeExecutablePublishDir)))\%(_AssembliesToAOT.Filename).aotdata.%(_AssembliesToAOT.Arch)</RelativePath>
|
||||
<RelativePath>$([MSBuild]::MakeRelative($(MSBuildProjectDirectory)\$(PublishDir),$(_AssemblyPublishDir)))\%(_AssembliesToAOT.Filename).aotdata.%(_AssembliesToAOT.Arch)</RelativePath>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
</ResolvedFileToPublish>
|
||||
</ItemGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче