diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index cb14a4f5ebf..662ae447c1a 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -1459,8 +1459,36 @@ + + + $(_BundlerDebug) + + + + + + + + + <_ComputePublishLocationDependsOn> + $(_ComputePublishLocationDependsOn); + _GenerateBundleName; + _ParseBundlerArguments; + _ComputeMonoLibraries; + _DetectSigningIdentity; + _PrepareResourceRules; + _AddDebugSymbolsToBundle; + + + diff --git a/tests/dotnet/UnitTests/BundleStructureTest.cs b/tests/dotnet/UnitTests/BundleStructureTest.cs index a4703f1b6ee..1a35e13956a 100644 --- a/tests/dotnet/UnitTests/BundleStructureTest.cs +++ b/tests/dotnet/UnitTests/BundleStructureTest.cs @@ -291,7 +291,7 @@ internal static void CheckAppBundleContents (ApplePlatform platform, IEnumerable expectedFiles.Add (Path.Combine (assemblyDirectory, "Touch.Client.dll")); if (includeDebugFiles) expectedFiles.Add (Path.Combine (assemblyDirectory, "Touch.Client.pdb")); - AddMultiRidAssembly (platform, expectedFiles, assemblyDirectory, Path.GetFileNameWithoutExtension (Configuration.GetBaseLibraryName (platform, true)), runtimeIdentifiers, forceSingleRid: (platform == ApplePlatform.MacCatalyst && !isReleaseBuild) || platform == ApplePlatform.MacOSX, hasPdb: false, includeDebugFiles: includeDebugFiles); + AddMultiRidAssembly (platform, expectedFiles, assemblyDirectory, Path.GetFileNameWithoutExtension (Configuration.GetBaseLibraryName (platform, true)), runtimeIdentifiers, forceSingleRid: (platform == ApplePlatform.MacCatalyst && !isReleaseBuild) || platform == ApplePlatform.MacOSX, includeDebugFiles: includeDebugFiles); expectedFiles.Add (Path.Combine (assemblyDirectory, "runtimeconfig.bin")); switch (platform) { @@ -422,11 +422,11 @@ static bool IsValidLoadLibrary (string library) } - static void AddMultiRidAssembly (ApplePlatform platform, List expectedFiles, string assemblyDirectory, string assemblyName, string [] runtimeIdentifiers, bool forceSingleRid = false, bool hasPdb = true, bool addConfig = false, bool includeDebugFiles = false) + static void AddMultiRidAssembly (ApplePlatform platform, List expectedFiles, string assemblyDirectory, string assemblyName, string [] runtimeIdentifiers, bool forceSingleRid = false, bool addConfig = false, bool includeDebugFiles = false) { if (forceSingleRid || runtimeIdentifiers.Length == 1) { expectedFiles.Add (Path.Combine (assemblyDirectory, $"{assemblyName}.dll")); - if (hasPdb && includeDebugFiles) + if (includeDebugFiles) expectedFiles.Add (Path.Combine (assemblyDirectory, $"{assemblyName}.pdb")); if (addConfig) expectedFiles.Add (Path.Combine (assemblyDirectory, $"{assemblyName}.dll.config")); @@ -435,7 +435,7 @@ static void AddMultiRidAssembly (ApplePlatform platform, List expectedFi foreach (var rid in runtimeIdentifiers) { expectedFiles.Add (Path.Combine (Path.Combine (assemblyDirectory, ".xamarin", $"{rid}"))); expectedFiles.Add (Path.Combine (Path.Combine (assemblyDirectory, ".xamarin", $"{rid}", $"{assemblyName}.dll"))); - if (hasPdb && includeDebugFiles) + if (includeDebugFiles) expectedFiles.Add (Path.Combine (Path.Combine (assemblyDirectory, ".xamarin", $"{rid}", $"{assemblyName}.pdb"))); if (addConfig) expectedFiles.Add (Path.Combine (Path.Combine (assemblyDirectory, ".xamarin", $"{rid}", $"{assemblyName}.dll.config")));