示例#1
0
        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);
        }
示例#2
0
 internal NuGetManager(INuGetCore nugetCore, Core.Abstractions.IFileSystem fileSystem)
 {
     _nugetCore  = nugetCore;
     _fileSystem = fileSystem;
 }
 internal NuGetProjectFactory(Core.Abstractions.IFileSystem fileSystem, IMSBuildProjectFactory msbuildFactory)
 {
     FileSystem            = fileSystem;
     MsBuildProjectFactory = msbuildFactory;
 }
示例#4
0
 internal NuGetManager(INuGetCore nugetCore, Core.Abstractions.IFileSystem fileSystem)
 {
     _nugetCore = nugetCore;
     _fileSystem = fileSystem;
 }
 internal NuGetProjectFactory(Core.Abstractions.IFileSystem fileSystem)
     : this(fileSystem, Dependencies.MSBuildProjectFactory)
 {
 }