JetBrains.Platform.dotCover.ProjectModel
Looks for either the current or legacy solution settings.
Looks for the solution settings from the previous version of R#.
Indicates that the structure of the solution, the properties of the solution and the properties of the solution items
can be modifed
Indicates whether the structure of the project or properties of its items can be modified
Checks if the persistent version of the file is writable
Raised when files are needed to make writable. The handlers of this event must ensure that the documents are
really writable.
Adds specified file to the project
Parent folder
Path to the file being added
Reference to the new project item
Adds a directory to the project
/// Parent folder
Name of the directory being added
Reference to the new project item
Renames the project item.
Moves the project item so that it becomes a child of the specified parent.
Project item to move
newParentItem == null means project becomes a top-level one
Cpoies the project item so that it's copy becomes a child of the specified parent.
Project item to copy
newParentItem == null means project becomes a top-level one
Reference to the new project item
Removes project item.
Shows the Solution Explorer and sets selection to , if defined.
A valid project item to select in Solution Explorer, or Null to just activate the Solution Explorer window (if ).
Whether to activate the Solution Explorer window.
Success flag.
Common build settings for all projects
Project which the configuration belongs to
Name of the configuration
Output path of the configuration, i.e. path where output files are placed
Handy root interface for all object of ProjectModel
Retrieves the value of a property given the property's name
Time of last modification of the corresponding file on the file system.
Note that this value is cached and is updated only when the synchronization with the file system is performed.
That is, the value returned by this method may sometimes differ from the actual modification stamp of the physical file,
if the file was modified since last synchronization with the file system.
Common interface for and
The platform to which the module is targeted
Implementing these functions gets manager a chance to control file behavior.
Result of the modification, if the manager has handled modification; null, otherwise
Returns true if assembly is disposed
Path to GAC. Test Shell uses GAC from Platform\test\assemblies\GAC*
Path to GAC 4.0. Test Shell uses GAC from Platform\test\assemblies\GAC*
Tries to find Windows SDK v6 or higher and returns the path to its Bin folder, or Null if not found.
A modification cookie for a set of documents that are project-file-based.
Gets the set of project files involved in this modification.
Gets an icon for project model element
Icon or null if unhandled by this presenter
Gets presentable location for project model element.
Used in Recent Files, Recent Edits, Go To File etc
Presentable location for project model element or null if unhandled by this presenter
Collection of standard icons
Describes what happens with a project file during build
Returns the root directory of all include patterns
Indicates that the persistent version of the assembly is not found
Check if given assembly is .NET framework assembly
Root interface for all objects associated with a project
Gets the project that owns this project element.
On an , returns self.
Returns persistent ID of the project element. This ID remains valid between sessions,
but does not survive after renaming or moving the element.
Returns true if the project item is a member of a project hierarchy
Otherwise (e.g. the item or an its ancestor has been deleted), returns false
Gets or sets whether the indicator should be visible. Shows or hides the indicator with a delay, to avoid flickering.
Returns name of the output assembly of a referenced project if is able to fetch. Null otherwise
Returns name of the output assembly of a referenced project if is able to fetch. Null otherwise
Represents loaded resolved assembly reference.
Base class for project item implementations
Interface to a project item. Project item is a member of a project's hierarchy
Returns project path as a string containing names of the project items from the root to the item delimited by “/”.
Parent item for the item.
Location of the file associated with the item.
Returns the type of the project item.
Returns true if the project item is linked to its parent folder. This means that the persistent version
of the item is not located in the persistent version of the parent folder.
Represents a file in a project
Marks the file as reconciled, i.e. its persistent and in-memory version are identical, by assigning its external version timestamp the same value as of the in-memory version
Marks the file as reconciled, i.e. its persistent and in-memory version are identical, by assigning its in-memory version timestamp the same value as of the external version
Create new read-only stream for this file
Don't forget to dispose it!
Creates new writable stream for this file
Don't forget to dispose it!
Returns object for manipulating project file properties
Language in which the file is written
Timestamp corresponding to the last in-memory modification
Equals to the LastExternalModificationStamp if the file has not been modified in memory
Timestamp corresponding to the last external modification
Time of last modification of the corresponding file on the file system.
Note that this value is cached and is updated only when the synchronization with the file system is performed.
That is, the value returned by this method may sometimes differ from the actual modification stamp of the physical file,
if the file was modified since last synchronization with the file system.
Checks if the persistent version of the file does not exist
Indicates that the persistent version of the file has changed externally since the last reconciliation
Indicates that the in-memory version of the file has changed since the last reconciliation
Propagates changes made to the project tree into the project file
Represents a folder in a project
Determines if the specified location matches the folder's include and exclude patterns
Returns project item, if any, at the given location
Returns sub item given the name.
Subitems of the item.
Interface to a project
All assemblies referenced in the project
All projects referenced in the project
All assembly and project references
Retrieves module reference by the module name
It is assumed that the name uniquely identifies the module among referenced modules (both projects and assemblies)
For projects use ProjectReferenceExtension.GetReferencedName
Makes the project reference the specified module
Adds assembly with the specified name to the project's references
location indicates assembly location. Null or empty id unknown
Adds the specified library to the project's references
Adds the specified project to the project's references
Removes the specified library from project's references
Removes the specified project from project's references. Does nothing if the project does not reference the specified project
Forces resolve of module references.
Should be invoked after changes that might affect reference resolution (e.g. ReferencePathProperty)
Language type of sources of the project
Returns project item representing the project file. Can be Null for the misc items project.
Solution is a group of related projects
Indicates if the solution has not been persisted
Indicates if the solution was opened
Returns if the solution is among the solutions in the SolutionManager
Gets the full path for the solution settings file, which includes the product version now.
Suffix for the solution settings file (the trailing extensions), scope-dependent, leading dot included.
Usually, ".resharper.user" and ".resharper"
Stores given value by specified key.
Use PutData(key, null) to remove the association.
Retrieves value associated with given key.
Returns null when no value is associated.
Represents atomic operation on project model
defines the order of presenters. Presenters are checked in descending order.
Priority defines the order of presenters. Presenters are checked in ascending order.
Gets presentation text for project item, as was last generated via
Type of the output assembly according to C# compiler options
Gets whether this is a project from the user's perspective, eg a project node in the Solution Explorer.
This excludes the solution folders and fake projects introduced by R# project model to emulate the website queer things.
Looks up the project by its full path, which is either the project folder path or the project file path (not available for some project kinds). Throws if missing or ambiguous.
Owning solution.
Project location or project file location.
The project.
Looks up the project by its full path, which is either the project folder path or the project file path (not available for some project kinds). Null if missing or ambiguous.
Owning solution.
Project location or project file location.
The project, or Null.
Provides a reference-counter based mechanism for keeping non-project items
Global component that manages resolution of assembly references, i.e. mapping between assembly references
and assembly files in the file system