CommonProjectContext Class

Definition

Represents the project information on which scaffolding is being done.

public ref class CommonProjectContext : Microsoft::VisualStudio::Web::CodeGeneration::Contracts::ProjectModel::IProjectContext
public class CommonProjectContext : Microsoft.VisualStudio.Web.CodeGeneration.Contracts.ProjectModel.IProjectContext
type CommonProjectContext = class
    interface IProjectContext
Public Class CommonProjectContext
Implements IProjectContext
Inheritance
CommonProjectContext
Implements

Constructors

CommonProjectContext()

Properties

AssemblyFullPath

The full path of the project output.

AssemblyName

File name of the project output.

CompilationAssemblies

Assemblies required for compilation of the project.

CompilationItems

Items included for compilation in the project. <Compile Include="" />

Config

Full path to config file for the assembly. Usually AssemblyFullPath + ".config"

Configuration

Project Configuration.

DepsFile

Full path to deps.json file of the built project.

EmbededItems

Items inlcuded as embedded resources. <EmbeddedResource Include="" />

IsClassLibrary

Specifies whether the output of the project is a class library.

PackageDependencies

NuGet dependencies of the project.

PackagesDirectory

NuGet package root for the project.

Platform

Platform targeted by the project.

ProjectFullPath

Full path to the csproj file of the project.

ProjectName

Name of the project.

ProjectReferenceInformation

Collection of information regarding the project references.

ProjectReferences

Paths to project references (direct and indirect) of the project.

RootNamespace

Default namespace for the project.

RuntimeConfig

Full path to runtimeconfig.json file for the project.

TargetDirectory

Full path of the Output directory.

TargetFramework

TargetFramework for the project. If the project has multiple frameworks, all of the information in the ProjectContext is specific to this TargetFramework.

Extension Methods

GetPackage(IProjectContext, String)
GetReferencingPackages(IProjectContext, String)

Applies to