Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 563 Bytes
using System.IO;
public partial class Processor
{
public string PackagesPath;
string GetPackagesPath()
{
var packagesPathFromConfig = NugetConfigReader.GetPackagesPathFromConfig(SolutionDir);
if (packagesPathFromConfig!= null)
{
return packagesPathFromConfig;
}
return Path.Combine(SolutionDir, "Packages");
}
public virtual void FindNugetPackagePath()
{
PackagesPath = GetPackagesPath();
Logger.LogInfo(string.Format("Packages path is '{0}'", PackagesPath));
}
}