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
The path 'XXXXXXX\Shared\MainLayout.razor.css' would result in a file outside of the app bundle and cannot be used. #4061
Comments
Same thing happened to me, when I delete the files it works but it needs to be fixed. |
Update: If I choose iOS remote device (Connect via Mac) It doesn't give that error and works perfectly. |
yes, the error only comes when using iPhone local device. it works with iPhone simulator(connected via Mac) |
I did the same thing. Deleting the two css files does allow it to build. After deploying with hot restart to iPhone, this crashes when I actually start the app. |
I have the same issue, and if I remove the files the app crash just before loading the Blazor app (not the maui one). |
Potentially related to #3546 |
Yes, I can confirm, it is happening when I try to deploy in my iPad. |
By disabling Blazor CSS isolation like shown in Microsoft Docs i am able to run the app without crashing on my iphone but obviously without any css working. Maybe this information helps to find a suitable workaround... |
Note that there's more context about this at #2981 |
@SteveSandersonMS should this be closed in favor of the issue you pointed out? |
I considered it, but #2981 seems to imply there is already a workaround that fixes this. It's not clear from #2981 alone that we really have to do more work. So I think this issue is a better one to represent the fact that there's a real bug affecting customers. We could close #2981 as a dupe but it's not really a duplicate as it's saying we already have a workaround. So I'd be OK with just leaving it alone. |
@SteveSandersonMS I think this is addressed by 6c99396 as described here |
This got addressed by #4861 |
This issue recently surfaced when building for a local iOS hardware target. In addition to removing/deleting unreferenced razor files, it was also necessary to explicitly exclude the following json files. Yes, launchSettings.json was being referenced as was the google-services.json file located within the Android platform hierarchy.
VS 2022 Preview
|
Re-opening because there is a new report of this on Twitter: https://twitter.com/Benzadeus/status/1513999791478521857 |
Hi and thanks Eilon! Today I updated to use my When I try to run the default template - without any changes - it runs perfectly in Android / Windows Machine, but when I try deploying in my I have an iPad Air (3rd Generation), version 15.4.1. |
@FelipeCostaGualberto great, thank you for the details! Do you have a Mac with the iOS/iPadOS simulator to also test on? |
@Eilon , I don't have a Mac. I'll see if my friend with a Mac can help me with that. If I get something new, I'll post here. |
@FelipeCostaGualberto sure thing. We will investigate this too. |
@Eilon I managed to get a Mac and the bug doesn't happen in the iOS simulator (iPod touch 7th gen version 15.4), everything is fine. I also tested with my wife's iPhone (physical device) and I got the same error I was getting with iPad with So it might be only a issue with Local Devices. |
I wonder if it's the same as this issue: #5245 |
Closing as we believe that this was fixed. And this is not a dupe of #5245 |
@mkArtakMSFT I recently re-encountered this with VS 17.2 Preview 5. It is (as noted previously) an issue with a local device -- I haven't tried deploying to an iPhone attached to a remote Mac yet. |
I have the same problem. Version 17.2.0 Preview 5.0 |
Description
The error happens with Blazor MAUI Hybrid Project.
Project compile and runs without error for Android, Android Local device & windows emulator platform and even works for iOS simulator,
but runs into compiler issues for iOS Local Device
Steps to Reproduce
Version with bug
Preview 11
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS Local Device
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: