Why I cannot find Blazorise scripts and it has not found content directory?

All done by .

DirectoryNotFoundException: Could not find a part of the path \wwwroot\_content

4

1 Answer

It helps if you have another root path

var builder = WebApplication.CreateBuilder(new WebApplicationOptions
{ WebRootPath = "wwwroot", Args = args
});

or use only

var builder = WebApplication.CreateBuilder(args);

then

builder.WebHost.UseStaticWebAssets();

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like