Click or drag to resize

Project Class

Represents a collection of CodeUnit objects (files) that are compiled together into some type of target (such as a .DLL or .EXE file).
Inheritance Hierarchy

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.22.6858.39923
Syntax
C#
public class Project : CodeObject, INamedCodeObject, 
	IFile, IComparable<Project>

The Project type exposes the following members.

Constructors
Properties
  NameDescription
Public property_AsString
This property is just to make debugging easier.
(Inherited from CodeObject.)
Public propertyAllowUnsafeBlocks
Public propertyAndroidApplication
Public propertyAndroidManifest
Public propertyAndroidResgenClass
Public propertyAndroidResgenFile
Public propertyAndroidUseLatestPlatformSdk
Public propertyAnnotations
Annotations (comments, attributes, directives, messages) associated with the current code object.
(Inherited from CodeObject.)
Public propertyAppDesignerFolder
Public propertyApplicationIcon
Public propertyAssemblyName
Public propertyAssemblyOriginatorKeyFile
Public propertyAssemblyResolver
The MonoCecilAssemblyResolver for this project.
Public propertyBaseIntermediateOutputPath
The relative base intermediate output path of the project (such as "obj\").
Public propertyCategory
The descriptive category of the code object.
Public propertyCodeAnalysisRuleSet
Public propertyCodeUnits
All of CodeUnits in the Project.
Public propertyColumnNumber
The column number associated with the CodeObject (if any, 0 if none).
(Inherited from CodeObject.)
Public propertyComment
The comment for the code object (if any).
(Inherited from CodeObject.)
Public propertyCompany
Public propertyConfigurationName
Public propertyConfigurationPlatform
Public propertyConfigurations
Public propertyCopyright
Public propertyCreateTestPage
Public propertyCurrentConfiguration
Public propertyCurrentPlatformConfiguration
Public propertyDefaultTargets
Public propertyDefineConstants
The defined constants for this project as a delimited string.
Public propertyDeploymentDirectory
Public propertyDescription
Public propertyDocComment
The documentation comment for the code object (if any).
(Inherited from CodeObject.)
Public propertyEnableDefaultItems
Public propertyEnableOutOfBrowser
Public propertyEOLComment
The End-Of-Line comment for the code object (if any).
(Inherited from CodeObject.)
Public propertyFileAlignment
Public propertyFileEncoding
The encoding of the file (normally UTF8).
Public propertyFileExists
True if the associated file exists.
Public propertyFileHasUTF8BOM
True if the file has a UTF8 byte-order-mark.
Public propertyFileItems
Public propertyFileName
The associated file name of the Project.
Public propertyFileUpgradeFlags
Public propertyFileUsingTabs
Always false for a Project. Can't be set.
Public propertyFrameworkContext
The FrameworkContext for this project, which controls all loaded assemblies.
Public propertyGenerateAssemblyFileVersionAttribute
Public propertyGenerateAssemblyInfo
Public propertyGenerateAssemblyInformationalVersionAttribute
Public propertyGenerateAssemblyVersionAttribute
Public propertyGenerateSilverlightManifest
Public propertyGlobalAttributes
All project (assembly) level attributes defined in any code unit (such as AssemblyInfo.cs).
Public propertyGlobalNamespace
The global namespace for the project.
Public propertyHasAnnotations
True if the code object has any annotations.
(Inherited from CodeObject.)
Public propertyHasAttributes
True if the code object has any attributes.
(Inherited from CodeObject.)
Public propertyHasComments
True if the code object has any comments of any kind.
(Inherited from CodeObject.)
Public propertyHasCompilerDirectives
True if the code object has any compiler directive annotations.
(Inherited from CodeObject.)
Public propertyHasDocComments
True if the code object has any documentation comments.
(Inherited from CodeObject.)
Public propertyHasEOLComments
True if the code object has any EOL comments.
(Inherited from CodeObject.)
Public propertyHasEOLOrPostAnnotations
True if the code object has any EOL or Postfix annotations.
(Inherited from CodeObject.)
Public propertyHasErrors
True if the code object has any error messages.
(Inherited from CodeObject.)
Public propertyHasFirstOnLineAnnotations
True if the code object has any annotations on separate lines.
(Inherited from CodeObject.)
Public propertyHasInfixComments
True if the code object has any Infix comments.
(Inherited from CodeObject.)
Public propertyHasMessages
True if the code object has any generated messages.
(Inherited from CodeObject.)
Public propertyHasNoIndentation
Determines if the code object has no indentation.
(Inherited from CodeObject.)
Public propertyHasNonEOLComments
True if the code object has any regular (non-doc) preceeding (non-EOL, non-Infix, non-Postfix) comments.
(Inherited from CodeObject.)
Public propertyHasPostAnnotations
True if the code object has any postfix annotations.
(Inherited from CodeObject.)
Public propertyHasTerminator
Determines if the code object has a terminator character.
(Inherited from CodeObject.)
Public propertyHiddenRef
Any hidden reference to another CodeObject.
(Inherited from CodeObject.)
Public propertyInfixComment
The infix comment for the code object (if any).
(Inherited from CodeObject.)
Public propertyIntermediateOutputPath
The relative intermediate output path of the project (such as "obj\Debug\").
Public propertyIsFirstOnLine
Determines if the code object appears as the first item on a line.
(Inherited from CodeObject.)
Public propertyIsFirstOnLineDefault
True if the code object defaults to starting on a new line.
(Inherited from CodeObject.)
Public propertyIsGenerated
Determines if the code object is generated.
(Inherited from CodeObject.)
Public propertyIsGroupingSet
Determines if the 'grouping' (has parens or braces) status has been set.
(Inherited from CodeObject.)
Public propertyIsNew
True if the Project is newly created and hasn't been saved yet.
Public propertyIsNewFormat
Public propertyIsNewLinesSet
Determines if the newline count has been set on the code object.
(Inherited from CodeObject.)
Public propertyIsPortable
True if the project is configured to use a portable class library.
Public propertyIsRenderable
Always false.
(Overrides CodeObjectIsRenderable.)
Public propertyIsSharedProject
True if the project is a shared project - meaning it contains source files which are directly imported into one or more other projects via project references.
Public propertyIsSingleLine
Determines if the code object only requires a single line for display.
(Inherited from CodeObject.)
Public propertyIsSingleLineDefault
True if the code object only requires a single line for display by default.
(Inherited from CodeObject.)
Public propertyIsWebSiteProject
True if the project is a 'website' project - meaning a web-based project that has no project file and appears in the solution tree as an 'http:\' URL instead of just a project name.
Public propertyLangVersion
Public propertyLineNumber
The line number associated with the CodeObject (if any, 0 if none).
(Inherited from CodeObject.)
Public propertyLinkedServerProject
Public propertyMinimumVisualStudioVersion
Public propertyMonoAndroidAssetsPrefix
Public propertyMonoAndroidResourcePrefix
Public propertyMSBuildBinPath
Public propertyMSBuildExtensionsPath
Public propertyMSBuildExtensionsPath32
Public propertyMSBuildExtensionsPath64
Public propertyMSBuildProgramFiles32
Public propertyMSBuildToolsPath
Public propertyMSBuildToolsVersion
Public propertyMSBuildUserExtensionsPath
Public propertyMvcBuildViews
Public propertyName
The name of the Project (does not include the file path or extension).
Public propertyNeutralLanguage
Public propertyNewLines
The number of newlines preceeding the object (0 to N).
(Inherited from CodeObject.)
Public propertyNonshipping
Public propertyNoStandardLibraries
Public propertyNotSupported
True if the project type is not currently supported.
Public propertyOldToolsVersion
Public propertyOutDir
The output directory of the Project.
Public propertyOutOfBrowserSettingsFile
Public propertyOutputPath
The output path of the Project.
Public propertyOutputType
Public propertyParent
The parent CodeObject.
(Inherited from CodeObject.)
Public propertyPlatform
Public propertyPlatformConfigurations
Public propertyPostBuildEvent
Public propertyPostfixComment
The postfix comment for the code object (if any).
(Inherited from CodeObject.)
Public propertyPreBuildEvent
Public propertyProduct
Public propertyProductVersion
Public propertyProjectGuid
Public propertyProjectPath
The path of the Project.
Public propertyProjectType
Public propertyProjectTypeGuids
Public propertyReferencePath
Public propertyReferences
All of the references for the Project.
Public propertyRootNamespace
Public propertySccAuxPath
Public propertySccLocalPath
Public propertySccProjectName
Public propertySccProvider
Public propertySchemaVersion
Public propertySdk
Public propertySignAssembly
Public propertySilverlightAppEntry
Public propertySilverlightApplication
Public propertySilverlightApplicationList
Public propertySilverlightManifestTemplate
Public propertySilverlightVersion
Public propertySolution
The parent Solution.
Public propertySolutionDir
The path of the Solution file.
Public propertyStartArguments
Public propertyStartupObject
Public propertySupportedCultures
Public propertyTargetFramework
Public propertyTargetFrameworkIdentifier
Public propertyTargetFrameworkProfile
Public propertyTargetFrameworks
Public propertyTargetFrameworkVersion
Public propertyTargetPlatform
Public propertyTargetPlatformMinVersion
Public propertyTargetPlatformVersion
Public propertyTestPageFileName
Public propertyThrowErrorsInValidation
Public propertyToolsVersion
Public propertyTypeGuid
The GUID representing the type of the Project.
Public propertyUpgradeBackupLocation
Public propertyUseIISExpress
Public propertyUsePlatformExtensions
Public propertyUserReferencePath
The ReferencePath from any "*.csproj.user" file.
Public propertyValidateXaml
Public propertyVisualStudioVersion
Public propertyVSToolsPath
Public propertyWarningLevel
Public propertyXapFilename
Public propertyXapOutputs
Public propertyXmlNamespace
Top
Methods
  NameDescription
Public methodAccept
Accept the specified visitor object for the current code object and it's children.
(Overrides CodeObjectAccept(IVisitor).)
Public methodAcceptAnnotations(IVisitor)
Accept the specified visitor object for all regular (non-EOL, non-Infix, non-Postfix) annotations (comments, attributes, compiler directives).
(Inherited from CodeObject.)
Public methodAcceptAnnotations(IVisitor, AnnotationFlags)
Accept the specified visitor object for all specified Infix or Postfix annotations (comments, compiler directives).
(Inherited from CodeObject.)
Public methodAcceptEOLComments
Accept the specified visitor object for all EOL comments.
(Inherited from CodeObject.)
Public methodAcceptInfixComments
Accept the specified visitor object for all Infix comments.
(Inherited from CodeObject.)
Public methodAcceptInfixEOLComments
Accept the specified visitor object for all Infix EOL comments.
(Inherited from CodeObject.)
Public methodAddAssemblyReference(String, String)
Add an assembly reference by name.
Public methodAddAssemblyReference(String, String, String, Boolean, String, Boolean)
Add an assembly reference by name.
Public methodAddCodeUnit
Add a CodeUnit to the Project, keeping the CodeUnits collection sorted alphabetically.
Public methodAddConfiguration
Public methodAddDefaultAssemblyReferences
Add default assembly references to a newly created project (System, System.Core, System.Data, System.Data.DataSetExtensions, System.Xml, System.Xml.Linq, Microsoft.CSharp).
Public methodAddDefaultConfigurations
Add default configurations to a newly created project (Debug and Release for AnyCPU).
Public methodAddExistingFile
Add an existing file to the project. A corresponding ProjectFileItem is also created.
Public methodAddImplicitMscorlibReference
Add the implicit reference to 'mscorlib'.
Protected methodAddImplicitSystemCoreReferenceIfNecessary
Add an implicit reference to System.Core if required.
Public methodAddPlatformConfiguration
Protected methodAddReference
Add a reference object.
Public methodAddToDictionary
Add the CodeObject to the specified dictionary.
Public methodAnnotationAdded
Add a listed annotation to the Project.
Public methodAnnotationRemoved
Remove a listed annotation from the Project.
Public methodAreInternalTypesVisibleForAssembly
Determine if internal types in the specified assembly are visible to the current project.
Public methodAreInternalTypesVisibleTo
Determine if internal types in the project are visible to the specified project.
Public methodAssociateCommentWhenParsing
Determine if the specified comment should be associated with the current code object during parsing.
(Inherited from CodeObject.)
Public methodAsString
Render the entire code object as a string, using LFs for newlines.
(Inherited from CodeObject.)
Public methodAsText
Convert the code object to text with a trailing newline, and using CR/LF pairs for newlines (file format).
(Inherited from CodeObject.)
Public methodAsText(XmlWriter)
Public methodAsText(CodeWriter, CodeObjectRenderFlags) (Overrides CodeObjectAsText(CodeWriter, CodeObjectRenderFlags).)
Public methodAsText(CodeObjectRenderFlags, Boolean, StackCodeWriterAlignmentState)
Convert the code object to text using the specified flags and format (file or string).
(Inherited from CodeObject.)
Protected methodAsTextAfter (Inherited from CodeObject.)
Public methodAsTextAnnotations(CodeWriter, CodeObjectRenderFlags)
Render all regular (non-EOL, non-Infix, non-Postfix, non-Message) annotations (comments, attributes, compiler directives).
(Inherited from CodeObject.)
Public methodAsTextAnnotations(CodeWriter, AnnotationFlags, CodeObjectRenderFlags)
Render all specified Infix or Postfix annotations (comments, compiler directives).
(Inherited from CodeObject.)
Protected methodAsTextBefore (Inherited from CodeObject.)
Public methodAsTextEOLComments
Render all EOL comments.
(Inherited from CodeObject.)
Protected methodAsTextEvaluatedType (Inherited from CodeObject.)
Public methodAsTextInfixComments
Render all Infix comments with the specified mask.
(Inherited from CodeObject.)
Public methodAsTextInfixEOLComments
Render all Infix EOL comments.
(Inherited from CodeObject.)
Public methodAsTextLeftMostAnnotations
Render all regular annotations on the current object, or the left most binary operator.
(Inherited from CodeObject.)
Public methodAsTextLength
Determine the length of the code object if converted to a string using the specified flags.
(Inherited from CodeObject.)
Public methodAttachAnnotation(Annotation, Boolean) (Inherited from CodeObject.)
Public methodAttachAnnotation(Annotation, AnnotationFlags, Boolean)
Attach an Annotation to the CodeObject at the specified position.
(Inherited from CodeObject.)
Public methodAttachComment
Create a comment object and attach it to the code object.
(Inherited from CodeObject.)
Public methodAttachEOLComment
Create an EOL comment object and attach it to the code object.
(Inherited from CodeObject.)
Public methodAttachMessage
Create a message and attach it to the code object.
(Inherited from CodeObject.)
Public methodCalculateMetrics
Calculate metrics for this code object and its children.
(Inherited from CodeObject.)
Protected methodCheckForAlignment
Check for alignment of any EOL comments.
(Inherited from CodeObject.)
Public methodClone
Deep-clone the code object.
(Overrides CodeObjectClone.)
Protected methodCloneField(Object, Object)
Clone a field of a code object, including setting the parent.
(Inherited from CodeObject.)
Protected methodCloneFieldT(T, T)
Clone a field of a code object, including setting the parent.
(Inherited from CodeObject.)
Public methodCompareTo
Compare one Project to another.
Public methodCopyFormatting
Copy formatting from another code object.
(Inherited from CodeObject.)
Public methodCreateAnnotations
Create the list of child Annotations, or return the existing one.
(Inherited from CodeObject.)
Public methodCreateCodeUnit(String)
Create a new CodeUnit for the specified file name, and add it to the Project along with a corresponding ProjectFileItem.
Public methodCreateCodeUnit(String, String)
Create a new CodeUnit for a code fragment, and add it to the Project.
Public methodCreateRef
Create a reference to the CodeObject.
(Inherited from CodeObject.)
Protected methodDefaultFormat
Default format the code object.
(Inherited from CodeObject.)
Protected methodDefaultFormatField
Default format the specified child field code object.
(Inherited from CodeObject.)
Public methodDefaultNewLines
Determine a default of 1 or 2 newlines when adding items to a Block.
(Inherited from CodeObject.)
Public methodDefineCompilerDirectiveSymbol
Define a compiler directive symbol for the current configuration.
Public methodDefineConstant
Define a constant.
Public methodDispose
Dispose the CodeObject.
(Inherited from CodeObject.)
Public methodEquals (Inherited from Object.)
Protected methodEvaluateCondition
Evaluate any conditional attribute on the current element.
Protected methodEvaluateExpression
Evaluate a conditional expression.
Public methodEvaluateMacros
Evaluate any $(PropertyName) macros in the input string.
Public methodEvaluateTypeOrNamespace
Evaluate the type or namespace associated with the code object.
(Inherited from CodeObject.)
Protected methodFinalize (Inherited from Object.)
Public methodFind
Find a namespace or type with the fully-specified name.
Public methodFindCodeUnit
Find a CodeUnit by name.
Public methodFindConfiguration
Find any configuration with the specified configuration name and platform name.
Public methodFindNamespace
Find the Namespace with the fully-specified name.
Public methodFindParentT
Find the parent object of the specified type.
(Inherited from CodeObject.)
Public methodFindParentMethod
Find the parent method (or anonymous method or lambda) of the current code object.
(Inherited from CodeObject.)
Public methodFindParentMethodOrType
Find the parent method (or anonymous method or lambda) or type of the current code object.
(Inherited from CodeObject.)
Public methodFindPlatformConfiguration
Find any platform-specifc configuration with the specified platform name.
Public methodFindRef
Find a namespace or type in the global namespace with the fully specified name, returning a SymbolicRef to it. To find generic types, specify a tick mark and type argument count, such as "System.Tuple`2".
Public methodFindReferenceAliasNamespace
Find the RootNamespace for the Reference with the specified alias name.
Public methodGetAllChildrenT
Get an enumerator for all children objects of type T in the CodeObject and in any child CodeObjects (recursively).
(Inherited from CodeObject.)
Public methodGetAllDeclaredTypeDecls
Get an enumerator for all TypeDecls declared in the Project (does not include TypeDecls imported from other Projects).
Public methodGetAttribute
Returns the first attribute expression (Call or ConstructorRef) with the specified name on the CodeObject.
(Inherited from CodeObject.)
Public methodGetComment
Get the comment that satisfies the specified predicate.
(Inherited from CodeObject.)
Public methodGetDescription
Get a short text description of the CodeObject. This is generally the shortest text representation that uniquely identifies objects, even if they have the same name, for example: type or return type, name, type parameters, parameters.
(Inherited from CodeObject.)
Public methodGetDirectory
Get the directory of the Project (handles website directories).
Public methodGetDocSummary
Returns the DocSummary documentation comment, or null if none exists.
(Inherited from CodeObject.)
Public methodGetFullName
Get the full name of the INamedCodeObject, including any namespace name.
Public methodGetFullOutputPath
Get the full output path of the Project.
Public methodGetHashCode (Inherited from Object.)
Public methodGetIndentLevel
Get the indent level of this object.
(Inherited from CodeObject.)
Public methodGetIndentSpaceCount
Get the current indent in spaces.
(Inherited from CodeObject.)
Public methodGetInferredType
Determine the type of an inferred ('var') type.
(Inherited from CodeObject.)
Public methodGetNamespace
Get the Namespace for this CodeObject.
(Inherited from CodeObject.)
Public methodStatic memberGetNugetPackagesPath
Get the NuGet Packages path.
Public methodGetPackageDllPath
Get the DLL path for the given package name and version.
Public methodGetRenderName
Protected methodGetRootNamespace
Determine the RootNamespace from any '::' prefix on the specified name, defaulting to the global namespace.
Public methodGetSolutionFolders
Get any Solution folders for this Project.
Public methodGetTargetFrameworkDescription
Get the description of the target framework.
Public methodGetType (Inherited from Object.)
Public methodGetTypeRef
Get a TypeRef for the type with the specified full name, with caching (generally used for System types).
(Inherited from CodeObject.)
Public methodGetVersionOfProfile
Get the .NET target framework version for the specified portable profile.
Public methodGetWorstMessageType
Get the type of the worst attached message.
(Inherited from CodeObject.)
Protected methodHasAnnotationT (Inherited from CodeObject.)
Public methodHasAttribute
Returns true if the attribute with the specified name exists on the object, otherwise false.
(Inherited from CodeObject.)
Public methodHasUnresolvedRef
Returns true if the code object is an UnresolvedRef or has any UnresolvedRef children.
(Inherited from CodeObject.)
Protected methodInitialize
Protected methodIsChildIndented
Returns true if the specified child object is indented from the parent.
(Inherited from CodeObject.)
Protected methodIsChildPrefix
Returns true if the specified child object is prefixed to the current object.
(Inherited from CodeObject.)
Public methodIsCompilerDirectiveSymbolDefined
Determine if a compiler directive symbol is defined for the current configuration.
Public methodIsConstantDefined
Determine if the specified constant is defined.
Public methodIsDependentOn
Determine if this project depends on the specified project.
Public methodStatic memberLoad(String, LoadOptions, ActionLoadStatus, CodeObject)
Load the specified Project file and all child code files directly (without a Solution).
Public methodStatic memberLoad(String, String, String, LoadOptions, ActionLoadStatus, CodeObject)
Load the specified Project file and all child code files directly (without a Solution).
Public methodLoadAssembly
Load an assembly.
Public methodLoadFile
Load an existing file into the project. This method is used primarily during the loading process and does NOT add a corresponding ProjectFileItem. To add a new file to a project along with a FileItem, use CreateCodeUnit(String). To add an existing file to a project along with a FileItem, use AddExistingFile(String, Boolean, ActionLoadStatus, CodeObject).
Protected methodLoadProjectAssetsJson
Load the project assets json file, creating a map of name/version to relative DLL path.
Public methodLoadReferencedAssemblies
Load all externally referenced assemblies.
Public methodLoadReferencedAssembliesAndTypes
Load all referenced assemblies, then load all types from them.
Public methodLoadTypes
Load all of the (non-nested) types in the specified assembly into the appropriate namespaces under the specified root namespace, hiding any of the specified types.
Protected methodLoadTypesFromReferenceAssembliesInternal
Public methodLoadTypesFromReferencedAssemblies
Load types from all externally referenced assemblies.
Public methodLoadTypesFromReferencedProjects
Load all of the types in all referenced projects into this one.
Public methodLogAndAttachException
Log the specified exception and message and also attach it as an annotation.
Public methodLogAndAttachMessage
Log the specified text message and also attach it as an annotation.
Public methodLogException
Log the specified exception and message.
Public methodLogMessage
Log the specified text message with the specified severity level.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMoveAllComments
Move all (regular or EOL) comments from the specified token to the current code object, converting any EOL comments to regular comments (which will be rendered inline if necessary).
(Inherited from CodeObject.)
Public methodMoveAnnotations
Move any annotations from the specified location to the specified destination location.
(Inherited from CodeObject.)
Public methodMoveComments(Token)
Move any non-EOL comments from the specified token to the current code object.
(Inherited from CodeObject.)
Public methodMoveComments(Token, Boolean)
Move any non-EOL comments from the specified token to the current code object.
(Inherited from CodeObject.)
Public methodMoveCommentsAsPost
Move any non-EOL comments from the specified token to the current code object as Post comments.
(Inherited from CodeObject.)
Public methodMoveEOLAndPostAnnotations
Move any EOL or Postfix annotations from the specified code object to the current code object.
(Inherited from CodeObject.)
Public methodMoveEOLComment(CodeObject)
Move any EOL comment from the specified code object to the current code object.
(Inherited from CodeObject.)
Public methodMoveEOLComment(Token)
Move any EOL comment from the specified token to the current code object.
(Inherited from CodeObject.)
Public methodMoveEOLComment(Token, Boolean, Boolean)
Move any EOL comment from the specified token to the current code object.
(Inherited from CodeObject.)
Public methodMoveEOLCommentAsInfix
Move any EOL comment from the specified token to the current code object as an Infix EOL comment.
(Inherited from CodeObject.)
Public methodMoveFormatting(CodeObject)
Move formatting from the specified code object to the current object.
(Inherited from CodeObject.)
Public methodMoveFormatting(Token)
Move formatting from the specified token to the current object.
(Inherited from CodeObject.)
Public methodMovePrefixAnnotationsAsPost
Move any prefix annotations on the specified code object to the current code object as post annotations.
(Inherited from CodeObject.)
Protected methodNoStdLib
Protected methodNotifyListedAnnotationAdded
Propagate the listed annotation to the parent Solution.
(Overrides CodeObjectNotifyListedAnnotationAdded(Annotation).)
Protected methodNotifyListedAnnotationRemoved
Remove the listed annotation from the parent Solution.
(Overrides CodeObjectNotifyListedAnnotationRemoved(Annotation).)
Public methodStatic memberParse(String, Solution, ActionLoadStatus, CodeObject, Boolean)
Parse a project from a file.
Public methodStatic memberParse(String, String, Guid, Guid, Solution, ActionLoadStatus, CodeObject, Boolean)
Parse a project from a file.
Public methodParseAndResolveCodeUnits
Parse and resolve all CodeUnits in the Project.
Protected methodParseAnnotations(Parser, CodeObject)
Parse annotations - specifically, compiler directives around things such as TypeParameters or ParameterDecls.
(Inherited from CodeObject.)
Protected methodParseAnnotations(Parser, CodeObject, Boolean, Boolean)
Parse any comments, attributes, compiler directives.
(Inherited from CodeObject.)
Public methodParseCodeUnits
Parse all CodeUnits in the Project.
Protected methodParseExpectedToken
Parse the specified expected token, attaching a parse error to the current object if it doesn't exist.
(Inherited from CodeObject.)
Protected methodParseFileItem
Parse file items.
Public methodParseName
Parse the specified name into a NamespaceRef or TypeRef, or a Dot or Lookup expression that evaluates to one.
Protected methodParseProjectFile
Parse a project file contents (either from a standard VS project file, or from an imported .props or .targets project file).
Protected methodParseUnusedAnnotations
Parse annotations from the Unused list.
(Inherited from CodeObject.)
Protected methodParseUserSettings
Parse user settings from any ".csproj.user" file.
Protected methodParseWebConfig
Parse any 'Web.Config' file for configuration and references.
Protected methodParseWebSiteProject
Parse a web site project.
Public methodRemoveAllAnnotationsT
Remove all annotations of the specified type from this object.
(Inherited from CodeObject.)
Public methodRemoveAllAnnotationsWhereT
Remove all annotations from this object where the specified predicate is true.
(Inherited from CodeObject.)
Public methodRemoveAllMessages
Remove all messages from this object, or optionally only from the specified source.
(Inherited from CodeObject.)
Public methodRemoveAttribute
Remove the attribute expression with the specified name.
(Inherited from CodeObject.)
Public methodRemoveCodeUnit
Remove the specified CodeUnit from the Project, also removing the corresponding ProjectFileItem.
Public methodRemoveFromDictionary
Remove the CodeObject from the specified dictionary.
Public methodRenameCodeUnit
Rename the file name of the specified CodeUnit in the Project, also renaming the corresponding ProjectFileItem.
Public methodResolve(ResolveFlags)
Resolve all child symbolic references.
(Inherited from CodeObject.)
Public methodResolve(ResolveCategory, ResolveFlags)
Resolve all child symbolic references, using the specified ResolveCategory and ResolveFlags.
(Inherited from CodeObject.)
Public methodResolveAttributes
Resolve any attached attributes.
(Inherited from CodeObject.)
Public methodResolveCodeUnits
Resolve all CodeUnits in the Project.
Public methodResolveDocComments
Resolve any references in attached documentation comments.
(Inherited from CodeObject.)
Public methodResolveGotoTargetUp
Resolve child code objects that match the specified name are valid goto targets, moving up the tree until a complete match is found.
(Inherited from CodeObject.)
Public methodResolveReferences
Resolve all references.
Public methodResolveRefUp
Resolve child code objects that match the specified name, moving up the tree until a complete match is found.
(Overrides CodeObjectResolveRefUp(String, Resolver).)
Public methodResolveRefUpSkipMethodBody
Similar to ResolveRefUp(String, Resolver), but skips trying to resolve the symbol in the body or parameters of a method (used for resolving parameter types).
(Inherited from CodeObject.)
Public methodSave
Save the Project.
Public methodSaveAll
Save the Project plus all CodeUnits.
Public methodSaveAs
Save the Project to the specified file name.
Public methodSetCurrentConfiguration
Set the current configuration using the specified index.
Protected methodSetDefineConstants(String)
Set any defined constants from the specified string.
Protected methodSetDefineConstants(String, HashSetString)
Protected methodSetField(Object, Object, Boolean)
Set a field of a code object, including setting the parent, and optional formatting.
(Inherited from CodeObject.)
Protected methodSetFieldT(ChildListT, ChildListT)
Set a ChildList collection field of a code object, including setting the parent.
(Inherited from CodeObject.)
Protected methodSetFieldT(T, T, Boolean)
Set a field of a code object, including setting the parent, and optional formatting.
(Inherited from CodeObject.)
Protected methodSetFormatFlag (Inherited from CodeObject.)
Protected methodSetLineCol(CodeObject)
Set the line and column numbers to those in the specified CodeObject.
(Inherited from CodeObject.)
Protected methodSetLineCol(Token)
Set the line and column numbers to those in the specified token.
(Inherited from CodeObject.)
Public methodSetNewLines
Special method to set the newline count without setting the NewLinesSet flag.
(Inherited from CodeObject.)
Protected methodSetStartLineCol
Set the starting line and column numbers to those in the specified token (used by some code objects with prefixes such as modifiers).
(Inherited from CodeObject.)
Public methodToString
Render the type of the code object and its description as a string.
(Inherited from CodeObject.)
Public methodUndefineCompilerDirectiveSymbol
Un-define a compiler direcive symbol for the current configuration.
Public methodUndefineConstant
Un-define a constant.
Public methodUnload
Unload the project - clear its global namespace and loaded assemblies.
Public methodUpdateAllDeclExpressions
Recursively update the dictionary of names in the specified Block by either adding or removing (as specified by the 2nd parameter) all appropriate nested INamedCodeObjects expressions in the current CodeObject tree (specifically implemented for LocalDeclExpr expression objects).
(Inherited from CodeObject.)
Protected methodUpdateLineCol
Update the line and column numbers according to the current positions in the CodeWriter, if the UpdateLineCol flag is set.
(Inherited from CodeObject.)
Protected methodWriteRaw
Protected methodWriteUnhandledData
Top
Fields
  NameDescription
Protected field_annotations
Any Annotations (Comments, DocComments, Attributes, or Messages) associated with the CodeObject (null if none).
(Inherited from CodeObject.)
Protected field_assemblyResolver
The MonoCecilAssemblyResolver for this project (only used if using Mono Cecil to load assemblies).
Protected field_baseIntermediateOutputPath
Protected field_builtInTypes
Cached type objects for built-in types.
Protected field_cachedSystemRefs
Cached SymbolicRef objects - used by FindRef() to cache results, usually for System TypeRefs.
Protected field_codeUnits
All code units in this project.
Protected field_columnNumber
The starting column number associated with the CodeObject if parsed from or written to text form.
(Inherited from CodeObject.)
Protected field_configurationName
Protected field_configurations
The project configurations.
Protected field_currentConfiguration
The currently active project configuration.
Protected field_currentPlatformConfiguration
The currently active platform-specific configuration (if any).
Protected field_defineConstants
Protected field_dependsOn
A cached dictionary of projects which the current one depends on (used for performance).
Protected field_fileItems
File items (source files, content files, resource files, etc).
Protected field_fileName
Protected field_formatFlags
Formatting flags - for line feeds, braces, etc.
(Inherited from CodeObject.)
Protected field_frameworkContext
The FrameworkContext for this project, which keeps track of all loaded assemblies.
Protected field_globalAttributes
All project-global attributes (those with a target of assembly or module) defined in any CodeUnit (usually AssemblyInfo.cs).
Protected field_globalNamespace
The project's global namespace.
Protected field_intermediateOutputPath
Protected field_internalsVisibleTo
Assembly names which have internal visibility to this project.
Protected field_internalsVisibleToTest
Assembly names which have internal visibility to this project for testing purposes only.
Protected field_isNew
Protected field_lineNumber
The starting line number associated with the CodeObject if parsed from or written to text form.
(Inherited from CodeObject.)
Protected field_loadedAssemblies
Assembly/root namespace combinations for which types have already been loaded for this project.
Protected field_loadedForAssemblyOnly
Protected field_name
Protected field_notSupported
True if the project type is not currently supported.
Protected field_nuGetReferences
NuGet references.
Protected field_outDir
Protected field_outputPath
Protected field_parent
The parent CodeObject.
(Inherited from CodeObject.)
Protected field_platformConfigurations
Platform-specific configurations.
Protected field_projectGuid
Protected field_references
References to other projects, assemblies, or COM objects.
Protected field_removeFiles
Set of file items to be removed (source files, content files, resource files, etc) by filespec.
Protected field_targetFrameworkIdentifier
Protected field_targetFrameworkProfile
Protected field_targetFrameworkVersion
Protected field_targetPlatform
Protected field_targetPlatformMinVersion
Protected field_targetPlatformVersion
Protected field_typeGuid
Protected field_unhandledData
Unhandled (unparsed or unrecognized) XML data in the project file.
Protected field_unhandledProperties
A dictionary of unhandled properties (used to evaluate macros).
Protected field_userReferencePath
The ReferencePath from any "*.csproj.user" file.
Protected field_visualStudioVersion
Public fieldStatic memberASPMVCProjectType
Public fieldStatic memberConfigurationDebug
Public fieldStatic memberConfigurationRelease
Public fieldStatic memberCPPProjectType
Public fieldStatic memberCSCoreProjectType
Public fieldStatic memberCSharpFileExtension
Public fieldStatic memberCSharpProjectFileExtension
Public fieldStatic memberCSProjectType
Public fieldStatic memberCSSharePointProjectType
Public fieldStatic memberCSWorkflowProjectType
Public fieldStatic memberDefaultBaseAddress
Public fieldStatic memberDefaultFileAlignment
Public fieldStatic memberDefaultFramework
Public fieldStatic memberDefaultPlatform
Public fieldStatic memberDesignerCSharpGeneratedExtension
Public fieldStatic memberDesignerGeneratedExtension
Public fieldStatic memberDesignerVBGeneratedExtension
Public fieldStatic memberDisableMultithreading
Set to disable the use of multithreading for loading, parsing, resolving, etc. This option is available as a possible workaround for any threading-related bugs that might appear in certain scenarios.
Public fieldStatic memberFolderType
Public fieldStatic memberGeneratedFileExtension
Public fieldStatic memberGeneratedFileExtension2
Public fieldStatic memberJsonFileExtension
Public fieldStatic memberLoadInternalTypes
Set to load internal types in addition to public types when loading types from referenced assemblies and projects, even when there isn't any InternalsVisibleTo attribute. This allows resolving namespaces and types that would otherwise not be found, allowing code analysis to then flag such references as illegal (not accessible). This option will slow things down a bit and use up more memory.
Public fieldStatic memberMsCorLib
Public fieldStatic memberMvcProjectType
Public fieldStatic memberNuGetProjectAssetsJsonFile
Public fieldStatic memberNuGetProjectFileName
Public fieldStatic memberNuGetProjectJsonFile
Public fieldStatic memberOutputFolderName
Public fieldStatic memberPlatformAnyCPU
Public fieldStatic memberPlatformX64
Public fieldStatic memberPlatformX86
Public fieldStatic memberPropertiesFolder
Public fieldStatic memberReferencesFolder
Public fieldStatic memberSetupProjectType
Public fieldStatic memberSharedItemsFileExtension
Public fieldStatic memberSharedProjectFileExtension
Public fieldStatic memberSilverlightProjectType
Public fieldStatic memberSystemCore
Public fieldStatic memberTestProjectType
Public fieldStatic memberVBFileExtension
Public fieldStatic memberVBProjectFileExtension
Public fieldStatic memberVBProjectType
Public fieldStatic memberVBSharePointProjectType
Public fieldStatic memberVBWorkflowProjectType
Public fieldStatic memberVisualDBToolsProjectType
Public fieldStatic memberVstoProjectType
Public fieldStatic memberWCFProjectType
Public fieldStatic memberWebApplicationProjectType
Public fieldStatic memberWebSiteProjectType
Public fieldStatic memberWorkflowCodeBesideFileExtension
Public fieldStatic memberWorkflowCSharpCodeBesideFileExtension
Public fieldStatic memberWorkflowVBCodeBesideFileExtension
Public fieldStatic memberWPFProjectType
Public fieldStatic memberXamlCSharpCodeBehindExtension
Public fieldStatic memberXamlCSharpGeneratedExtension
Public fieldStatic memberXamlCSharpGeneratedExtension2
Public fieldStatic memberXamlCSharpGeneratedExtension3
Public fieldStatic memberXamlFileExtension
Public fieldStatic memberXamlVBCodeBehindExtension
Public fieldStatic memberXamlVBGeneratedExtension
Public fieldStatic memberXamlVBGeneratedExtension2
Public fieldStatic memberXamlVBGeneratedExtension3
Top
See Also