diff --git a/src/IKVM.Clang.Sdk/targets/IKVM.Clang.Core.targets b/src/IKVM.Clang.Sdk/targets/IKVM.Clang.Core.targets
index 1799916..8a011ef 100644
--- a/src/IKVM.Clang.Sdk/targets/IKVM.Clang.Core.targets
+++ b/src/IKVM.Clang.Sdk/targets/IKVM.Clang.Core.targets
@@ -124,6 +124,8 @@
ProjectReference
+ True
+ True
@@ -221,11 +223,11 @@
-
+
<_LibraryDirectories Remove="@(_LibraryDirectories)" />
- <_LibraryDirectories Include="@(GetProjectReferenceOutputItems->'%(LibraryPath)')" />
+ <_LibraryDirectories Include="@(GetProjectReferenceOutputItems->WithMetadataValue('Link', 'True')->'%(LibraryPath)')" />
-
+