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

Virtual File Middleware should be compatible with IWebHostEnvironment.WebRootFileProvider #8006

Closed
hikalkan opened this issue Mar 9, 2021 · 1 comment

Comments

@hikalkan
Copy link
Member

hikalkan commented Mar 9, 2021

Instead of using a separate file provider to support the virtual file system, we will set the standard IWebHostEnvironment.WebRootFileProvider to support the virtual file system.

With this change, app.UseVirtualFiles() has been marked as Obsolete. Use the standard app.UseStaticFiles() instead.

This change makes better align with Blazor server side usage.

@xyfy
Copy link
Contributor

xyfy commented Apr 30, 2021

What's the change to use UseStaticFiles.I got some unexcepted exception after changed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants