Skip to content

Commit

Permalink
fix(build): add support for older dotnet 8.0.113
Browse files Browse the repository at this point in the history
  • Loading branch information
doinkythederp committed Feb 22, 2025
1 parent 393e87a commit 9cf2633
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/BuildContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public string GetQuote(FilePath file)

var quotes = System.IO.File
.ReadAllText(file.FullPath)
.Split(['%'], StringSplitOptions.RemoveEmptyEntries);
.Split("%", StringSplitOptions.RemoveEmptyEntries);

return quotes.Length > 0 ? quotes[new Random().Next(quotes.Length)] : null;
}
Expand Down
11 changes: 6 additions & 5 deletions build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,12 @@ public override void Run(BuildContext context)
});

// Use Mono to build for net48 since dotnet can't use WinForms on Linux
context.MSBuild(context.Solution,
settings => settings
.SetConfiguration(context.BuildConfiguration)
.SetMaxCpuCount(0)
.WithProperty("TargetFramework", context.BuildNetFramework));
context.MSBuild(context.Solution, new MSBuildSettings
{
Configuration = context.BuildConfiguration,
MaxCpuCount = 0,
Properties = { { "TargetFramework", [context.BuildNetFramework] } },
});
// Use dotnet to build the stuff Mono can't build
context.DotNetBuild(context.Solution, new DotNetBuildSettings
{
Expand Down

0 comments on commit 9cf2633

Please sign in to comment.