GetFile() public abstract method

public abstract GetFile ( string name ) : IFile
name string
return IFile
Ejemplo n.º 1
0
        /// <summary>
        /// Reads dependencies from packages.config file.
        /// </summary>
        public GenerateNuGetSpecTask WithDependenciesFromPackagesConfig(IDirectory projectDirectory, bool ignoreFrameworkVersion = false)
        {
            var packagesConfigFile = projectDirectory.GetFile("packages.config");
            if (packagesConfigFile.Exists)
            {
                WithDependenciesFromPackagesConfig(packagesConfigFile, ignoreFrameworkVersion);
            }

            return this;
        }
Ejemplo n.º 2
0
 public override void CopyTo(IDirectory directory)
 {
     CopyTo(directory.GetFile(Name));
 }