private IProjectValueDataSource <PackageRestoreConfiguredInput> GetProjectRestoreDataSource(ConfiguredProject project)
        {
            // Get the individual configuration's view of the restore data
            IPackageRestoreConfiguredInputDataSource dataSource = project.Services.ExportProvider.GetExportedValue <IPackageRestoreConfiguredInputDataSource>();

            // Wrap it in a data source that will drop project version and identity versions so as they will never agree
            // on these versions as they are unique to each configuration. They'll be consistent by all other versions.
            return(new DropConfiguredProjectVersionDataSource <PackageRestoreConfiguredInput>(_project.Services, dataSource));
        }
Exemple #2
0
 private IProjectValueDataSource <PackageRestoreConfiguredInput> DropConfiguredProjectVersions(IPackageRestoreConfiguredInputDataSource dataSource)
 {
     // Wrap it in a data source that will drop project version and identity versions so as they will never agree
     // on these versions as they are unique to each configuration. They'll be consistent by all other versions.
     return(new DropConfiguredProjectVersionDataSource <PackageRestoreConfiguredInput>(_project, dataSource));
 }