var rootPath = new FilePath(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); var path = rootPath / ".nuget" / "packages";