get_hostfxr_path_with_dotnet_root

Function get_hostfxr_path_with_dotnet_root 

Source
pub fn get_hostfxr_path_with_dotnet_root<P: AsRef<PdCStr>>(
    dotnet_root: P,
) -> Result<OsString, HostingError>
Available on crate feature nethost only.
Expand description

Gets the path to the hostfxr library. 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.