-
Notifications
You must be signed in to change notification settings - Fork 547
[release/10.0.1xx-rc.2] [msbuild] Improve detection of resources that would end up outside the app bundle. #23920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release/10.0.1xx-rc.2] [msbuild] Improve detection of resources that would end up outside the app bundle. #23920
Conversation
β¦e app bundle. Due to #23898, the build may end up with resources whose LogicalName property (which is a path relative to the app bundle where the resource in question would be located inside the app bundle) points to a location outside the app bundle. On macOS we correctly detect this and report an error: > The path '../../../../../../../../../Users/rolf/test/bugs/issue2576178/RazorClassLibrary/wwwroot/background.png' would result in a file outside of the app bundle and cannot be used. But no such thing was reported on Windows. Additionally, this become a problem in .NET 10 on Windows because we now process resources in library projects on Windows without a connection to a Mac, while previously a connection to a Mac would be required to run into this problem. So: * Fix the check to work on Windows as well. * Also make it a warning (and just ignore the file in question) instead of an error, to keep the "works-by-luck" behavior of .NET 9. This works around #23898 while we implement an actual fix.
β [CI Build #d40fe6f] Build passed (Build packages) βPipeline on Agent |
β [PR Build #d40fe6f] Build passed (Detect API changes) βPipeline on Agent |
β [CI Build #d40fe6f] Build passed (Build macOS tests) β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 |
π» [CI Build #d40fe6f] Tests on macOS X64 - Mac Sonoma (14) passed π»β All tests on macOS X64 - Mac Sonoma (14) passed. Pipeline on Agent |
π» [CI Build #d40fe6f] Tests on macOS arm64 - Mac Sequoia (15) passed π»β All tests on macOS arm64 - Mac Sequoia (15) passed. Pipeline on Agent |
π» [CI Build #d40fe6f] Tests on macOS arm64 - Mac Tahoe (26) passed π»β All tests on macOS arm64 - Mac Tahoe (26) passed. Pipeline on Agent |
π» [CI Build #d40fe6f] Tests on macOS M1 - Mac Monterey (12) passed π»β All tests on macOS M1 - Mac Monterey (12) passed. Pipeline on Agent |
π» [CI Build #d40fe6f] Tests on macOS M1 - Mac Ventura (13) passed π»β All tests on macOS M1 - Mac Ventura (13) passed. Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
π [CI Build #d40fe6f] 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 Pipeline on Agent |
Backport of #23919.