Making the multi project validator compile for the passed configuration to make the scripts work for release as well. Also fixed the variable assignment in the .sh script.
This commit is contained in:
parent
0c3751cd37
commit
b1bce2b50a
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
|||
. "$PSScriptRoot\..\common\_common.ps1"
|
||||
|
||||
# Run Validation for Project.json dependencies
|
||||
dotnet publish $RepoRoot\tools\MultiProjectValidator -o $Stage2Dir\..\tools
|
||||
dotnet publish $RepoRoot\tools\MultiProjectValidator -o $Stage2Dir\..\tools -c "$Configuration"
|
||||
|
||||
$pjvalidatePath = "$Stage2Dir\..\tools\$Configuration\$Tfm"
|
||||
if (! (Test-Path $pjvalidatePath)) {
|
||||
|
|
|
@ -17,13 +17,13 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|||
source "$DIR/../common/_common.sh"
|
||||
|
||||
# Run Validation for Project.json dependencies
|
||||
dotnet publish "$REPOROOT/tools/MultiProjectValidator" -o "$STAGE2_DIR/../tools"
|
||||
dotnet publish "$REPOROOT/tools/MultiProjectValidator" -o "$STAGE2_DIR/../tools" -c "$CONFIGURATION"
|
||||
#TODO for release builds this should fail
|
||||
set +e
|
||||
PJ_VALIDATE_PATH = "$STAGE2_DIR/../tools/$CONFIGURATION/$TFM"
|
||||
PJ_VALIDATE_PATH="$STAGE2_DIR/../tools/$CONFIGURATION/$TFM"
|
||||
if [ ! -d "$PJ_VALIDATE_PATH" ]
|
||||
then
|
||||
PJ_VALIDATE_PATH = "$STAGE2_DIR/../tools"
|
||||
PJ_VALIDATE_PATH="$STAGE2_DIR/../tools"
|
||||
fi
|
||||
|
||||
"$PJ_VALIDATE_PATH/pjvalidate" "$REPOROOT/src"
|
||||
|
|
Loading…
Reference in a new issue