|
285 | 285 | </ItemGroup> |
286 | 286 | </Target> |
287 | 287 |
|
| 288 | + |
| 289 | + <PropertyGroup> |
| 290 | + <!-- Override these properties to generate docs against a specific API level --> |
| 291 | + <DocsApiLevel Condition=" '$(DocsApiLevel)' == '' ">31</DocsApiLevel> |
| 292 | + <DocsPlatformId Condition=" '$(DocsPlatformId)' == '' ">31</DocsPlatformId> |
| 293 | + <DocsFxVersion Condition=" '$(DocsFxVersion)' == '' ">v12.0</DocsFxVersion> |
| 294 | + <_Binlog>$(MSBuildThisFileDirectory)../../bin/Build$(Configuration)/UpdateApiDocs-$([System.DateTime]::Now.ToString ("yyyyMMddTHHmmss")).binlog</_Binlog> |
| 295 | + </PropertyGroup> |
| 296 | + |
288 | 297 | <!-- Generate documentation using MDoc --> |
289 | 298 | <Target Name="UpdateExternalDocumentation"> |
290 | 299 | <MSBuild Projects="$(MSBuildThisFileDirectory)Mono.Android.csproj" |
|
294 | 303 | </Target> |
295 | 304 | <Target Name="_UpdateExternalDocumentation"> |
296 | 305 | <RemoveDir Directories="$(BaseIntermediateOutputPath)" /> |
297 | | - <PropertyGroup> |
298 | | - <_Binlog>$(MSBuildThisFileDirectory)../../bin/Build$(Configuration)/UpdateApiDocs-$([System.DateTime]::Now.ToString ("yyyyMMddTHHmmss")).binlog</_Binlog> |
299 | | - </PropertyGroup> |
300 | 306 | <ItemGroup> |
301 | 307 | <_BuildProps Include="-p:IncludeAndroidJavadoc=True" /> |
302 | 308 | <_BuildProps Include="-p:TargetFramework=monoandroid10" /> |
303 | | - <!-- Override these properties to generate docs against a specific API level --> |
304 | | - <_BuildProps Include="-p:AndroidApiLevel=$(AndroidApiLevel)" /> |
305 | | - <_BuildProps Include="-p:AndroidPlatformId=$(AndroidPlatformId)" /> |
306 | | - <_BuildProps Include="-p:AndroidFrameworkVersion=$(AndroidFrameworkVersion)" /> |
| 309 | + <_BuildProps Include="-p:AndroidApiLevel=$(DocsApiLevel)" /> |
| 310 | + <_BuildProps Include="-p:AndroidPlatformId=$(DocsPlatformId)" /> |
| 311 | + <_BuildProps Include="-p:AndroidFrameworkVersion=$(DocsFxVersion)" /> |
307 | 312 | </ItemGroup> |
308 | 313 | <Exec |
309 | 314 | Command=""$(DotNetPreviewTool)" build -v:n -c $(Configuration) -bl:$(_Binlog) @(_BuildProps, ' ')" |
|
321 | 326 | <Target Name="_RunMdoc"> |
322 | 327 | <PropertyGroup> |
323 | 328 | <_Mdoc Condition=" '$(Pkgmdoc)' != '' ">"$(Pkgmdoc)/tools/mdoc.exe"</_Mdoc> |
324 | | - <_Libdir>-L "$(OutputPath)../v1.0"</_Libdir> |
325 | | - <_AssemblyBasename>$(OutputPath)Mono.Android</_AssemblyBasename> |
| 329 | + <_Libdir>-L "$(XAInstallPrefix)xbuild-frameworks/MonoAndroid/v1.0"</_Libdir> |
| 330 | + <_AssemblyBasename>$(XAInstallPrefix)xbuild-frameworks/MonoAndroid/$(DocsFxVersion)/Mono.Android</_AssemblyBasename> |
326 | 331 | <_ImportXml>-i "$(_AssemblyBasename).xml"</_ImportXml> |
327 | 332 | <_Assembly>$(_AssemblyBasename).dll</_Assembly> |
328 | | - <_JIAssembly>$(OutputPath)../v1.0/Java.Interop.dll</_JIAssembly> |
| 333 | + <_JIAssembly>$(XAInstallPrefix)xbuild-frameworks/MonoAndroid/v1.0/Java.Interop.dll</_JIAssembly> |
329 | 334 | <_Output>-o "$(MSBuildThisFileDirectory)../../external/android-api-docs/docs/Mono.Android/en"</_Output> |
330 | 335 | <_DocTypeArgs Condition=" '$(DocTypeName)' != '' ">--type=$(DocTypeName)</_DocTypeArgs> |
331 | 336 | <_FxMoniker>xamarin-android-sdk-12</_FxMoniker> |
|
0 commit comments