From d8563a44301ca3c843272cac5d3c296db739cf8b Mon Sep 17 00:00:00 2001 From: Elinor Fung Date: Wed, 31 Jul 2024 15:25:46 -0700 Subject: [PATCH] Add examples for relative path to apphost-embed-install-location.md --- proposed/apphost-embed-install-location.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proposed/apphost-embed-install-location.md b/proposed/apphost-embed-install-location.md index 7ed141aaa..a41ac4d5a 100644 --- a/proposed/apphost-embed-install-location.md +++ b/proposed/apphost-embed-install-location.md @@ -104,6 +104,13 @@ explicitly set to a value that does not include `AppRelative`, then setting `AppHostRelativeDotNet` is meaningless - the SDK will not write the relative path into the `apphost` and the `apphost` will not check for a relative path. +The path must not be rooted and will be considered relative to the app location +(the location of the `apphost` itself) at run time. For example, for when running +`C:\dir\app.exe` or `/home/dir/app` with `AppHostRelativeDotNet` set to: + - `my_dotnet`: the app will look at `C:\dir\my_dotnet` or `/home/dir/my_dotnet` + - `./my_dotnet`: the app will look at `C:\dir\my_dotnet` or `/home/dir/my_dotnet` + - `../my_dotnet` the app will look at `C:\my_dotnet` or `/home/my_dotnet` + ## Updated behaviour At a high level, the updated process and priority for `apphost` determining the