ProjectExtensions Class

Helpful extension methods for code generators.

System.Object
  Microsoft.AspNet.Scaffolding.ProjectExtensions

Namespace:  Microsoft.AspNet.Scaffolding
Assembly:  Microsoft.AspNet.Scaffolding.12.0 (in Microsoft.AspNet.Scaffolding.12.0.dll)

public static class ProjectExtensions

The ProjectExtensions type exposes the following members.

  NameDescription
Public methodStatic memberGetAssemblyPathGet the output path of built assembly for the given project according to the selected configuration.
Public methodStatic memberGetAssemblyReferenceGets the reference with the given identity (assembly name minus extension) for the given project.
Public methodStatic memberGetAssemblyReferences(Project)Gets the list of file paths of assembly references for the given project.
Public methodStatic memberGetAssemblyReferences(Project, Boolean)Gets the list of file paths of assembly references for the given project with the ability to select whether to include the references from referenced projects in solution.
Public methodStatic memberGetCodeLanguageGets the code language for the project. For the web site projects, Unsupported is returned.
Public methodStatic memberGetDefaultNamespace(Project)Gets the default namespace of the project.
Public methodStatic memberGetDefaultNamespace(ProjectItem)Gets the default namespace of the project item.
Public methodStatic memberGetFullPath(Project)Gets the full physical path for a given project.
Public methodStatic memberGetFullPath(ProjectItem)Get the full physical path for a given project item.
Public methodStatic memberGetPropertyValue<TValue>(Project, String)A strongly typed helper function for getting the project properties.
Public methodStatic memberGetPropertyValue<TValue>(ProjectItem, String)A strongly typed helper function for getting the project item properties.
Public methodStatic memberGetTargetFrameworkGets the target framework of the project. Returns null if the target framework property of the project is not available. Throws an ArgumentException if the property value is in invalid format. See FrameworkName for more information.
Public methodStatic memberGetWebConfigGet the full path of web.config file or returns null if one does not exist. Useful helper for web projects.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: