From d7393f37b04810d11cd9aa9f8c9ea8a845f454ff Mon Sep 17 00:00:00 2001 From: rocketpie Date: Tue, 11 May 2021 18:31:21 +0200 Subject: [PATCH] Update README.md when changing the app domain, the current assembly is restarted in a new domain. The original application arguments need to be forwarded to the new execution. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d2e591da..9f024a11 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ static int Main(string[] args) "MyMainDomain", null, current.SetupInformation, new PermissionSet(PermissionState.Unrestricted), strongNames); - var exitCode = domain.ExecuteAssembly(Assembly.GetExecutingAssembly().Location); + var exitCode = domain.ExecuteAssembly(Assembly.GetExecutingAssembly().Location, args); // RazorEngine will cleanup. AppDomain.Unload(domain); return exitCode;