IProjectContext Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the project information on which scaffolding is being done.
public interface class IProjectContext
public interface IProjectContext
type IProjectContext = interface
Public Interface IProjectContext
- Derived
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) |