Export (0) Print
Expand All

CompilerParameters.CoreAssemblyFileName Property

.NET Framework 4.5

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

Namespace:  System.CodeDom.Compiler
Assembly:  System (in System.dll)

public string CoreAssemblyFileName { get; set; }

Property Value

Type: System.String
The name of the core assembly that contains basic types.

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.ReferencedAssembliesproperty.

NoteNote

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

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft