@@ -106,9 +106,13 @@ else
106
106
mkdir -p " $INSTALL_LOCATION "
107
107
fi
108
108
109
+ if [ -z " $DOTNET_ROOT " ]; then
110
+ DOTNET_ROOT=" $( dirname $( which dotnet) ) "
111
+ fi
112
+
109
113
# Publish core application executables
110
114
echo " Publishing core application..."
111
- dotnet publish " $GCM_SRC " \
115
+ $DOTNET_ROOT / dotnet publish " $GCM_SRC " \
112
116
--configuration=" $CONFIGURATION " \
113
117
--framework=" $FRAMEWORK " \
114
118
--runtime=" $RUNTIME " \
@@ -117,7 +121,7 @@ dotnet publish "$GCM_SRC" \
117
121
--output=" $( make_absolute " $PAYLOAD " ) " || exit 1
118
122
119
123
echo " Publishing Bitbucket UI helper..."
120
- dotnet publish " $BITBUCKET_UI_SRC " \
124
+ $DOTNET_ROOT / dotnet publish " $BITBUCKET_UI_SRC " \
121
125
--configuration=" $CONFIGURATION " \
122
126
--framework=" $FRAMEWORK " \
123
127
--runtime=" $RUNTIME " \
@@ -126,7 +130,7 @@ dotnet publish "$BITBUCKET_UI_SRC" \
126
130
--output=" $( make_absolute " $PAYLOAD " ) " || exit 1
127
131
128
132
echo " Publishing GitHub UI helper..."
129
- dotnet publish " $GITHUB_UI_SRC " \
133
+ $DOTNET_ROOT / dotnet publish " $GITHUB_UI_SRC " \
130
134
--configuration=" $CONFIGURATION " \
131
135
--framework=" $FRAMEWORK " \
132
136
--runtime=" $RUNTIME " \
@@ -135,7 +139,7 @@ dotnet publish "$GITHUB_UI_SRC" \
135
139
--output=" $( make_absolute " $PAYLOAD " ) " || exit 1
136
140
137
141
echo " Publishing GitLab UI helper..."
138
- dotnet publish " $GITLAB_UI_SRC " \
142
+ $DOTNET_ROOT / dotnet publish " $GITLAB_UI_SRC " \
139
143
--configuration=" $CONFIGURATION " \
140
144
--framework=" $FRAMEWORK " \
141
145
--runtime=" $RUNTIME " \
@@ -225,4 +229,4 @@ if [ $INSTALL_FROM_SOURCE = false ]; then
225
229
dpkg-deb --build " $DEBROOT " " $DEBPKG " || exit 1
226
230
fi
227
231
228
- echo $MESSAGE
232
+ echo $MESSAGE
0 commit comments