Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Dec 10, 2024
1 parent bbde076 commit 9435f0d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions PrismSharp.SourceGenerator/RegexCompilerGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,11 @@ private static void CompileNET45(KeyValuePair<string, string>[] languageDefiniti
new XmlSerializer(typeof(Root)).Serialize(fsXml, root);
fsXml.Dispose();

var isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);

// File API is forbidden, but you're fine to execute a process? Really?
var psi = new ProcessStartInfo
{
FileName = isLinux ? "mono" : "dotnet",
Arguments = $"{tempPath} {tempPathXml}" ,
FileName = tempPath,
Arguments = tempPathXml ,
WorkingDirectory = outputDirectory,
RedirectStandardOutput = true,
RedirectStandardError = true,
Expand Down

0 comments on commit 9435f0d

Please sign in to comment.