Skip to content

Commit

Permalink
Update windows.cake
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed Mar 28, 2024
1 parent 6f91688 commit fddb442
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions eng/devices/windows.cake
Original file line number Diff line number Diff line change
Expand Up @@ -443,26 +443,34 @@ Task("uitest")
Information("old dotnet root: {0}", DOTNET_ROOT);
Information("old dotnet path: {0}", DOTNET_PATH);
var localDotnetRoot = MakeAbsolute(Directory("../../bin/dotnet/"));
Information("new dotnet root: {0}", localDotnetRoot);
DOTNET_ROOT = localDotnetRoot.ToString();
var localToolPath = $"{localDotnetRoot}/dotnet.exe";
Information("new dotnet toolPath: {0}", localToolPath);
SetDotNetEnvironmentVariables(DOTNET_ROOT);
DotNetBuild(PROJECT.FullPath, new DotNetBuildSettings {
var buildSettings = new DotNetBuildSettings {
Configuration = CONFIGURATION,
ToolPath = localToolPath,
ArgumentCustomization = args => args
.Append("/p:ExtraDefineConstants=WINTEST")
.Append("/bl:" + binlog)
.Append("/maxcpucount:1")
//.Append("/tl")
});
};
string? localToolPath = null;
if (localDotnet)
{
var localDotnetRoot = MakeAbsolute(Directory("../../bin/dotnet/"));
Information("new dotnet root: {0}", localDotnetRoot);
DOTNET_ROOT = localDotnetRoot.ToString();
localToolPath = $"{localDotnetRoot}/dotnet.exe";
Information("new dotnet toolPath: {0}", localToolPath);
SetDotNetEnvironmentVariables(DOTNET_ROOT);
buildSettings.ToolPath = localToolPath;
}
DotNetBuild(PROJECT.FullPath, buildSettings);
SetEnvironmentVariable("WINDOWS_APP_PATH", TEST_APP);
SetEnvironmentVariable("APPIUM_LOG_FILE", $"{BINLOG_DIR}/appium_windows.log");
Expand Down

0 comments on commit fddb442

Please sign in to comment.