When Central Package Management is enabled, Directory.Packages.props should be located in the directory of the project file or any of its parents.
Directory.Packages.props