protected async Task CheckPackageManagementFormat() { // check if Project has any packages installed if (!(await Project.GetInstalledPackagesAsync(Token)).Any()) { var packageManagementFormat = new PackageManagementFormat(ConfigSettings); // if default format is PackageReference then update NuGet Project if (packageManagementFormat.SelectedPackageManagementFormat == 1) { var newProject = await VsSolutionManager.UpdateNuGetProjectToPackageRef(Project); if (newProject != null) { Project = newProject; } } } }