void ConfigureWindowsSdkFiles(WindowsSdkFiles options) { var is64bit = IntPtr.Size == 8; var basePath = Path.Combine(contentPath, $"tools\\SDK\\{(is64bit ? "x64" : "x86")}"); options.MakeAppxPath = Path.Combine(basePath, "makeappx.exe"); }
void ConfigureWindowsSdkFiles(WindowsSdkFiles options) { var contentPath = environment.ContentRootPath; // If we're running on Azure App Services, we have to invoke from the underlying // location due to CSRSS/registration-free COM manifest issues // running on azure if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("REGION_NAME"))) { var home = Environment.GetEnvironmentVariable("HOME_EXPANDED"); if (!string.IsNullOrWhiteSpace(home)) { contentPath = $@"{home}\site\wwwroot"; } } options.MakeAppxPath = Path.Combine(contentPath, "tools\\SDK\\makeappx.exe"); }