Skip to content
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 like Issue #406 #27994

Open
KKirchhoff opened this issue Feb 24, 2025 · 5 comments
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@KKirchhoff
Copy link

Description

I'm working on a Maui Blazoer hybrid app with JetBrain Rider when I switch to MacCatalyst from another platform and then this
I want to start, I get the errors below. I then have to recreate the entire project and it works again. What is interesting is
that these are parts of the shared project that were created by the template.
Perhaps it is also important that I work under MacOs in the current version on an M2 chip

this is my project path: "../../../../../../../../../Volumes/Temp/DemoMaui/Apps/Demo.Maui/Demo.Maui.Shared"

app.css: The path "../../../../../../../../../Volumes/Temp/DemoMaui/Apps/Demo.Maui/Demo.Maui.Shared/wwwroot/app.css" would lead to a file outside the app bundle and cannot be used.
MainLayout.razor: The path "../../../../../../../../../Volumes/Temp/DemoMaui/Apps/Demo.Maui/Demo.Maui.Shared/Layout/MainLayout.razor" would result in a file outside the app bundle and cannot be used.
Home.razor: The path "../../../../../../../../../Volumes/Temp/DemoMaui/Apps/Demo.Maui/Demo.Maui.Shared/Pages/Home.razor" would lead to a file outside the app bundle and cannot be used.
Routes.razor: The path "../../../../../../../../../Volumes/Temp/DemoMaui/Apps/Demo.Maui/Demo.Maui.Shared/Routes.razor" would lead to a file outside the app bundle and cannot be used.
_Imports.razor: The path "../../../../../../../../../Volumes/Temp/DemoMaui/Apps/Demo.Maui/Demo.Maui.Shared/_Imports.razor" would result in a file outside the app bundle and cannot be used.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@KKirchhoff KKirchhoff added the t/bug Something isn't working label Feb 24, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@jfversluis jfversluis added area-blazor Blazor Hybrid / Desktop, BlazorWebView s/needs-repro Attach a solution or code which reproduces the issue labels Feb 24, 2025
@KKirchhoff
Copy link
Author

Steps to Reproduce
Create a new Maui Blazor Hybrid app
Build the whole project
Run it on MacCatalyst Platform => it works
Run it on iOS Plattform => it works
Run it on MacCatalyst Platform again => not Works
Build the whole project again
Run it on MacCatalyst Platform => it works
Run it on iOS Plattform => it works
Run it on MacCatalyst Platform again => not Works

......

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Feb 24, 2025
@KKirchhoff
Copy link
Author

It probably gives the same error message as in Issue #4061, but it's a different situation, so it's not the same problem

@jfversluis
Copy link
Member

jfversluis commented Feb 24, 2025

There must be something else, because when I repeat the steps you do it works fine for me. This is with Visual Studio Code and the .NET MAUI extension on .NET 9, everything latest version at the time of writing.

Have you reported this to JetBrains? Maybe it is something in their tooling?

@jfversluis jfversluis added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Feb 24, 2025
Copy link
Contributor

Hi @KKirchhoff. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants