ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / URI Property
Example

In This Topic
    URI Property (Project)
    In This Topic
    Gets the location of the current project; that is, the path to the current project file (*.aprx)
    Syntax
    public string URI {get;}
    Public ReadOnly Property URI As String
    Remarks

    When you open a project package, either from a local drive or the active portal, the package is unpacked and the project file (*.aprx) it contains is opened by ArcGIS Pro. This property gets the location of the currently open project file, not the URI of the original project package.

    Example
    Get location of current project
    //Gets the location of the current project; that is, the path to the current project file (*.aprx)  
    string projectPath = Project.Current.URI;
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also