CreateEmptyCSharpCompilation(string?, IEnumerable<Assembly>?, bool, OutputKind, ImmutableArray<string>, NullableContextOptions)
Declaration
public static CSharpCompilation CreateEmptyCSharpCompilation(string? name, IEnumerable<Assembly>? additionalAssemblies = null, bool addMetalamaReferences = true, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, ImmutableArray<string> implicitUsings = default, NullableContextOptions nullableContextOptions = NullableContextOptions.Enable)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
IEnumerable<Assembly> | additionalAssemblies | |
bool | addMetalamaReferences | |
OutputKind | outputKind | |
ImmutableArray<string> | implicitUsings | |
NullableContextOptions | nullableContextOptions |
Returns
Type | Description |
---|---|
CSharpCompilation |
CreateEmptyCSharpCompilation(string?, IEnumerable<MetadataReference>, OutputKind, ImmutableArray<string>, NullableContextOptions)
Declaration
public static CSharpCompilation CreateEmptyCSharpCompilation(string? name, IEnumerable<MetadataReference> metadataReferences, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, ImmutableArray<string> implicitUsings = default, NullableContextOptions nullableContextOptions = NullableContextOptions.Enable)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
IEnumerable<MetadataReference> | metadataReferences | |
OutputKind | outputKind | |
ImmutableArray<string> | implicitUsings | |
NullableContextOptions | nullableContextOptions |
Returns
Type | Description |
---|---|
CSharpCompilation |