[msbuild] Resolve Content and BundleResource items using the main project's location. Fixes 23898.#25713
[msbuild] Resolve Content and BundleResource items using the main project's location. Fixes 23898.#25713rolfbjarne wants to merge 1 commit into
Conversation
Add a test that reproduces the issue where Content/BundleResource items defined by an SDK (like the Razor SDK) have their LogicalName computed relative to the SDK directory instead of the project directory, resulting in paths like '../../../../../src/MyProject/file.png' that get rejected. This test currently fails, demonstrating the bug described in #23898. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
✅ [PR Build #f76389c] Build passed (Detect API changes) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #f76389c] Build passed (Build packages) ✅Pipeline on Agent |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
✅ [PR Build #f76389c] Build passed (Build macOS tests) ✅Pipeline on Agent |
🔥 [CI Build #f76389c] Test results 🔥Test results❌ Tests failed on VSTS: test results 0 tests crashed, 13 tests failed, 180 tests passed. Failures❌ linker tests (iOS)11 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ monotouch tests (macOS)1 tests failed, 22 tests passed.Failed tests
Html Report (VSDrops) Download ❌ msbuild tests1 tests failed, 1 tests passed.Failed tests
Html Report (VSDrops) Download Successes✅ cecil: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
TODO: implement the actual fix, this only contains a test (that's supposed to fail).
Fixes #23898
🤖 Pull request created by Copilot