We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b112b4 commit b1dca37Copy full SHA for b1dca37
Build-Toolkit-Components.ps1
@@ -124,7 +124,21 @@ function Invoke-MSBuildWithBinlog {
124
)
125
126
# Reset build args to default
127
- $msbuildArgs = @("-r", "-m", "/p:DebugType=Portable")
+ $msbuildArgs = @("/p:DebugType=Portable")
128
+
129
+ # Add "-r" parameter if not running on linux
130
+ if ($($PSVersionTable.Platform) -ne "Unix") {
131
+ $msbuildArgs += "-r"
132
+ }
133
+ # Otherwise, add "-restore" parameter
134
+ else {
135
+ $msbuildArgs += "-restore"
136
137
138
+ # Add "-m" parameter if not running on linux
139
140
+ $msbuildArgs += "-m"
141
142
143
# Add packing to the msbuild arguments if NupkgOutput is supplied
144
if ($NupkgOutput) {
0 commit comments