You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of a sudden, AccessPublicizedMemberAnalyzer starts to throw this exception:
Warning AD0001: Analyzer 'BepInEx.Analyzers.AccessPublicizedMemberAnalyzer' threw an exception of type 'System.IndexOutOfRangeException' with message 'Index was outside the bounds of the array.'. (AD0001)
After some bisecting, I think it is due to this code. (Not verified in a standalone project)
// [assembly: IgnoresAccessChecksTo("UnityEngine")] is in another file.
// UnityEngine.ResourceRequest.asset getter
[HarmonyPrefix, HarmonyPatch(typeof(ResourceRequest), nameof(ResourceRequest.asset), MethodType.Getter)]
public static bool ResourceRequest_get_asset(out UnityEngine.Object __result, ResourceRequest __instance) {
__result = Resources.Load(__instance.m_Path, __instance.m_Type); // AccessPublicizedMemberAnalyzer dislike this line
return false;
}
The text was updated successfully, but these errors were encountered:
All of a sudden, AccessPublicizedMemberAnalyzer starts to throw this exception:
After some bisecting, I think it is due to this code. (Not verified in a standalone project)
The text was updated successfully, but these errors were encountered: