Failed compiling 'E:\Rust Server Tool NZ\carbon\plugins\SkinShop.cs':
1. 'MemoryCache' is inaccessible due to its protection level [CS0122]
(SkinShop 17 line 30)
Update carbon , oxide?
It looks like you're encountering a 'MemoryCache' accessibility issue in your C# code. The error (CS0122) indicates that you're trying to access 'MemoryCache,' but it's not accessible due to its protection level.
To resolve this, you can check a few things:
Namespace Import: Ensure you have the correct using directive at the top of your file.
Add the following if it's not already there:
using System.Runtime.Caching;
Check Access Modifier: Make sure that the 'MemoryCache' you're trying to use is declared with the appropriate access modifier. It should be public or have sufficient access for your current context.
For example, if you're using it within a class, it might look like this:
publicclassYourClassName
{
MemoryCache yourMemoryCache = new MemoryCache(new MemoryCacheOptions());
}
If the issue persists, could you share a bit more of the relevant code around line 30 in your 'SkinShop.cs' file? This will help me provide more specific assistance.
not found in MemoryCache ----> internal class MemoryCache : CovalencePlugin
if i put it in got
Error while compiling MemoryCache: The type or namespace name 'Caching' does not exist in the namespace 'System.Runtime' (are you missing an assembly reference?) | Line: 2, Pos: 22
not found in Skinshop ----> public class SkinShop : CovalencePlugin
public class SkinShop : CovalencePlugin
{
#region Dependencies
[PluginReference]
private MemoryCache MemoryCache;
[PluginReference] private Plugin ImageLibrary, Economics, ServerRewards;
#endregion
in Oxide its working btw.
is this abandoned? unable to message dev dierectly about it [he's disabled messaging]