|
292 | 292 | <DocsApiLevel Condition=" '$(DocsApiLevel)' == '' ">31</DocsApiLevel>
|
293 | 293 | <DocsPlatformId Condition=" '$(DocsPlatformId)' == '' ">31</DocsPlatformId>
|
294 | 294 | <DocsFxVersion Condition=" '$(DocsFxVersion)' == '' ">v12.0</DocsFxVersion>
|
295 |
| - <_Binlog>$(MSBuildThisFileDirectory)../../bin/Build$(Configuration)/UpdateApiDocs-$([System.DateTime]::Now.ToString ("yyyyMMddTHHmmss")).binlog</_Binlog> |
| 295 | + <_LogPrefix>$(MSBuildThisFileDirectory)../../bin/Build$(Configuration)/UpdateApiDocs-$([System.DateTime]::Now.ToString ("yyyyMMddTHHmmss"))</_LogPrefix> |
296 | 296 | </PropertyGroup>
|
297 | 297 |
|
298 | 298 | <!-- Generate documentation using MDoc -->
|
|
312 | 312 | <_BuildProps Include="-p:AndroidFrameworkVersion=$(DocsFxVersion)" />
|
313 | 313 | </ItemGroup>
|
314 | 314 | <Exec
|
315 |
| - Command=""$(DotNetPreviewTool)" build -v:n -c $(Configuration) -bl:$(_Binlog) @(_BuildProps, ' ')" |
| 315 | + Command=""$(DotNetPreviewTool)" build -v:n -c $(Configuration) -bl:$(_LogPrefix).binlog @(_BuildProps, ' ')" |
316 | 316 | IgnoreStandardErrorWarningFormat="True"
|
317 | 317 | WorkingDirectory="$(MSBuildThisFileDirectory)"
|
318 | 318 | />
|
|
365 | 365 | Command="$(ManagedRuntime) $(ManagedRuntimeArgs) $(_Mdoc) --debug update --use-docid --delete $(_Libdir) $(_ImportXml) $(_Output) $(_DocTypeArgs) $(_FxConfig) $(_Lang)"
|
366 | 366 | WorkingDirectory="$(MSBuildThisFileDirectory)"
|
367 | 367 | />
|
| 368 | + <!-- Ensure updated docs can also be exported to msxdoc format --> |
| 369 | + <Exec |
| 370 | + Command="$(ManagedRuntime) $(ManagedRuntimeArgs) $(_Mdoc) --debug export-msxdoc -o "$(_LogPrefix)-Export.xml" "$(XamarinAndroidSourcePath)external/android-api-docs/docs/Mono.Android/en/"" |
| 371 | + WorkingDirectory="$(MSBuildThisFileDirectory)" |
| 372 | + /> |
368 | 373 | </Target>
|
369 | 374 |
|
370 | 375 | <Target Name="_GenerateApiDocsDiff">
|
371 |
| - <PropertyGroup> |
372 |
| - <_DiffFile>$(XamarinAndroidSourcePath)bin/Build$(Configuration)/UpdateApiDocs$([System.DateTime]::Now.ToString ("yyyyMMddTHHmmss")).diff</_DiffFile> |
373 |
| - </PropertyGroup> |
374 | 376 | <Exec
|
375 |
| - Command="git diff --output="$(_DiffFile)"" |
| 377 | + Command="git diff --output="$(_LogPrefix).diff"" |
376 | 378 | WorkingDirectory="$(XamarinAndroidSourcePath)external/android-api-docs"
|
377 | 379 | />
|
378 | 380 | </Target>
|
|
0 commit comments