Note: This API documentation is for FAKE version 4. The migration API documentation can be found
here. The API documentation for the new fake 5 modules can be found
here
ProjectFile
A small abstraction over MSBuild project files.
Constructors
Constructor | Description |
new(projectFileName, documentContent)
Signature: (projectFileName:string * documentContent:string) -> ProjectFile
|
Instance members
Instance member | Description |
x.AddContentFile(fileName)
Signature: fileName:string -> ProjectFile
|
Add a file to the Content nodes |
x.AddFile(fileName)
Signature: fileName:string -> ProjectFile
|
Add a file to the Compile nodes |
x.ContentFiles
Signature: string list
|
All files which are in "Content" sections |
x.Files
Signature: string list
|
All files which are in "Compile" sections |
x.FindDuplicateContentFiles()
Signature: unit -> string list
|
Finds duplicate files which are in "Content" sections |
x.FindDuplicateFiles()
Signature: unit -> string list
|
Finds duplicate files which are in "Compile" sections |
x.ProjectFileName
Signature: string
|
The project file name |
x.RemoveContentFile(fileName)
Signature: fileName:string -> ProjectFile
|
Removes a file from the Content nodes |
x.RemoveDuplicates()
Signature: unit -> ProjectFile
|
|
x.RemoveDuplicatesContent()
Signature: unit -> ProjectFile
|
|
x.RemoveFile(fileName)
Signature: fileName:string -> ProjectFile
|
Removes a file from the Compile nodes |
x.Save(fileName)
Signature: (fileName:string option) -> unit
|
Saves the project file |
Static members
Static member | Description |
ProjectFile.FromFile(projectFileName)
Signature: projectFileName:string -> ProjectFile
|
Read a Project from a FileName |