Skip to content

SolutionExportDev

Magnus Gether Sørensen edited this page Aug 9, 2018 · 2 revisions
(**
SolutionExportDev
*)

#load @"_Config.fsx"
open _Config

open System
open System.IO
open DG.Daxif
open DG.Daxif.Common.Utility

// Get version increment from CLI if provided, default to Revision
let versionIncrement = 
  if fsi.CommandLineArgs.Length > 1 then getVersionIncrement fsi.CommandLineArgs.[1]
  else VersionIncrement.Revision

// Ensure solution directory exists
Directory.CreateDirectory(Path.Daxif.crmSolutionsFolder)

// Update solution version
Solution.UpdateVersionNumber(Env.dev, SolutionInfo.name, versionIncrement)

// Export unmanaged
Solution.Export(Env.dev, SolutionInfo.name, Path.Daxif.crmSolutionsFolder, managed = false, extended = true);;

// Export managed
Solution.Export(Env.dev, SolutionInfo.name, Path.Daxif.crmSolutionsFolder, managed = true, extended = true)