Redigera

Dela via


CompilerParameters.CoreAssemblyFileName Property

Definition

Gets or sets the name of the core or standard assembly that contains basic types such as Object, String, or Int32.

public:
 property System::String ^ CoreAssemblyFileName { System::String ^ get(); void set(System::String ^ value); };
public string CoreAssemblyFileName { get; set; }
member this.CoreAssemblyFileName : string with get, set
Public Property CoreAssemblyFileName As String

Property Value

The name of the core assembly that contains basic types.

Remarks

If the value of this property is an empty string or null, the compiler uses the default core assembly. Depending on the compiler version, the default core assembly may be mscorlib.dll or System.Runtime.dll in a Framework directory or reference assembly directory. If the value of this property is not empty, the Code Document Object Model (CodeDOM) explicitly references the specified assembly and emits compiler options that cause the compiler to not reference any assemblies implicitly during compilation.. For compilers that reference the core or standard assembly only implicitly by default, this property can be used on its own. For compilers that implicitly reference assemblies in addition to the core or standard assembly, using this option may require specifying additional entries in the CompilerParameters.ReferencedAssemblies property.

Note

An ICodeCompiler or CodeDomProvider implementation may choose to ignore this property.

Applies to