Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ IOptions<AppConfigurationLocationSetting> settings

public IReadOnlyCollection<SyntaxTree> GetSyntaxTrees()
{
var fullPath = Path.GetFullPath(_settings.ApplicationConfigurationFolder);
// Get the paths for all .cs files recursively in app folder
var csFiles = Directory.EnumerateFiles(
_settings.ApplicationConfigurationFolder,
fullPath,
"*.cs",
SearchOption.AllDirectories).ToArray();

Expand All @@ -32,4 +33,4 @@ public IReadOnlyCollection<SyntaxTree> GetSyntaxTrees()
select syntaxTree);
return result;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ public static IHostBuilder UseNetDaemonAppSettings(this IHostBuilder hostBuilder
config.AddEnvironmentVariables();
var c = config.Build();
var locationSetting = c.GetSection("NetDaemon").Get<AppConfigurationLocationSetting>();

var fullPath = Path.GetFullPath(locationSetting.ApplicationConfigurationFolder);

config.AddYamlAppConfig(
locationSetting.ApplicationConfigurationFolder);
fullPath);
});
}

Expand All @@ -41,4 +44,4 @@ public static IHostBuilder UseNetDaemonRuntime(this IHostBuilder hostBuilder)
services.AddSingleton<IRuntime, NetDaemonRuntime>();
});
}
}
}