Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

IProjectMetadata Properties

InterfaceProperties6 members
Represents metadata about a project resource.
BuildEnvironmentSection titled BuildEnvironmentvirtualIReadOnlyDictionary<string, string>
Gets the resolved environment variables that affected an externally produced build.
public virtual IReadOnlyDictionary<string, string> BuildEnvironment { get; }
IDE launchers use these values when evaluating build properties such as TargetPath. These values are not a secret transport and can appear in build diagnostics and IDE launch metadata.
BuildWorkingDirectorySection titled BuildWorkingDirectoryvirtualnullablestring?
Gets the working directory used by an externally produced build.
public virtual string? BuildWorkingDirectory { get; }
IDE launchers use this directory to select the same .NET SDK and repository configuration as the external build.
IsFileBasedAppSection titled IsFileBasedAppvirtualbool
Gets a value indicating whether the project is a file-based app (a .cs file) rather than a full project (.csproj).
public virtual bool IsFileBasedApp { get; }
Gets the launch settings associated with the project.
public virtual LaunchSettings? LaunchSettings { get; }
ProjectPathSection titled ProjectPathabstractstring
Gets the fully-qualified path to the project or file-based app file.
public abstract string ProjectPath { get; }
SuppressBuildSection titled SuppressBuildvirtualbool
Gets a value indicating whether building the project before running it should be suppressed.
public virtual bool SuppressBuild { get; }