GetDependenciesDirectory() public static method

public static GetDependenciesDirectory ( string projectFile ) : string
projectFile string
return string
コード例 #1
0
    public void ProcessAttributeFile(Project project)
    {
        var dependenciesDirectory = ProjectReader.GetDependenciesDirectory(project.FullName);

        if (dependenciesDirectory == null)
        {
            return;
        }

        var directoryInfo = fullPathResolver.GetFullPath(dependenciesDirectory, project);
        var targetFile    = new FileInfo(Path.Combine(directoryInfo.FullName, "NotifyPropertyWeaver.dll"));

        if (!targetFile.Exists)
        {
            return;
        }
        if (VersionChecker.IsVersionNewer(targetFile))
        {
            var frameworkType = FrameworkTypeReader.GetFrameworkType(project.FullName);
            fileExporter.ExportAttribute(directoryInfo, frameworkType);
        }
    }