8888 <_TPRid Condition =" $([MSBuild]::IsOSPlatform('Linux'))" >unix</_TPRid >
8989 <_TPRid Condition =" $([MSBuild]::IsOSPlatform('OSX'))" >unix</_TPRid >
9090 <_TPRid Condition =" $([MSBuild]::IsOSPlatform('Windows'))" >win</_TPRid >
91+ <_TPNativeRid Condition =" $([MSBuild]::IsOSPlatform('Windows'))" >win-x64</_TPNativeRid >
92+ <_TPNativeRid Condition =" '$(RuntimeIdentifier)' != ''" >$(RuntimeIdentifier)</_TPNativeRid >
9193 <_TPOutputDir >$(TargetDir)</_TPOutputDir >
9294 <_TPRuntimeDir >$(_TPOutputDir)runtimes/$(_TPRid)/lib/$(TargetFramework)</_TPRuntimeDir >
9395 <!-- For netstandard2.0, NuGet does not copy RID-specific assemblies.
9496 Fall back to the net9.0 sibling output (built first). -->
9597 <_TPRuntimeDir Condition =" !Exists('$(_TPRuntimeDir)')" >$(_TPOutputDir)../net9.0/runtimes/$(_TPRid)/lib/net9.0</_TPRuntimeDir >
98+ <_TPNativeDir >$(_TPOutputDir)runtimes/$(_TPNativeRid)/native</_TPNativeDir >
9699 </PropertyGroup >
97100 <ItemGroup >
98101 <_RidSpecificAssemblies Include =" $(_TPRuntimeDir)/*.dll" />
102+ <_NativeAssemblies Include =" $(_TPNativeDir)/*.dll" Condition =" '$(_TPNativeRid)' != ''" />
99103 </ItemGroup >
100104 <Message Importance =" high" Text =" TP RID copy: $(_TPRuntimeDir) -> $(_TPOutputDir)" />
101105 <Copy SourceFiles =" @(_RidSpecificAssemblies)"
102106 DestinationFolder =" $(_TPOutputDir)"
103107 OverwriteReadOnlyFiles =" true"
104108 SkipUnchangedFiles =" false"
105109 Condition =" Exists('$(_TPRuntimeDir)')" />
110+ <Message Importance =" high" Text =" TP native copy: $(_TPNativeDir) -> $(_TPOutputDir)" Condition =" '$(_TPNativeRid)' != ''" />
111+ <Copy SourceFiles =" @(_NativeAssemblies)"
112+ DestinationFolder =" $(_TPOutputDir)"
113+ OverwriteReadOnlyFiles =" true"
114+ SkipUnchangedFiles =" false"
115+ Condition =" '$(_TPNativeRid)' != '' and Exists('$(_TPNativeDir)')" />
106116 </Target >
107117 <Import Project =" ..\..\.paket\Paket.Restore.targets" />
108118</Project >
0 commit comments