Skip to content

Fix BuildTool output path #2219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ShowBuildMenu.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ set CURRENT_CONFIGURATION=%~dp0current-test-configuration
set NUNIT="%~dp0Tools\NUnit.ConsoleRunner.3.10.0\tools\nunit3-console.exe"

if not exist %BUILD_TOOL_PATH% (
dotnet build %~dp0Tools\BuildTool\BuildTool.sln -c Release -o bin
pushd %~dp0Tools\BuildTool
dotnet build BuildTool.sln -c Release -o bin
popd
)

:main-menu
Expand Down
5 changes: 4 additions & 1 deletion ShowBuildMenu.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh

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

if [ ! -f $BUILD_TOOL_PATH ]
then
dotnet build ./Tools/BuildTool/BuildTool.sln -c Release -o bin
cd ./Tools/BuildTool
dotnet build BuildTool.sln -c Release -o bin
fi
cd "$SCRIPT_PATH"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just have used cd ../.. before the fi, but why not.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking, but decided against it.


buildDebug(){
dotnet build ./src/NHibernate.sln
Expand Down