Krzysztof Krysiński 2 vuotta sitten
vanhempi
commit
1c3cb41a35

+ 9 - 1
src/PixiEditor.Builder/build/Program.cs

@@ -31,6 +31,8 @@ public class BuildContext : FrostingContext
 
     public string OutputDirectory { get; set; } = "Builds";
 
+    public bool SelfContained { get; set; } = false;
+    
     public string Runtime { get; set; }
 
     public BuildContext(ICakeContext context)
@@ -58,6 +60,12 @@ public class BuildContext : FrostingContext
         {
             OutputDirectory = context.Arguments.GetArgument("o");
         }
+        
+        bool hasSelfContained = context.Arguments.HasArgument("self-contained");
+        if (hasSelfContained)
+        {
+            SelfContained = true;
+        }
 
         Runtime = context.Arguments.GetArgument("runtime");
     }
@@ -111,7 +119,7 @@ public sealed class BuildProjectTask : FrostingTask<BuildContext>
         var settings = new DotNetPublishSettings()
         {
             Configuration = context.BuildConfiguration,
-            SelfContained = false,
+            SelfContained = context.SelfContained,
             Runtime = context.Runtime,
             OutputDirectory = context.OutputDirectory,
         };

+ 2 - 2
src/PixiEditor/Properties/AssemblyInfo.cs

@@ -50,5 +50,5 @@ using System.Windows;
 // You can specify all the values or you can default the Build and Revision Numbers
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.1.9.9")]
-[assembly: AssemblyFileVersion("0.1.9.9")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]