From fcf7b116e6faa046397dda0b75219b570965be7e Mon Sep 17 00:00:00 2001 From: Sven Boemer Date: Tue, 19 Sep 2023 17:51:32 -0700 Subject: [PATCH] Prevent restoring illink for native-binplace.proj (#92289) Fixes https://github.com/dotnet/runtime/issues/92194. The reference to illink from `native-binplace.proj`, built as a reference of `build-native.proj`, was hitting a nuget bug with static graph restore. The bug seems to be specific to something about the project file (maybe the language-specific targets, since `native-binplace.proj` imports the `Microsoft.NET.Sdk`, but doesn't have a `csproj` extension). Fixed by explicitly marking this as not a source project, which will prevent the import of illink.targets. --- src/libraries/Directory.Build.props | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libraries/Directory.Build.props b/src/libraries/Directory.Build.props index 9d6f6c385bb4d..32fc46a35d8d7 100644 --- a/src/libraries/Directory.Build.props +++ b/src/libraries/Directory.Build.props @@ -6,6 +6,10 @@ we only enable it in specific projects. so to avoid duplicating this property in coreclr, we can first scope it to src/libraries. This property needs to be declared before the ..\..\Directory.Build.props import. --> true + + + false