Change-Id: I5e13e2bada20ea44742069cba052972397fd937a
cmd_pack() {
local OPTS=""
+ local PRE_OPTS=""
[ -n "$CONFIGURATION" ] && OPTS="$OPTS -c $CONFIGURATION"
[ -n "$VERSION" ] && OPTS="$OPTS /p:Version=$VERSION"
if [[ $PROJECT == *".nuspec" ]]; then
TMPDIR=$(mktemp -d)
cp $SCRIPT_DIR/dummypack.csproj $TMPDIR
PROJECT=$TMPDIR/dummypack.csproj
+ else
+ PRE_OPTS="$PRE_OPTS --no-restore"
fi
- run_dotnet pack --no-restore --no-build $PROJECT $OPTS $@ /p:UsingRPMMacro=true
+ run_dotnet pack --no-build $PRE_OPTS $PROJECT $OPTS $@ /p:UsingRPMMacro=true
}
cmd_install() {