Simple unnecessary build prevention

This commit is contained in:
Simon Lübeß
2026-04-13 19:58:55 +02:00
parent 28ad9298af
commit aad44dd835
8 changed files with 426 additions and 8 deletions
+22 -1
View File
@@ -12,7 +12,7 @@ class ScriptCoreModule : Module
public override async Task<bool> Run(BuildInfo buildInfo)
{
string projectFile = Path.Join(buildInfo.WorkingDirectory.WorkspaceRoot, "ScriptCore/ScriptCore.csproj");
string projectFile = Path.Join(buildInfo.WorkingDirectory.WorkspaceRoot, "ScriptCore", "ScriptCore.csproj");
if (buildInfo.BuildDebug)
{
@@ -26,4 +26,25 @@ class ScriptCoreModule : Module
return true;
}
protected override List<WatchedSource> GetWatchedSources(BuildInfo buildInfo)
{
List<WatchedSource> sources = new();
// Watch ScriptGlue-Definitions file by content
sources.Add(new WatchedSource("generated/ScriptGlue.json", WatchMode.Content));
// Watch source files by metadata
sources.Add(new WatchedSource("ScriptCore/", WatchMode.Metadata)
{
Recursive = true,
ExcludedDirectories =
[
"bin",
"obj"
]
});
return sources;
}
}