FrameworkName GetTargetFramework()
		{
			if (targetFramework == null) {
				targetFramework = new ProjectTargetFramework(project);
			}
			return targetFramework.TargetFrameworkName;
		}
 FrameworkName GetTargetFramework()
 {
     if (targetFramework == null)
     {
         targetFramework = new ProjectTargetFramework(project);
     }
     return(targetFramework.TargetFrameworkName);
 }
        public PackageManagementProject(
			IPackageRepository sourceRepository,
			MSBuildBasedProject project,
			IPackageManagementEvents packageManagementEvents,
			IPackageManagerFactory packageManagerFactory)
        {
            SourceRepository = sourceRepository;
            msbuildProject = project;
            targetFramework = new ProjectTargetFramework(project);
            this.packageManagementEvents = packageManagementEvents;

            packageManager = packageManagerFactory.CreatePackageManager(sourceRepository, project);
            projectManager = packageManager.ProjectManager;
        }
예제 #4
0
        public PackageManagementProject(
            IPackageRepository sourceRepository,
            MSBuildBasedProject project,
            IPackageManagementEvents packageManagementEvents,
            IPackageManagerFactory packageManagerFactory)
        {
            SourceRepository             = sourceRepository;
            msbuildProject               = project;
            targetFramework              = new ProjectTargetFramework(project);
            this.packageManagementEvents = packageManagementEvents;

            packageManager = packageManagerFactory.CreatePackageManager(sourceRepository, project);
            projectManager = packageManager.ProjectManager;
        }