public bool TryCreateNuGetProject( IVsProjectAdapter vsProjectAdapter, ProjectProviderContext context, bool forceProjectType, out NuGetProject result) { Assumes.Present(vsProjectAdapter); Assumes.Present(context); _threadingService.ThrowIfNotOnUIThread(); result = null; var projectServices = _threadingService.ExecuteSynchronously( () => TryCreateProjectServicesAsync( vsProjectAdapter, forceCreate: forceProjectType)); if (projectServices == null) { return(false); } result = new LegacyPackageReferenceProject( vsProjectAdapter, vsProjectAdapter.ProjectId, projectServices, _threadingService); return(true); }
public string GetPropertyValue(string propertyName) { return(_threadingService.ExecuteSynchronously(() => GetPropertyValueAsync(propertyName))); }
public IVsProjectAdapter CreateAdapterForFullyLoadedProject(EnvDTE.Project dteProject) { return(_threadingService.ExecuteSynchronously( () => CreateAdapterForFullyLoadedProjectAsync(dteProject))); }