Delegate A/S

SolutionExportDev

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
#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)
module _Config
namespace System
namespace System.IO
namespace DG
namespace DG.Daxif
namespace DG.Daxif.Common
module Utility

from DG.Daxif.Common
val versionIncrement : VersionIncrement

Full name: SolutionExportDev.versionIncrement
val getVersionIncrement : str:string -> VersionIncrement

Full name: DG.Daxif.Common.Utility.getVersionIncrement
type VersionIncrement =
  | Revision
  | Build
  | Minor
  | Major

Full name: DG.Daxif.VersionIncrement
union case VersionIncrement.Revision: VersionIncrement
type Directory =
  static member CreateDirectory : path:string -> DirectoryInfo + 1 overload
  static member Delete : path:string -> unit + 1 overload
  static member EnumerateDirectories : path:string -> IEnumerable<string> + 2 overloads
  static member EnumerateFileSystemEntries : path:string -> IEnumerable<string> + 2 overloads
  static member EnumerateFiles : path:string -> IEnumerable<string> + 2 overloads
  static member Exists : path:string -> bool
  static member GetAccessControl : path:string -> DirectorySecurity + 1 overload
  static member GetCreationTime : path:string -> DateTime
  static member GetCreationTimeUtc : path:string -> DateTime
  static member GetCurrentDirectory : unit -> string
  ...

Full name: System.IO.Directory
Directory.CreateDirectory(path: string) : DirectoryInfo
Directory.CreateDirectory(path: string, directorySecurity: Security.AccessControl.DirectorySecurity) : DirectoryInfo
type Path =
  static val DirectorySeparatorChar : char
  static val AltDirectorySeparatorChar : char
  static val VolumeSeparatorChar : char
  static val InvalidPathChars : char[]
  static val PathSeparator : char
  static member ChangeExtension : path:string * extension:string -> string
  static member Combine : params paths:string[] -> string + 3 overloads
  static member GetDirectoryName : path:string -> string
  static member GetExtension : path:string -> string
  static member GetFileName : path:string -> string
  ...

Full name: System.IO.Path
module Daxif

from _Config.Path


 Paths Daxif uses to store/load files
val crmSolutionsFolder : string

Full name: _Config.Path.Daxif.crmSolutionsFolder
type Solution =
  private new : unit -> Solution
  static member Count : env:Environment * solutionName:string * ?logLevel:LogLevel -> unit
  static member Create : env:Environment * name:string * displayName:string * publisherPrefix:string * ?logLevel:LogLevel -> unit
  static member CreatePublisher : env:Environment * name:string * displayName:string * prefix:string * ?logLevel:LogLevel -> unit
  static member EnablePluginSteps : env:Environment * solutionName:string * ?enable:bool * ?logLevel:LogLevel -> unit
  static member Export : env:Environment * solutionName:string * outputDirectory:string * managed:bool * ?extended:bool * ?deltaFromDate:'a0 * ?logLevel:LogLevel -> unit
  static member Extract : solutionFile:string * customizationsFolder:string * xmlMappingFile:string * projectFile:string * ?logLevel:LogLevel -> (LogLevel -> unit)
  static member GenerateCSharpContext : env:Environment * pathToXrmContext:string * outputDir:string * ?solutions:string list * ?entities:string list * ?extraArguments:(string * string) list * ?logLevel:LogLevel -> unit
  static member GenerateTypeScriptContext : env:Environment * pathToXDT:string * outputDir:string * ?solutions:string list * ?entities:string list * ?extraArguments:(string * string) list * ?logLevel:LogLevel -> unit
  static member Import : env:Environment * pathToSolutionZip:string * ?activatePluginSteps:bool * ?extended:bool * ?logLevel:LogLevel -> unit
  ...

Full name: DG.Daxif.Solution
static member Solution.UpdateVersionNumber : env:Environment * solutionName:string * ?increment:VersionIncrement * ?logLevel:LogLevel -> unit
module Env

from _Config
val dev : Environment

Full name: _Config.Env.dev
module SolutionInfo

from _Config
val name : string

Full name: _Config.SolutionInfo.name
static member Solution.Export : env:Environment * solutionName:string * outputDirectory:string * managed:bool * ?extended:bool * ?deltaFromDate:'a0 * ?logLevel:LogLevel -> unit