[release/10.0.1xx] [dotnet] Fix loading oldest reference assemblies for library projects Fixes #24043. by dalexsoto · Pull Request #24194 · dotnet/macios · GitHub
Skip to content

[release/10.0.1xx] [dotnet] Fix loading oldest reference assemblies for library projects Fixes #24043.#24194

Merged
dalexsoto merged 1 commit into
release/10.0.1xxfrom
dev/alex/backport24181-n10
Nov 7, 2025
Merged

[release/10.0.1xx] [dotnet] Fix loading oldest reference assemblies for library projects Fixes #24043.#24194
dalexsoto merged 1 commit into
release/10.0.1xxfrom
dev/alex/backport24181-n10

Conversation

@dalexsoto

@dalexsoto dalexsoto commented Nov 6, 2025

Copy link
Copy Markdown
Member

Since this may result in unintuitive behavior (library projects are built differently than executable projects, so code that works in an executable project may not compile when moved to a library project), an escape hatch was implemented as well.

One unintuitive behavior was when building an executable project with a library project from Windows: if the library project needs the remote connection, it would use a different workload, and different remote connection, than the executable project, which just wouldn't work. So we don't enable this new behavior when library projects need the remote connection (which is when bundle resources are precompiled for the library project; aka when BundleOriginalResources=false - note that it's enabled by default in .NET 10, so developers must opt in to run into this problem and thus not getting this new behavior).

Fixes #24043.

…Fixes #24043. (#24181)

Since this may result in unintuitive behavior (library projects are
built differently than executable projects, so code that works in an
executable project may not compile when moved to a library project), an
escape hatch was implemented as well.

One unintuitive behavior was when building an executable project with a
library project from Windows: if the library project needs the remote
connection, it would use a different workload, and different remote
connection, than the executable project, which just wouldn't work. So we
don't enable this new behavior when library projects need the remote
connection (which is when bundle resources are precompiled for the
library project; aka when `BundleOriginalResources=false` - note that
it's enabled by default in .NET 10, so developers must opt in to run
into this problem and thus not getting this new behavior).

Fixes #24043.

---------

Co-authored-by: GitHub Copilot <copilot@github.com>
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
@dalexsoto dalexsoto requested a review from rolfbjarne as a code owner November 6, 2025 23:03
@dalexsoto dalexsoto changed the title [release/10.0.1xx] [dotnet] Fix loading oldest reference assemblies for library projects… [release/10.0.1xx] [dotnet] Fix loading oldest reference assemblies for library projects Fixes #24043. Nov 6, 2025
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

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

Pipeline on Agent
Hash: 740d53b1fedd30825354ccce1e558f425ae0c625 [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
Copy Markdown
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: 740d53b1fedd30825354ccce1e558f425ae0c625 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [CI Build #740d53b] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 740d53b1fedd30825354ccce1e558f425ae0c625 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

💻 [CI Build #740d53b] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: 740d53b1fedd30825354ccce1e558f425ae0c625 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

💻 [CI Build #740d53b] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: 740d53b1fedd30825354ccce1e558f425ae0c625 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

💻 [CI Build #740d53b] Tests on macOS arm64 - Mac Tahoe (26) passed 💻

All tests on macOS arm64 - Mac Tahoe (26) passed.

Pipeline on Agent
Hash: 740d53b1fedd30825354ccce1e558f425ae0c625 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

💻 [CI Build #740d53b] Tests on macOS arm64 - Mac Sequoia (15) passed 💻

All tests on macOS arm64 - Mac Sequoia (15) passed.

Pipeline on Agent
Hash: 740d53b1fedd30825354ccce1e558f425ae0c625 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

💻 [CI Build #740d53b] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: 740d53b1fedd30825354ccce1e558f425ae0c625 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

@dalexsoto dalexsoto enabled auto-merge (squash) November 7, 2025 02:49
@dalexsoto dalexsoto merged commit 495e3e0 into release/10.0.1xx Nov 7, 2025
45 checks passed
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