NDepend.API Documentation
CreateTemporaryProject Method
NDepend.Project Namespace > IProjectManager Interface : CreateTemporaryProject Method
Application assemblies file paths to analyze.
The temporary project mode: TemporaryProjectMode.Temporary, TemporaryNewer or TemporaryOlder.
Creates a new temporary project. Calling this method creates the temporary project file in a temporary directory.
Syntax

Parameters

applicationAssemblies
Application assemblies file paths to analyze.
temporaryProjectMode
The temporary project mode: TemporaryProjectMode.Temporary, TemporaryNewer or TemporaryOlder.

Return Value

The project object initialized.
Exceptions
ExceptionDescription
Problem with creating a temporary project.
Remarks
By working with temporary projects, you can create and experiment with a project without specifying a disk location or a project name.
Tree temporary projects can coexist corresponding to the three TemporaryProjectMode values, TemporaryProjectMode.Temporary, TemporaryNewer and TemporaryOlder.
Be aware that calling this method erases the current temporary project corresponding to temporaryProjectMode.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IProjectManager Interface
IProjectManager Members
TemporaryProjectMode Property