internal IEnumerable <string> GetAssemblyReferencePaths() { Core.Abstractions.IFileSystem fileSystem = Dependencies.FileSystem; HashSet <string> referenceList = new HashSet <string>(); var references = project.GetItemsWithMetadataProperty("Reference", "HintPath"); foreach (var name in references.Keys) { var assemblyPath = references[name]; if (!Path.IsPathRooted(assemblyPath)) { // make sure these are absolute paths, as anybody other than this project won't know the root. assemblyPath = PathUtility.GetAbsolutePath(PathUtility.EnsureTrailingSlash(Root), assemblyPath); } if (fileSystem.FileExists(assemblyPath)) { referenceList.Add(assemblyPath); } } return(referenceList); }
internal NuGetManager(INuGetCore nugetCore, Core.Abstractions.IFileSystem fileSystem) { _nugetCore = nugetCore; _fileSystem = fileSystem; }
internal NuGetProjectFactory(Core.Abstractions.IFileSystem fileSystem, IMSBuildProjectFactory msbuildFactory) { FileSystem = fileSystem; MsBuildProjectFactory = msbuildFactory; }
internal NuGetProjectFactory(Core.Abstractions.IFileSystem fileSystem) : this(fileSystem, Dependencies.MSBuildProjectFactory) { }