Class ProjectFile
The in-memory model of a workspace's .rdproj project file.
public sealed record ProjectFile : IEquatable<ProjectFile>
- Inheritance
-
ProjectFile
- Implements
- Inherited Members
Constructors
ProjectFile()
public ProjectFile()
ProjectFile(ProjectFile)
public ProjectFile(ProjectFile source)
Parameters
sourceProjectFile
ProjectFile(string)
public ProjectFile(string uri)
Parameters
uristring
ProjectFile(string, RDCoreProject)
public ProjectFile(string uri, RDCoreProject project)
Parameters
uristringprojectRDCoreProject
Fields
FileName
The ProjectFile filename is the same for all instances.
public static readonly string FileName
Field Value
Properties
Configuration
An array of string values containing the relative paths of configuration settings file(s) included in this project.
public string[] Configuration { get; init; }
Property Value
- string[]
IsDirty
true if the project file has unsaved changes.
[JsonIgnore]
public bool IsDirty { get; init; }
Property Value
ProjectInfo
Describes the workspace structure (files, folders, project references, etc.)
public RDCoreProject ProjectInfo { get; init; }
Property Value
Uri
The location of the project file on disk.
[JsonIgnore]
public string Uri { get; init; }
Property Value
Remarks
This property is assigned on load rather than de/serialized, and serves as the workspace root everything else is relative to.
Version
The RDCore.ServerApp version that this project was created with.
public string Version { get; init; }
Property Value
Methods
Equals(ProjectFile?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ProjectFile? other)
Parameters
otherProjectFileAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
WithDocument(RDCoreFile)
public ProjectFile WithDocument(RDCoreFile document)
Parameters
documentRDCoreFile
Returns
WithFolder(string)
public ProjectFile WithFolder(string folder)
Parameters
folderstring
Returns
WithModule(RDCoreModule)
public ProjectFile WithModule(RDCoreModule module)
Parameters
moduleRDCoreModule
Returns
WithPrecompilerConstant(string, string)
public ProjectFile WithPrecompilerConstant(string name, string value)
Parameters
Returns
WithReference(RDCoreReference)
public ProjectFile WithReference(RDCoreReference reference)
Parameters
referenceRDCoreReference
Returns
WithUri(string)
public ProjectFile WithUri(string uri)
Parameters
uristring
Returns
WithoutDocument(RDCoreFile)
public ProjectFile WithoutDocument(RDCoreFile document)
Parameters
documentRDCoreFile
Returns
WithoutFolder(string)
public ProjectFile WithoutFolder(string folder)
Parameters
folderstring
Returns
WithoutModule(RDCoreModule)
public ProjectFile WithoutModule(RDCoreModule module)
Parameters
moduleRDCoreModule
Returns
WithoutPrecompilerConstant(string)
public ProjectFile WithoutPrecompilerConstant(string name)
Parameters
namestring
Returns
WithoutReference(RDCoreReference)
public ProjectFile WithoutReference(RDCoreReference reference)
Parameters
referenceRDCoreReference