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: reboot.css not found when hosting BlazorWebView in Windows Forms #632

Closed
hml-coder opened this issue Aug 20, 2023 · 1 comment
Closed

Comments

@hml-coder
Copy link

🐛 Bug Report

When hosting a BlazorWebView in a Windows Forms project, reboot.css is not found at runtime.

Tested 2.3.*, 2.4.1, 2.4.2 and 3.0.0-RC.1 (with and without manually adding web-components.min.js - see #631

💻 Repro or Code Sample

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Notifications</title>
    <base href="/" />
    <link href="_content/Microsoft.Fast.Components.FluentUI/reboot.css" rel="stylesheet" />
    <link href="css/app.css" rel="stylesheet" />
    <link href="ProjectName.styles.css" rel="stylesheet" />
</head>

<body>
    <div id="app">Loading...</div>

    <div id="blazor-error-ui">
        An unhandled error has occurred.
        <a href="" class="reload">Reload</a>s
        <a class="dismiss">🗙</a>
    </div>

    <script type="module" src="_content/Microsoft.Fast.Components.FluentUI/js/web-components.min.js"></script>
    <!--<script type="module" src="_content/Microsoft.Fast.Components.FluentUI/js/web-components-v2.5.16.min.js"></script>-->

    <script src="_framework/blazor.webview.js"></script>
</body>
</html>

🤔 Expected Behavior

reboot.css should be generated/downloaded at runtime

😯 Current Behavior

reboot.css is not generated/downloaded at runtime

💁 Possible Solution

Manually download reboot.css and variables.css and add links to Windows Forms project, wwwroot/index.html

🌍 Your Environment

  • OS & Device: Windows
  • Browser: Firefox
  • .NET and FAST Version: net7.0-windows, 2.3.*, 2.4.1, 2.4.2, 3.0.0-RC.1
@hml-coder
Copy link
Author

This is not a bug.

<link href="_content/Microsoft.Fast.Components.FluentUI/reboot.css" rel="stylesheet" />

should be

<link href="_content/Microsoft.Fast.Components.FluentUI/css/reboot.css" rel="stylesheet" />

@vnbaaij vnbaaij closed this as completed Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants