Added a method to retrieve the Rust runtime directory

This commit is contained in:
Thorsten Sommer 2025-04-13 12:52:13 +02:00
parent 3261b77fdd
commit 3e9da73623
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -28,6 +28,13 @@ public static class Environment
return Path.GetFullPath(directory); return Path.GetFullPath(directory);
} }
public static string GetRustRuntimeDirectory()
{
var currentDirectory = Directory.GetCurrentDirectory();
var directory = Path.Combine(currentDirectory, "..", "..", "runtime");
return Path.GetFullPath(directory);
}
public static string GetMetadataPath() public static string GetMetadataPath()
{ {
var currentDirectory = Directory.GetCurrentDirectory(); var currentDirectory = Directory.GetCurrentDirectory();