Skip to content

Commit

Permalink
fix: Use dotnet workload install --sdk-version instead global.json in…
Browse files Browse the repository at this point in the history
… scripts.
  • Loading branch information
HavenDV authored Oct 14, 2023
1 parent f13fce8 commit abaa909
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions workload/scripts/workload-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,21 +207,10 @@ function install_tizenworkload() {
fi

# Install workload packs.
if [ -f global.json ]; then
CACHE_GLOBAL_JSON="true"
mv global.json global.json.bak
else
CACHE_GLOBAL_JSON="false"
fi
dotnet new globaljson --sdk-version $DOTNET_VERSION
$DOTNET_INSTALL_DIR/dotnet workload install tizen --skip-manifest-update
$DOTNET_INSTALL_DIR/dotnet workload install tizen --sdk-version $DOTNET_VERSION --skip-manifest-update

# Clean-up
rm -fr $TMPDIR
rm global.json
if [[ "$CACHE_GLOBAL_JSON" == "true" ]]; then
mv global.json.bak global.json
fi

echo "Done installing Tizen workload $MANIFEST_VERSION"
echo ""
Expand Down

0 comments on commit abaa909

Please sign in to comment.