FindAddinDirectories() 공개 메소드

public FindAddinDirectories ( ) : void
리턴 void
예제 #1
0
    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")));
    }
예제 #2
0
    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, "")));
    }
예제 #3
0
    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");
    }
예제 #4
0
파일: Processor.cs 프로젝트: yanglee/Fody
    void FindWeavers()
    {
        ReadProjectWeavers();
        addinFinder = new AddinFinder
        {
            Logger      = Logger,
            SolutionDir = SolutionDir
        };
        addinFinder.FindAddinDirectories();

        FindWeaverProjectFile();


        ConfigureWhenWeaversFound();

        ConfigureWhenNoWeaversFound();
    }
예제 #5
0
파일: Processor.cs 프로젝트: owodunni/Fody
    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");
    }
예제 #6
0
    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));
    }
예제 #7
0
    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))
            );
    }
예제 #8
0
파일: Processor.cs 프로젝트: R4bb/Fody
    void FindWeavers()
    {
        ReadProjectWeavers();
        addinFinder = new AddinFinder
            {
                Logger = Logger,
                SolutionDirectoryPath = SolutionDirectoryPath
            };
        addinFinder.FindAddinDirectories();

        FindWeaverProjectFile();

        ConfigureWhenWeaversFound();

        ConfigureWhenNoWeaversFound();
    }
예제 #9
0
    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));
    }
예제 #10
0
    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");
    }