Skip to content

Commit 48b3bb9

Browse files
authored
Fix BuildTool output path (#2219)
1 parent 7560377 commit 48b3bb9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ShowBuildMenu.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ set CURRENT_CONFIGURATION=%~dp0current-test-configuration
99
set NUNIT="%~dp0Tools\NUnit.ConsoleRunner.3.10.0\tools\nunit3-console.exe"
1010

1111
if not exist %BUILD_TOOL_PATH% (
12-
dotnet build %~dp0Tools\BuildTool\BuildTool.sln -c Release -o bin
12+
pushd %~dp0Tools\BuildTool
13+
dotnet build BuildTool.sln -c Release -o bin
14+
popd
1315
)
1416

1517
:main-menu

ShowBuildMenu.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22

33
cd "$(dirname "$0")"
4+
SCRIPT_PATH="$(pwd)"
45
BUILD_TOOL_PATH="./Tools/BuildTool/bin/BuildTool.dll"
56
BUILD_TOOL="dotnet $BUILD_TOOL_PATH"
67
AVAILABLE_CONFIGURATIONS="available-test-configurations"
@@ -14,8 +15,10 @@ async_generator_path=""
1415

1516
if [ ! -f $BUILD_TOOL_PATH ]
1617
then
17-
dotnet build ./Tools/BuildTool/BuildTool.sln -c Release -o bin
18+
cd ./Tools/BuildTool
19+
dotnet build BuildTool.sln -c Release -o bin
1820
fi
21+
cd "$SCRIPT_PATH"
1922

2023
buildDebug(){
2124
dotnet build ./src/NHibernate.sln

0 commit comments

Comments
 (0)