@@ -190,6 +190,11 @@ $(PACKAGEREFERENCES)
190190 Condition="'%(RuntimeTargetsCopyLocalItems.AssetType)' == 'native'">
191191 <Path>$([MSBuild]::EnsureTrailingSlash('$([System.String]::Copy('%(FullPath)').Substring(0, $([System.String]::Copy('%(FullPath)').LastIndexOf('runtimes'))))'))</Path>
192192 </NativeIncludeRoots>
193+ <NativeIncludeRoots
194+ Include="@(NativeCopyLocalItems)"
195+ Condition="'%(NativeCopyLocalItems.AssetType)' == 'native'">
196+ <Path>$([MSBuild]::EnsureTrailingSlash('$([System.String]::Copy('%(FullPath)').Substring(0, $([System.String]::Copy('%(FullPath)').LastIndexOf('runtimes'))))'))</Path>
197+ </NativeIncludeRoots>
193198 </ItemGroup>
194199 </Target>
195200
@@ -201,8 +206,12 @@ $(PACKAGEREFERENCES)
201206 <ItemGroup>
202207 <ResolvedReferenceLines Remove='*' />
203208 <ResolvedReferenceLines
204- Condition="'$(SCRIPTEXTENSION)'=='.csx' or '%(InteractiveResolvedFile.NugetPackageId)'!='FSharp.Core'"
205- Include='%(InteractiveResolvedFile.NugetPackageId),%(InteractiveResolvedFile.NugetPackageVersion),%(InteractiveResolvedFile.PackageRoot),%(InteractiveResolvedFile.FullPath),%(InteractiveResolvedFile.AssetType),%(InteractiveResolvedFile.IsNotImplementationReference),%(InteractiveResolvedFile.InitializeSourcePath),%(NativeIncludeRoots.Path)'
209+ Condition="'$(SCRIPTEXTENSION)'=='.fsx' and '%(InteractiveResolvedFile.NugetPackageId)'!='FSharp.Core'"
210+ Include='%(InteractiveResolvedFile.NugetPackageId),%(InteractiveResolvedFile.NugetPackageVersion),%(InteractiveResolvedFile.PackageRoot),%(InteractiveResolvedFile.FullPath),%(InteractiveResolvedFile.AssetType),%(InteractiveResolvedFile.IsNotImplementationReference),%(InteractiveResolvedFile.InitializeSourcePath),'
211+ KeepDuplicates="false" />
212+ <ResolvedReferenceLines
213+ Condition="'$(SCRIPTEXTENSION)'=='.fsx' and '%(NativeIncludeRoots.NugetPackageId)'!='FSharp.Core'"
214+ Include='%(NativeIncludeRoots.NugetPackageId),%(NativeIncludeRoots.NugetPackageVersion),%(NativeIncludeRoots.PackageRoot),,%(NativeIncludeRoots.AssetType),,,%(NativeIncludeRoots.Path)'
206215 KeepDuplicates="false" />
207216 </ItemGroup>
208217
0 commit comments