static void Verify(string combine) { var addinFinder = new AddinFinder( log: s => { }, solutionDirectory: Path.Combine(combine, "Solution"), msBuildTaskDirectory: Path.Combine(combine, "MsBuildDirectory/1/2/3"), nuGetPackageRoot: Path.Combine(combine, "NuGetPackageRoot"), weaverFilesFromProps: new List <string>()); addinFinder.FindAddinDirectories(); ObjectApprover.VerifyWithJson(addinFinder.FodyFiles.Select(x => x.Replace(combine, "").Replace("packages", "Packages"))); }
static void Verify(string combine) { var addinFinder = new AddinFinder( log: s => { }, solutionDirectory: Path.Combine(combine, "Solution"), msBuildTaskDirectory: Path.Combine(combine, "MsBuildDirectory/1/2/3"), nuGetPackageRoot: Path.Combine(combine, "NuGetPackageRoot"), packageDefinitions: null); addinFinder.FindAddinDirectories(); ObjectApprover.VerifyWithJson(addinFinder.FodyFiles.Select(x => x.Replace(combine, ""))); }
void FindWeavers() { var stopwatch = Stopwatch.StartNew(); Logger.LogDebug("Finding weavers"); ReadProjectWeavers(); addinFinder = new AddinFinder(Logger.LogDebug, SolutionDirectory, MSBuildDirectory, NuGetPackageRoot, PackageDefinitions); addinFinder.FindAddinDirectories(); FindWeaverProjectFile(); ConfigureWhenWeaversFound(); ConfigureWhenNoWeaversFound(); Logger.LogDebug($"Finished finding weavers {stopwatch.ElapsedMilliseconds}ms"); }
void FindWeavers() { ReadProjectWeavers(); addinFinder = new AddinFinder { Logger = Logger, SolutionDir = SolutionDir }; addinFinder.FindAddinDirectories(); FindWeaverProjectFile(); ConfigureWhenWeaversFound(); ConfigureWhenNoWeaversFound(); }
void FindWeavers() { var stopwatch = Stopwatch.StartNew(); Logger.LogDebug("Finding weavers"); ReadProjectWeavers(); addinFinder = new AddinFinder(Logger.LogDebug, SolutionDirectory, MSBuildDirectory, NuGetPackageRoot, WeaverFilesFromProps); addinFinder.FindAddinDirectories(); FindWeaverProjectFile(); ConfigureWhenWeaversFound(); ConfigureWhenNoWeaversFound(); ConfigFile.EnsureSchemaIsUpToDate(ProjectDirectory, WeaverFilesFromProps, Weavers, GenerateXsd); Logger.LogDebug($"Finished finding weavers {stopwatch.ElapsedMilliseconds}ms"); }
void FindWeavers() { var stopwatch = Stopwatch.StartNew(); Logger.LogDebug("Finding weavers"); ReadProjectWeavers(); addinFinder = new AddinFinder { Logger = Logger, SolutionDirectoryPath = SolutionDirectoryPath }; addinFinder.FindAddinDirectories(); FindWeaverProjectFile(); ConfigureWhenWeaversFound(); ConfigureWhenNoWeaversFound(); Logger.LogDebug(string.Format("Finished finding weavers {0}ms", stopwatch.ElapsedMilliseconds)); }
public void IgnoreInvalidPackageDefinitions() { var root = Path.Combine(AssemblyLocation.CurrentDirectory, "Fody/AddinFinderTest/NewNugetStructure"); var addinFinder = new AddinFinder( log: s => { }, solutionDirectory: Path.Combine(root, "Solution"), msBuildTaskDirectory: Path.Combine(root, "MsBuildDirectory/1/2/3"), nuGetPackageRoot: Path.Combine(root, "NuGetPackageRoot"), packageDefinitions: new List <string> { Path.Combine(root, "Solution/packages/Weaver.Fody/7.0.0"), Path.Combine(root, "Solution/packages/ThisIsATrap.Fody") }); addinFinder.FindAddinDirectories(); Assert.Contains( Path.Combine(root, "Solution/packages/Weaver.Fody/7.0.0/Weaver.Fody.dll").Replace('/', Path.DirectorySeparatorChar), addinFinder.FodyFiles.Select(i => i.Replace('/', Path.DirectorySeparatorChar)) ); }
void FindWeavers() { ReadProjectWeavers(); addinFinder = new AddinFinder { Logger = Logger, SolutionDirectoryPath = SolutionDirectoryPath }; addinFinder.FindAddinDirectories(); FindWeaverProjectFile(); ConfigureWhenWeaversFound(); ConfigureWhenNoWeaversFound(); }
void FindWeavers() { var stopwatch = Stopwatch.StartNew(); Logger.LogInfo("Finding weavers"); ReadProjectWeavers(); addinFinder = new AddinFinder { Logger = Logger, SolutionDirectoryPath = SolutionDirectoryPath }; addinFinder.FindAddinDirectories(); FindWeaverProjectFile(); ConfigureWhenWeaversFound(); ConfigureWhenNoWeaversFound(); Logger.LogInfo(string.Format("Finished finding weavers {0}ms", stopwatch.ElapsedMilliseconds)); }
void FindWeavers() { var stopwatch = Stopwatch.StartNew(); Logger.LogDebug("Finding weavers"); ReadProjectWeavers(); addinFinder = new AddinFinder { Logger = Logger, SolutionDirectoryPath = SolutionDirectory, NuGetPackageRoot = NuGetPackageRoot }; addinFinder.FindAddinDirectories(); FindWeaverProjectFile(); ConfigureWhenWeaversFound(); ConfigureWhenNoWeaversFound(); Logger.LogDebug($"Finished finding weavers {stopwatch.ElapsedMilliseconds}ms"); }