@ -84,7 +84,7 @@ public class DependencyLoader
/*
* Install packages in standard location.
*/
var packageDirectory = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, ".packages");
var packageDirectory = Path.Combine(AppContext.BaseDirectory, ".packages");
var nugetSettings = Settings.LoadDefaultSettings(packageDirectory);
@ -13,7 +13,7 @@ namespace Connected.Host
{
cfg.AddCommandLine(args);
var appPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var appPath = AppContext.BaseDirectory;
var segments = new Uri(appPath).Segments;
segments = segments.Select(e => e.Replace("%20", " ")).ToArray();