Basically do something like this https://github.com/linkoid/Repo.Sdks/blob/main/Common.Build/Build/FindGameDirectory.props