コード例 #1
0
    /// <inheritdoc />
    public string[] GetStubRootPaths()
    {
        // First, check the "inputFile" configuration property and extract the directory of this folder.
        var inputFile = _settings.Storage?.InputFile;

        if (inputFile != null)
        {
            return(inputFile.Split(Constants.InputFileSeparators, StringSplitOptions.RemoveEmptyEntries)
                   .Select(f => _fileService.IsDirectory(f) ? f : Path.GetDirectoryName(f))
                   .ToArray());
        }

        // If no input file was provided, return the assembly path instead.
        return(new[] { _assemblyService.GetEntryAssemblyRootPath() });
    }
コード例 #2
0
        public string GetStubRootPath()
        {
            // First, check the "inputFile" configuration property and extract the directory of this folder.
            var inputFile = _settings.Storage?.InputFile;

            if (inputFile != null)
            {
                return
                    (_fileService.IsDirectory(inputFile) ?
                     inputFile :
                     Path.GetDirectoryName(inputFile));
            }

            // If no input file was provided, return the assembly path instead.
            return(_assemblyService.GetEntryAssemblyRootPath());
        }