how to resolve "RulesCompiler.GetModuleFilename() is obsolete"?

thx for your suggestion. I found that RulesCompiler.GetModuleFilename() works well in latest release version.