Paket


ProjectFile

Namespace: Paket

Contains methods to read and manipulate project files.

Record Fields

Record FieldDescription
CalculatedProperties
Signature: ConcurrentDictionary<Map<string,string>,Map<string,string>>
Modifiers: mutable
DefaultProperties
Signature: Map<string,string> option
Modifiers: mutable
Document
Signature: XmlDocument
FileName
Signature: string
Language
Signature: ProjectLanguage
OriginalText
Signature: string
ProjectNode
Signature: XmlNode

Instance members

Instance memberDescription
AddImportForPaketTargets(...)
Signature: relativeTargetsPath:string -> unit
CreateNode(name, text)
Signature: (name:string * text:string) -> XmlElement
CreateNode(name)
Signature: name:string -> XmlElement
DeleteCustomModelNodes(model)
Signature: model:InstallModel -> unit
DeleteIfEmpty(name)
Signature: name:string -> bool
DeletePaketNodes(name)
Signature: name:string -> unit
DetermineBuildAction(fileName)
Signature: fileName:string -> BuildAction
DetermineBuildActionForRemoteItems(...)
Signature: fileName:string -> BuildAction
FindCorrespondingFile(correspondingFile)
Signature: correspondingFile:string -> string option
FindLocalizedLanguageNames()
Signature: unit -> string list
FindOrCreateReferencesFile()
Signature: unit -> ReferencesFile
FindPaketNodes(name)
Signature: name:string -> XmlNode list
FindReferencesFile()
Signature: unit -> string option
FindTemplatesFile()
Signature: unit -> string option
GenerateXml(...)
Signature: (model:InstallModel * usedFrameworkLibs:HashSet<TargetProfile * string> * aliases:Map<string,string> * copyLocal:bool option * specificVersion:bool option * importTargets:bool * allTargetProfiles:'?7999 * referenceCondition:string option) -> XmlContext
Type parameters: '?7999
GetAllInterProjectDependenciesWithoutProjectTemplates(...)
Signature: (cache:(Dictionary<int,ProjectFile> * Dictionary<string,int list>)) -> seq<ProjectFile>
GetAllInterProjectDependenciesWithProjectTemplates(...)
Signature: (cache:(Dictionary<int,ProjectFile> * Dictionary<string,int list>)) -> seq<ProjectFile>
GetAllReferencedProjects(...)
Signature: (onlyWithOutput:bool * cache:(Dictionary<int,ProjectFile> * Dictionary<string,int list>)) -> seq<ProjectFile>
GetAssemblyName()
Signature: unit -> string
GetCliToolReferences()
Signature: unit -> string list
GetCompileItems(...)
Signature: includeReferencedProjects:bool -> (cache:(Dictionary<int,ProjectFile> * Dictionary<string,int list>)) -> seq<CompileItem>
GetCustomModelNodes(model)
Signature: model:InstallModel -> XmlNode list
GetCustomReferenceAndFrameworkNodes()
Signature: unit -> XmlNode list
GetFrameworkAssemblies()
Signature: unit -> string list
GetInterProjectDependencies()
Signature: unit -> ProjectReference list
GetOutputDirectory(...)
Signature: buildConfiguration:string -> buildPlatform:string -> string
GetPackageReferences()
Signature: unit -> string list
GetPaketFileItems()
Signature: unit -> FileInfo list
GetProjectGuid()
Signature: unit -> Guid
GetProjects(...)
Signature: includeReferencedProjects:bool -> (cache:(Dictionary<int,ProjectFile> * Dictionary<string,int list>)) -> seq<ProjectFile>
GetProperty(propertyName)
Signature: propertyName:string -> string option
GetPropertyWithDefaults(...)
Signature: propertyName:string -> defaultProperties:Map<string,string> -> string option
GetTargetFrameworkIdentifier()
Signature: unit -> string option
GetTargetFrameworkProfile()
Signature: unit -> string option
GetTargetProfile()
Signature: unit -> TargetProfile
GetTemplateMetadata()
Signature: unit -> ProjectCoreInfo * OptionalPackagingInfo
GetToolsVersion()
Signature: unit -> float
HasPackageInstalled(groupName, package)
Signature: (groupName:GroupName * package:PackageName) -> bool
Name
Signature: string

CompiledName: get_Name

NameWithoutExtension
Signature: string

CompiledName: get_NameWithoutExtension

OutputType
Signature: ProjectOutputType

CompiledName: get_OutputType

ProjectsWithoutTemplates(projects)
Signature: projects:seq<ProjectFile> -> seq<ProjectFile>
ProjectsWithTemplates(projects)
Signature: projects:seq<ProjectFile> -> seq<ProjectFile>
RemoveCliToolReferenceEntries()
Signature: unit -> unit
RemoveImportAndTargetEntries(packages)
Signature: (packages:(string * SemVerInfo) list) -> unit
RemoveImportForPaketTargets()
Signature: unit -> unit
RemoveNugetAnalysers(packages)
Signature: (packages:(string * SemVerInfo) list) -> unit
RemoveNuGetPackageImportStamp()
Signature: unit -> unit
RemoveNuGetTargetsEntries()
Signature: unit -> unit
RemovePackageReferenceEntries()
Signature: unit -> unit
RemovePaketNodes()
Signature: unit -> unit
ReplaceNuGetPackagesFile()
Signature: unit -> unit
Save(forceTouch)
Signature: forceTouch:bool -> unit
UpdateFileItems(fileItems)
Signature: (fileItems:FileItem list) -> unit
UpdateReferences(...)
Signature: (root:'b * completeModel:Map<(GroupName * PackageName),('c * InstallModel)> * directDependencies:Map<(GroupName * PackageName),('d * InstallSettings)> * usedPackages:Map<(GroupName * PackageName),('e * InstallSettings)>) -> unit
Type parameters: 'b, 'c, 'd, 'e

Static members

Static memberDescription
FindAllProjectFiles(folder)
Signature: folder:string -> FileInfo []

Finds all project files

FindAllProjects(folder)
Signature: folder:string -> ProjectFile []

Finds all project files

FindCorrespondingFile(...)
Signature: (projectFile:FileInfo * correspondingFile:string) -> string option
FindOrCreateReferencesFile(projectFile)
Signature: projectFile:FileInfo -> ReferencesFile
FindReferencesFile(projectFile)
Signature: projectFile:FileInfo -> string option
LoadFromFile(fileName)
Signature: fileName:string -> ProjectFile
LoadFromStream(fullName, stream)
Signature: (fullName:string * stream:Stream) -> ProjectFile
LoadFromString(fullName, text)
Signature: (fullName:string * text:string) -> ProjectFile
TryFindProject(projects, projectName)
Signature: (projects:seq<ProjectFile> * projectName:string) -> ProjectFile option
TryLoad(fileName)
Signature: fileName:string -> ProjectFile option
Fork me on GitHub