Represents a .csproj file contents and provides access to common project properties such as sources, references and more.
More...
|
static CSharpProject | ParseText (string csharpProjectText) |
| Parse a .csproj from the specified string containing the raw xml data. This method will thrown an exception if anything goes wrong while parsing.
|
|
static bool | TryParseText (string csharpProjectText, out CSharpProject project) |
| Try to parse a .csproj from the specified string containing the raw xml data. This method will not throw an excepion. Use ParseException to access any exception that were thrown.
|
|
|
string | AssemblyName [get] |
| Get the name of the assembly for the C# project.
|
|
IReadOnlyList< string > | Sources [get] |
| Get a collection of all C# source file paths included in this project.
|
|
IReadOnlyList< string > | References [get] |
| Get a collection of all C# reference assembly paths included in this project. The 'HintPath' node for the reference will be used if it is available.
|
|
IReadOnlyList< string > | ProjectReferences [get] |
| Get a collection of all C# project names that are referenced in this project. Project references are used to reference another .csproj.
|
|
IReadOnlyList< string > | Defines [get] |
| Get a collection of all compiler define symbols that are used in this project.
|
|
Exception | ParseException [get, set] |
| Get an exception that wa thrown while trying to parse the project.
|
|
Represents a .csproj file contents and provides access to common project properties such as sources, references and more.
◆ GetMetadataReferences()
◆ ParseText()
static CSharpProject RoslynCSharp.Project.CSharpProject.ParseText |
( |
string |
csharpProjectText | ) |
|
|
inlinestatic |
Parse a .csproj from the specified string containing the raw xml data. This method will thrown an exception if anything goes wrong while parsing.
- Parameters
-
csharpProjectText | A string containing .csproj formatted data |
- Returns
- A CSharpProject for the specified project string
◆ TryParseText()
static bool RoslynCSharp.Project.CSharpProject.TryParseText |
( |
string |
csharpProjectText, |
|
|
out CSharpProject |
project |
|
) |
| |
|
inlinestatic |
Try to parse a .csproj from the specified string containing the raw xml data. This method will not throw an excepion. Use ParseException to access any exception that were thrown.
- Parameters
-
csharpProjectText | A string containing .csproj formatted data |
project | A CSharpProject for the specified project string |
- Returns
- True if parsing was successful or false if not
The documentation for this class was generated from the following file:
- C:/Transhuman/S2/Assets/Plugins/RoslynCSharp/Scripts/RoslynCSharp/Runtime/Project/CSharpProject.cs