A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
Added CLI publish support on Linux
Etienne Baudoux9fd8df4b364e
diff --git a/src/build/Build.cs b/src/build/Build.csindex 70eab9ad4..225ae2d4a 100644--- a/src/build/Build.cs+++ b/src/build/Build.cs@@ -336,8 +336,15 @@ class Build : NukeBuild}else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)){- // TODO- throw new NotSupportedException();+ project = LinuxSolution!.GetAllProjects(publishProject).Single();+ foreach (string targetFramework in project.GetTargetFrameworks())+ {+ yield return new DotnetParameters(project.Path, "linux-arm", targetFramework, portable: false, platform: "arm");+ yield return new DotnetParameters(project.Path, "linux-x64", targetFramework, portable: false, platform: "x64");++ yield return new DotnetParameters(project.Path, "linux-arm", targetFramework, portable: true, platform: "arm");+ yield return new DotnetParameters(project.Path, "linux-x64", targetFramework, portable: true, platform: "x64");+ }}}