#[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_tSize of the struct. This is used for versioning.
assembly_path: *const char_tPath to the compenent’s assembly.
If specified, hostfxr is located as if the assembly_path is the apphost
dotnet_root: *const char_tPath 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§
Source§impl get_hostfxr_parameters
impl get_hostfxr_parameters
Sourcepub fn with_dotnet_root(dotnet_root: *const char_t) -> Self
pub fn with_dotnet_root(dotnet_root: *const char_t) -> Self
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().
Sourcepub fn with_assembly_path(assembly_path: *const char_t) -> Self
pub fn with_assembly_path(assembly_path: *const char_t) -> Self
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().