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

Move project to core 3.0 and get ERROR #10

Closed
TemoxaGreenMoney opened this issue Sep 24, 2019 · 5 comments
Closed

Move project to core 3.0 and get ERROR #10

TemoxaGreenMoney opened this issue Sep 24, 2019 · 5 comments

Comments

@TemoxaGreenMoney
Copy link

public void ConfigureServices(IServiceCollection services)
{
           services.AddWebOptimizer(pipeline =>
            {
                pipeline.AddScssBundle("/scss/site.min.css", "/scss/site.scss");
            });
}

public void Configure() 
{
         app.UseWebOptimizer();
         app.UseStaticFiles();
         app.UseRouting();
         app.UseEndpoints(endpoints =>
            {
                endpoints.MapDefaultControllerRoute();
            });
}

When run application and trying get scss/site.min.css crahed with error

System.MissingMethodException: Method not found: 'Microsoft.Extensions.FileProviders.IFileProvider WebOptimizer.AssetExtensions.GetFileProvider(WebOptimizer.IAsset, Microsoft.AspNetCore.Hosting.IHostingEnvironment)'. at WebOptimizer.Sass.Compiler.ExecuteAsync(IAssetContext context) at WebOptimizer.Asset.ExecuteAsync(HttpContext context, IWebOptimizerOptions options) at WebOptimizer.AssetBuilder.BuildAsync(IAsset asset, HttpContext context, IWebOptimizerOptions options) at WebOptimizer.AssetMiddleware.HandleAssetAsync(HttpContext context, IAsset asset, WebOptimizerOptions options) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication1 application)`

and in brower get 500 error code Not found file

Can you help me ?

@Socratezz
Copy link

I am having the exact same issue. I think the newest version of the package needs to be released to NuGet.

@StaticBR
Copy link

This is fixed, see: #8
I already requested a release, see: #9
But nothing is happening :/

@TemoxaGreenMoney
Copy link
Author

This release exists in Nuget with check "Include prerelease", but error saved (

@skimedic
Copy link
Collaborator

Try it now with the latest 3.x version from NuGet.

@TemoxaGreenMoney
Copy link
Author

Thanks, i updated latest 3.x version from Nuget and error hide !

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

4 participants