C# Class Microsoft.SourceBrowser.HtmlGenerator.SolutionGenerator

Exibir arquivo Open project: KirillOsenkov/SourceBrowser Class Usage Examples

Public Properties

Property Type Description
CurrentAssemblyName string
PluginAggregator MEF.PluginAggregator

Private Properties

Property Type Description
AddAssemblyAttributesFile Microsoft.CodeAnalysis.Solution
AddSolutionProperties string>.ImmutableDictionary
CreateSolution Microsoft.CodeAnalysis.Solution
CreateSolution Microsoft.CodeAnalysis.Solution
CreateWorkspace MSBuildWorkspace
DisambiguateSameNameLinkedFiles Microsoft.CodeAnalysis.Solution
DisambiguateSameNameLinkedFiles Microsoft.CodeAnalysis.Solution
RemoveNonExistingDocuments Microsoft.CodeAnalysis.Solution
RemoveNonExistingFiles Microsoft.CodeAnalysis.Solution
RemoveNonExistingReferences Microsoft.CodeAnalysis.Solution
SetFieldValue void
SetupPluginAggregator void
WorkspaceFailed void

Public Methods

Method Description
AddTypeScriptFile ( string filePath ) : void
Dispose ( ) : void
Generate ( HashSet processedAssemblyList = null, Folder solutionExplorerRoot = null ) : bool
GenerateExternalReferences ( HashSet assemblyList ) : void
GetAssemblyNames ( ) : IEnumerable
GetExternalAssemblyIndex ( string assemblyName ) : int
IsPartOfSolution ( string assemblyName ) : bool
SolutionGenerator ( string solutionFilePath, string solutionDestinationFolder, string serverPath = null, string>.ImmutableDictionary properties = null, Federation federation = null, string>.IReadOnlyDictionary serverPathMappings = null ) : System
SolutionGenerator ( string projectFilePath, string commandLineArguments, string outputAssemblyPath, string solutionSourceFolder, string solutionDestinationFolder, string serverPath, string networkShare ) : System

Private Methods

Method Description
AddAssemblyAttributesFile ( string language, string outputAssemblyPath, Microsoft.CodeAnalysis.Solution solution ) : Microsoft.CodeAnalysis.Solution
AddSolutionProperties ( string>.ImmutableDictionary properties, string solutionFilePath ) : string>.ImmutableDictionary
CreateSolution ( string solutionFilePath, string>.ImmutableDictionary properties = null ) : Microsoft.CodeAnalysis.Solution
CreateSolution ( string commandLineArguments, string projectName, string language, string projectSourceFolder, string outputAssemblyPath ) : Microsoft.CodeAnalysis.Solution
CreateWorkspace ( string>.ImmutableDictionary propertiesOpt = null ) : MSBuildWorkspace
DisambiguateSameNameLinkedFiles ( Microsoft.CodeAnalysis.Project project ) : Microsoft.CodeAnalysis.Solution

If there are two linked files both outside the project cone, and they have same names, they will logically appear as the same file in the project root. To disambiguate, we remove both files from the project's root and re-add them each into a folder chain that is formed from the full path of each document.

DisambiguateSameNameLinkedFiles ( Microsoft.CodeAnalysis.Solution solution ) : Microsoft.CodeAnalysis.Solution
RemoveNonExistingDocuments ( Microsoft.CodeAnalysis.Project project ) : Microsoft.CodeAnalysis.Solution
RemoveNonExistingFiles ( Microsoft.CodeAnalysis.Solution solution ) : Microsoft.CodeAnalysis.Solution
RemoveNonExistingReferences ( Microsoft.CodeAnalysis.Project project ) : Microsoft.CodeAnalysis.Solution
SetFieldValue ( object instance, string fieldName, object value ) : void
SetupPluginAggregator ( ) : void
WorkspaceFailed ( object sender, WorkspaceDiagnosticEventArgs e ) : void

Method Details

AddTypeScriptFile() public method

public AddTypeScriptFile ( string filePath ) : void
filePath string
return void

Dispose() public method

public Dispose ( ) : void
return void

Generate() public method

public Generate ( HashSet processedAssemblyList = null, Folder solutionExplorerRoot = null ) : bool
processedAssemblyList HashSet
solutionExplorerRoot Folder
return bool

GenerateExternalReferences() public method

public GenerateExternalReferences ( HashSet assemblyList ) : void
assemblyList HashSet
return void

GetAssemblyNames() public method

public GetAssemblyNames ( ) : IEnumerable
return IEnumerable

GetExternalAssemblyIndex() public method

public GetExternalAssemblyIndex ( string assemblyName ) : int
assemblyName string
return int

IsPartOfSolution() public method

public IsPartOfSolution ( string assemblyName ) : bool
assemblyName string
return bool

SolutionGenerator() public method

public SolutionGenerator ( string solutionFilePath, string solutionDestinationFolder, string serverPath = null, string>.ImmutableDictionary properties = null, Federation federation = null, string>.IReadOnlyDictionary serverPathMappings = null ) : System
solutionFilePath string
solutionDestinationFolder string
serverPath string
properties string>.ImmutableDictionary
federation Federation
serverPathMappings string>.IReadOnlyDictionary
return System

SolutionGenerator() public method

public SolutionGenerator ( string projectFilePath, string commandLineArguments, string outputAssemblyPath, string solutionSourceFolder, string solutionDestinationFolder, string serverPath, string networkShare ) : System
projectFilePath string
commandLineArguments string
outputAssemblyPath string
solutionSourceFolder string
solutionDestinationFolder string
serverPath string
networkShare string
return System

Property Details

CurrentAssemblyName public_oe static_oe property

public static string CurrentAssemblyName
return string

PluginAggregator public_oe property

public MEF.PluginAggregator PluginAggregator
return MEF.PluginAggregator