From 2aaa7a31b2313dc7bcd50af04c85b4db6d2c4ab0 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 25 May 2021 11:57:22 +0200 Subject: [PATCH 1/2] [dotnet] Tell .NET to not generate files we don't need. Fixes #9687. Tell .NET to not generate files we don't need: * Runtime configuration file (*.runtimeconfig.json). * Dependency file (*.deps.json). * Reference assemblies for executable projects. Fixes https://github.com/xamarin/xamarin-macios/issues/9687. --- dotnet/targets/Xamarin.Shared.Sdk.props | 6 ++++++ dotnet/targets/Xamarin.Shared.Sdk.targets | 3 +++ 2 files changed, 9 insertions(+) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.props b/dotnet/targets/Xamarin.Shared.Sdk.props index a41bea904bc5..7713ff3b1cbd 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.props +++ b/dotnet/targets/Xamarin.Shared.Sdk.props @@ -22,5 +22,11 @@ <_XamarinSdkRoot Condition="'$(_XamarinSdkRoot)' == ''">$(_XamarinSdkRootDirectory) <_XamarinSdkRootOnMac>$(_XamarinSdkRoot) + + + false + + + false diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index 88e78a4a3cca..494bb01703bf 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -132,6 +132,9 @@ false true true + + + false From a351a0103d4e1f0c65142ce69ebf86ac6b96ce58 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Mon, 31 May 2021 12:14:35 +0200 Subject: [PATCH 2/2] Keep the *.runtimeconfig.json for now. --- dotnet/targets/Xamarin.Shared.Sdk.props | 3 --- 1 file changed, 3 deletions(-) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.props b/dotnet/targets/Xamarin.Shared.Sdk.props index 7713ff3b1cbd..55d1039cfa23 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.props +++ b/dotnet/targets/Xamarin.Shared.Sdk.props @@ -23,9 +23,6 @@ <_XamarinSdkRootOnMac>$(_XamarinSdkRoot) - - false - false