Skip to content

Conversation

@kotlarmilos
Copy link
Member

@kotlarmilos kotlarmilos commented Feb 11, 2026

Description

This PR excludes libmscordaccore and libmscordbi from the bundle in Release builds as they are not used.

In a MAUI sample app, this reduced the device Release app bundle size for 3.08 MB.

}

if (Platform != Utils.ApplePlatform.MacOSX && string.Equals (Configuration, "Release", StringComparison.OrdinalIgnoreCase)) {
// libmscordaccore and libmscordbi are debug-only libraries, don't include them in Release builds on mobile platforms
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these libraries used for? Debugger support? Profiling? Anything else?

Copy link
Member Author

@kotlarmilos kotlarmilos Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these are debugger libs. It might get changed soon

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was asking mostly to see if there's a better condition than "Configuration=Release", because that doesn't work if customers have a different release configuration, say "Configuration=AppStore".

We could for instance use the DebuggerSupport property:

<DebuggerSupport Condition="'$(DebuggerSupport)' == ''">$(_BundlerDebug)</DebuggerSupport>
- if these libraries are only used by the debugger.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, updated

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #dc203ec] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: dc203ecc4c6b46f113ed5763ef16bf9c6f1c7955 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #dc203ec] Build passed (Build packages) ✅

Pipeline on Agent
Hash: dc203ecc4c6b46f113ed5763ef16bf9c6f1c7955 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: dc203ecc4c6b46f113ed5763ef16bf9c6f1c7955 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 [CI Build #dc203ec] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

0 tests crashed, 19 tests failed, 120 tests passed.

Failures

❌ dotnettests tests (iOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.AppSizeTest.CoreCLR_Interpreter(iOS,"ios-arm64"): Multiple failures or warnings in test:
  1. The file 'Frameworks/libmscordaccore.framework/_CodeSignature/CodeResources' was rem...
    * Xamarin.Tests.AppSizeTest.CoreCLR_R2R(iOS,"ios-arm64"): Multiple failures or warnings in test:
  2. The file 'Frameworks/libmscordaccore.framework/_CodeSignature/CodeResources' was rem...

Html Report (VSDrops) Download

❌ linker tests

7 tests failed, 37 tests passed.

Failed tests

  • link sdk/iOS - simulator/Debug: Crashed
  • link all/iOS - simulator/Debug: Crashed
  • link all/iOS - simulator/Release: Crashed
  • link all/iOS - simulator/Debug (don't bundle original resources): Crashed
  • trimmode copy/iOS - simulator/Debug: Crashed
  • trimmode link/iOS - simulator/Debug: Crashed
  • trimmode link/iOS - simulator/Release: Crashed

Html Report (VSDrops) Download

❌ monotouch tests (iOS)

9 tests failed, 4 tests passed.

Failed tests

  • monotouch-test/iOS - simulator/Release (CoreCLR): Crashed
  • monotouch-test/iOS - simulator/Release (all optimizations): Crashed
  • monotouch-test/iOS - simulator/Debug (ARM64): Crashed
  • monotouch-test/iOS - simulator/Release (NativeAOT, ARM64): Crashed
  • monotouch-test/iOS - simulator/Debug (managed static registrar): Crashed
  • monotouch-test/iOS - simulator/Release (managed static registrar, all optimizations): Crashed
  • monotouch-test/iOS - simulator/Release (NativeAOT, x64): Crashed
  • monotouch-test/iOS - simulator/Debug (interpreter): Crashed
  • monotouch-test/iOS - simulator/Release (interpreter): Crashed

Html Report (VSDrops) Download

❌ monotouch tests (MacCatalyst)

1 tests failed, 16 tests passed.

Failed tests

  • monotouch-test/Mac Catalyst/Release (CoreCLR): Failed (Test run crashed (exit code: 134).
    No test log file was produced)

Html Report (VSDrops) Download

❌ monotouch tests (tvOS)

1 tests failed, 12 tests passed.

Failed tests

  • monotouch-test/tvOS - simulator/Release (CoreCLR): Crashed

Html Report (VSDrops) Download

Successes

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 9 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 12 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: dc203ecc4c6b46f113ed5763ef16bf9c6f1c7955 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants