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