-
Notifications
You must be signed in to change notification settings - Fork 259
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
Method not found: 'Void Microsoft.Extensions.Caching.Memory.MemoryCacheOptions.set_CompactOnMemoryPressure(Boolean)'. #69
Comments
Tell me more about the environment you are running: |
I just wanted to chime in on this as I have experienced the same exception in my environment. Details: It happened while I was using FluentEmail which has a razor renderer that utilizes RazorLight. The culprit is the following section:
|
It's already reported that RazorLight does not work at .NET Core 2.0 We are waiting till stable release. |
According to aspnet/Caching#320, If you are directly using the |
Hi, |
@dam3210 You can debug this yourself by opening RazorTemplateCompiler and in the file view in Visual Studio, selecting RazorLight (netcoreapp3.0) and on line 43, So, I have no idea how you are claiming you have this error. Please open a new ticket with your stack trace and details, like your csproj set-up. Please don't assume a 2 year old issue is the same one you're having. If you think it's the case, mention it at the bottom of the new issue. We don't call CompactOnMemoryPressure anywhere in the solution, so if you want good service, please give better feedback on what's not working. |
@jzabroski thnx for your support. After a while, i noticed something weird with other libraries i downloaded. So start looking into that. Apparently something went wrong with Nuget Package Manger and had nothing to do with your library. Sorry to bother you, but thanks for you help :) |
No worries. Happy bug hunting. |
I have created a class to get the static page after use RazorLight.
The code is:
public class RazorLightHelper : IRazorLightHelper where T : class, new()
{
But there is a bug happened for CreatePhysical. And Error message is Method not found: 'Void Microsoft.Extensions.Caching.Memory.MemoryCacheOptions.set_CompactOnMemoryPressure(Boolean)'.
I have no idea the reason and how to resolve it.
The text was updated successfully, but these errors were encountered: