KEMBAR78
[Windows] Make LinkNativeCode create output file by emaf · Pull Request #23534 · dotnet/macios · GitHub
Skip to content

Conversation

@emaf
Copy link
Contributor

@emaf emaf commented Aug 9, 2025

The _LinkNativeExecutable always runs because its inputs/outputs are not created on Windows. Its own output file was never created because the task was not configured to do so.

Also, the _MtouchSymbolsList was being written remotely so it was never found on Windows when checking the outputs. It's safe to write this locally as it will be copied as part of running this task as it is one of its declared dependencies.

For the target to be fully skipped this fix depends on #23533, which makes the compiled native executable output file to exist on Windows.

Fixes #19610

The `_LinkNativeExecutable` always runs because its inputs/outputs are not created on Windows. Its own output file was never created because the task was not configured to do so.

Also, the `_MtouchSymbolsList` was being written remotely so it was never found on Windows when checking the outputs. It's safe to write this locally as it will be copied as part of running this task as it is one of its declared dependencies.

Fixes #19610
@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

Pipeline on Agent
Hash: b2ea1de55d87603deb8869cfd185facc46f30418 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

Pipeline on Agent
Hash: b2ea1de55d87603deb8869cfd185facc46f30418 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

.NET ( No breaking changes )

✅ API diff vs stable

.NET ( No breaking changes )

ℹ️ Generator diff

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

Pipeline on Agent
Hash: b2ea1de55d87603deb8869cfd185facc46f30418 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #b2ea1de] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: b2ea1de55d87603deb8869cfd185facc46f30418 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: b2ea1de55d87603deb8869cfd185facc46f30418 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: b2ea1de55d87603deb8869cfd185facc46f30418 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: b2ea1de55d87603deb8869cfd185facc46f30418 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: b2ea1de55d87603deb8869cfd185facc46f30418 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🚀 [CI Build #b2ea1de] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 115 tests passed 🎉

Tests counts

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): 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 4 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 8 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 9 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 8 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: b2ea1de55d87603deb8869cfd185facc46f30418 [PR build]

@emaf emaf marked this pull request as ready for review August 11, 2025 15:18
@emaf emaf requested review from mauroa and rolfbjarne as code owners August 11, 2025 15:18
@emaf emaf merged commit cdfba6c into main Aug 11, 2025
44 checks passed
@emaf emaf deleted the dev/ema/link-native-executable branch August 11, 2025 19:08
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.

[Windows build perf] _LinkNativeExecutable is always executed

4 participants