Skip to content

Commit

Permalink
Move includes of ikvm.dll for netfx to a target so it doesn't show up…
Browse files Browse the repository at this point in the history
… as a link.
  • Loading branch information
wasabii committed Jul 5, 2024
1 parent c57a24f commit 596f4a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/IKVM/buildTransitive/IKVM.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,5 @@
<IkvmAvailableRuntimeIdentifiers Include="win;linux;osx" />
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net461'))">
<None Include="$(MSBuildThisFileDirectory)..\runtimes\**\native\ikvm.dll" LinkBase="runtimes">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>runtimes\%(RecursiveDir)native\%(Filename)%(Extension)</TargetPath>
</None>
</ItemGroup>

<Import Project="IKVM.IkvmReference.props" />
</Project>
10 changes: 10 additions & 0 deletions src/IKVM/buildTransitive/IKVM.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,15 @@
</ItemGroup>
</Target>

<Target Name="IncludeIkvmNativeLibraries" BeforeTargets="AssignTargetPaths">
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net461'))">
<_IkvmNativeLibraries Include="$(MSBuildThisFileDirectory)..\runtimes\**\native\*.dll" />
<None Include="@(_IkvmNativeLibraries)">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>runtimes\%(RecursiveDir)native\%(Filename)%(Extension)</TargetPath>
</None>
</ItemGroup>
</Target>

<Import Project="IKVM.IkvmReference.targets" />
</Project>

0 comments on commit 596f4a1

Please sign in to comment.