Skip to content

.Net 6 doesnt work without Startup-Program structure #49

Open
@EmilAlipiev

Description

I have upgraded my Blazor Wasm application from .net 5 to .net 6. and nothing works. Code below just works fine on .net 5. But once migrated to .net 6 using only Program.cs, not bunding at all. I tried also with fresh new project from VS template and result it the same.
however if i am on .net 6 and if i continue using startup file, it works fine. What could be the deal here? I dont see any exception thrown.

  builder.Services.AddWebOptimizer(pipeline =>
    {
        pipeline.CompileScssFiles();
        pipeline.AddCssBundle("/css/app.css", "/sass/app.scss");
    });

here is a simple repro

BlazorAppWebOptimzer.zip

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions