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

when I build my C++ project, there is a warning:


RulesCompiler.GetModuleFilename() is obsolete.

this code is in MyProject.Build.cs

Start a new C++ project via the editor, and then compare to see what is amiss in your project?

Rama

thx for your suggestion, but Template Projects have no sample of building.

I was getting this error when constructing a path for my module’s directory, which it turns out you can use just plain ModuleDirectory for. Don’t know if this is really relevant, but that was the only usage in my code.

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