Struct nethost_sys::get_hostfxr_parameters [−][src]
#[repr(C)]pub struct get_hostfxr_parameters {
pub size: size_t,
pub assembly_path: *const char_t,
pub dotnet_root: *const char_t,
}
Expand description
Parameters for get_hostfxr_path
.
Fields
size: size_t
Size of the struct. This is used for versioning.
assembly_path: *const char_t
Path to the compenent’s assembly.
If specified, hostfxr is located as if the assembly_path
is the apphost
dotnet_root: *const char_t
Path to directory containing the dotnet executable.
If specified, hostfxr is located as if an application is started using
dotnet app.dll
, which means it will be searched for under the dotnet_root
path and the assembly_path
is ignored.
Implementations
Creates a new instance of get_hostfxr_parameters
with the given dotnet_root
.
The size
field is set accordingly to the size of the struct and assembly_path
to ptr::null()
.
Creates a new instance of get_hostfxr_parameters
with the given assembly_path
.
The size
field is set accordingly to the size of the struct and dotnet_root
to ptr::null()
.