File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -157,14 +157,19 @@ limitations under the License. -->
157
157
158
158
<!-- DocFX build target runs after Release-build -->
159
159
<Target Name =" CheckDocFX" >
160
- <Exec Command =" docfx --version" EchoOff = " true " ContinueOnError =" true" StandardErrorImportance = " High " StandardOutputImportance = " High " >
160
+ <Exec Command =" docfx --version" ContinueOnError =" true" >
161
161
<Output TaskParameter =" ExitCode" PropertyName =" DocFXExists" />
162
162
</Exec >
163
163
<Error Condition =" '$(DocFXExists)' != '0'" Text =" DocFX is not installed. Please install it using: dotnet tool install --global docfx" />
164
164
</Target >
165
165
166
166
<Target Name =" DocFXBuild" AfterTargets =" Build" DependsOnTargets =" CheckDocFX" Condition =" '$(Configuration)' == 'Release'" >
167
- <Exec Command =" docfx build $(MSBuildProjectDirectory)/docfx.json --log docfxlogz.txt" IgnoreExitCode =" true" />
167
+ <Exec Command =" docfx build $(MSBuildProjectDirectory)/docfx.json --logLevel warning --log docfx-log.txt --warningsAsErrors" IgnoreExitCode =" true" >
168
+ <Output TaskParameter =" ExitCode" PropertyName =" DocFXExitCode" />
169
+ </Exec >
170
+ <!-- Quirk. 255 seems to be the exit code it uses but we don't know the reason, so we catch it and refer to the log -->
171
+ <Error Condition =" '$(DocFXExitCode)' != '255' AND '$(DocFXExitCode)' != '0'"
172
+ Text =" DocFX build failed with exit code $(DocFXExitCode). Check docfx-log.txt for details." />
168
173
</Target >
169
174
170
175
</Project >
You can’t perform that action at this time.
0 commit comments