We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3145a1 commit e662820Copy full SHA for e662820
src/hostfxr/library.rs
@@ -64,12 +64,14 @@ impl Hostfxr {
64
}
65
66
/// Returns the path to the dotnet root.
67
- #[must_use] pub fn get_dotnet_root(&self) -> PathBuf {
+ #[must_use]
68
+ pub fn get_dotnet_root(&self) -> PathBuf {
69
self.get_dotnet_exe().parent().unwrap().to_owned()
70
71
72
/// Returns the path to the dotnet executable of the same installation as hostfxr.
- #[must_use] pub fn get_dotnet_exe(&self) -> PathBuf {
73
74
+ pub fn get_dotnet_exe(&self) -> PathBuf {
75
self.dotnet_exe.to_os_string().into()
76
77
0 commit comments