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

Fix Razor Scoped CSS so it doesn't cause errors in iOS/MacCatalyst bundle targets #2981

Closed
Eilon opened this issue Oct 15, 2021 · 2 comments
Closed
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView t/bug Something isn't working
Projects

Comments

@Eilon
Copy link
Member

Eilon commented Oct 15, 2021

In PR #2938 a temporary workaround was added to ensure that Razor Scoped CSS is not "seen" by the iOS/MacCatalyst bundling targets because they cause an error.

This is the workaround:
https://github.com/dotnet/maui/pull/2938/files#diff-a403e09c8175f7c626397dc3695070bc822b977346468fe4cc11504388bbc68bR39-R41

And this is the error it would otherwise cause (without the workaround):

Shared/MainLayout.razor.css The path '../../../../../../../../templatesTest/mauiblazor Space-Dash/Shared/MainLayout.razor.css' would result in a file outside of the app bundle and cannot be used.
         [/Users/builder/azdo/_work/1/templatesTest/mauiblazor Space-Dash/mauiblazor Space-Dash.csproj]
Shared/NavMenu.razor.css The path '../../../../../../../../templatesTest/mauiblazor Space-Dash/Shared/NavMenu.razor.css' would result in a file outside of the app bundle and cannot be used.
         [/Users/builder/azdo/_work/1/templatesTest/mauiblazor Space-Dash/mauiblazor Space-Dash.csproj]
@javiercn
Copy link
Member

This is addressed in 6c99396 too. See the explanation #3014 (comment)

@javiercn
Copy link
Member

Addressed by #4861

Triage automation moved this from Ready For Work to Done Feb 25, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView t/bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

3 participants