Skip to content

Commit d56b193

Browse files
committed
Merge branch 'main' into tune-runtime-cpp
* main: [Mono.Android] Improve generated API docs diff (dotnet#7427) Localized file check-in by OneLocBuild Task: Build definition ID 11410: Build ID 6765281 (dotnet#7430)
2 parents c27ab2a + ca8f561 commit d56b193

8 files changed

Lines changed: 25 additions & 14 deletions

File tree

src/Mono.Android/Mono.Android.targets

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<UsingTask AssemblyFile="$(PrepTasksAssembly)" TaskName="Xamarin.Android.BuildTools.PrepTasks.ReplaceFileContents" />
4+
<UsingTask AssemblyFile="$(PrepTasksAssembly)" TaskName="Xamarin.Android.BuildTools.PrepTasks.Git" />
45
<UsingTask AssemblyFile="$(BootstrapTasksAssembly)" TaskName="Xamarin.Android.Tools.BootstrapTasks.CheckApiCompatibility" />
56
<Import Project="..\..\build-tools\scripts\XAVersionInfo.targets" />
67
<Import Project="..\..\bin\Build$(Configuration)\Mono.Android.Apis.projitems" Condition="Exists('..\..\bin\Build$(Configuration)\Mono.Android.Apis.projitems')"/>
@@ -292,7 +293,7 @@
292293
<DocsApiLevel Condition=" '$(DocsApiLevel)' == '' ">31</DocsApiLevel>
293294
<DocsPlatformId Condition=" '$(DocsPlatformId)' == '' ">31</DocsPlatformId>
294295
<DocsFxVersion Condition=" '$(DocsFxVersion)' == '' ">v12.0</DocsFxVersion>
295-
<_Binlog>$(MSBuildThisFileDirectory)../../bin/Build$(Configuration)/UpdateApiDocs-$([System.DateTime]::Now.ToString ("yyyyMMddTHHmmss")).binlog</_Binlog>
296+
<_LogPrefix>$(MSBuildThisFileDirectory)../../bin/Build$(Configuration)/UpdateApiDocs-$([System.DateTime]::Now.ToString ("yyyyMMddTHHmmss"))</_LogPrefix>
296297
</PropertyGroup>
297298

298299
<!-- Generate documentation using MDoc -->
@@ -312,7 +313,7 @@
312313
<_BuildProps Include="-p:AndroidFrameworkVersion=$(DocsFxVersion)" />
313314
</ItemGroup>
314315
<Exec
315-
Command="&quot;$(DotNetPreviewTool)&quot; build -v:n -c $(Configuration) -bl:$(_Binlog) @(_BuildProps, ' ')"
316+
Command="&quot;$(DotNetPreviewTool)&quot; build -v:n -c $(Configuration) -bl:$(_LogPrefix).binlog @(_BuildProps, ' ')"
316317
IgnoreStandardErrorWarningFormat="True"
317318
WorkingDirectory="$(MSBuildThisFileDirectory)"
318319
/>
@@ -365,15 +366,25 @@
365366
Command="$(ManagedRuntime) $(ManagedRuntimeArgs) $(_Mdoc) --debug update --use-docid --delete $(_Libdir) $(_ImportXml) $(_Output) $(_DocTypeArgs) $(_FxConfig) $(_Lang)"
366367
WorkingDirectory="$(MSBuildThisFileDirectory)"
367368
/>
369+
<!-- Ensure updated docs can also be exported to msxdoc format -->
370+
<Exec
371+
Command="$(ManagedRuntime) $(ManagedRuntimeArgs) $(_Mdoc) --debug export-msxdoc -o &quot;$(_LogPrefix)-Export.xml&quot; &quot;$(XamarinAndroidSourcePath)external/android-api-docs/docs/Mono.Android/en/&quot;"
372+
WorkingDirectory="$(MSBuildThisFileDirectory)"
373+
/>
368374
</Target>
369375

370376
<Target Name="_GenerateApiDocsDiff">
371-
<PropertyGroup>
372-
<_DiffFile>$(XamarinAndroidSourcePath)bin/Build$(Configuration)/UpdateApiDocs$([System.DateTime]::Now.ToString ("yyyyMMddTHHmmss")).diff</_DiffFile>
373-
</PropertyGroup>
374-
<Exec
375-
Command="git diff --output=&quot;$(_DiffFile)&quot;"
377+
<Git
378+
Arguments="add ."
379+
WorkingDirectory="$(XamarinAndroidSourcePath)external/android-api-docs"
380+
ToolPath="$(GitToolPath)"
381+
ToolExe="$(GitToolExe)"
382+
/>
383+
<Git
384+
Arguments="diff --cached --output=&quot;$(_LogPrefix).diff&quot;"
376385
WorkingDirectory="$(XamarinAndroidSourcePath)external/android-api-docs"
386+
ToolPath="$(GitToolPath)"
387+
ToolExe="$(GitToolExe)"
377388
/>
378389
</Target>
379390

src/Xamarin.Android.Build.Tasks/Properties/Resources.de.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ In this message, the term "binding" means a piece of generated code that makes i
467467
<comment>The following are literal names and should not be translated: 'AotAssemblies', 'RunAOTCompilation'</comment>
468468
</data>
469469
<data name="XA1030" xml:space="preserve">
470-
<value>The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration.</value>
470+
<value>Die MSBuild-Eigenschaft „RunAOTCompilation“ wird nur unterstützt, wenn die Kürzung aktiviert ist. Bearbeiten Sie die Projektdatei in einem Text-Editor, um „PublishTrimmed“ für diese Buildkonfiguration auf „wahr“ festzulegen.</value>
471471
<comment>The following are literal names and should not be translated: 'RunAOTCompilation', 'PublishTrimmed'</comment>
472472
</data>
473473
<data name="XA2000" xml:space="preserve">

src/Xamarin.Android.Build.Tasks/Properties/Resources.it.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ In this message, the term "binding" means a piece of generated code that makes i
467467
<comment>The following are literal names and should not be translated: 'AotAssemblies', 'RunAOTCompilation'</comment>
468468
</data>
469469
<data name="XA1030" xml:space="preserve">
470-
<value>The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration.</value>
470+
<value>La proprietà MSBuild 'RunAOTCompilation' è supportata solo quando è abilitato il troncamento. Modifica il file di progetto in un editor di testo per impostare 'PublishTrimmed' su 'true' per questa configurazione di compilazione.</value>
471471
<comment>The following are literal names and should not be translated: 'RunAOTCompilation', 'PublishTrimmed'</comment>
472472
</data>
473473
<data name="XA2000" xml:space="preserve">

src/Xamarin.Android.Build.Tasks/Properties/Resources.ja.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ In this message, the term "binding" means a piece of generated code that makes i
467467
<comment>The following are literal names and should not be translated: 'AotAssemblies', 'RunAOTCompilation'</comment>
468468
</data>
469469
<data name="XA1030" xml:space="preserve">
470-
<value>The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration.</value>
470+
<value>'RunAOTCompilation' MSBuild プロパティは、トリミングが有効な場合にのみサポートされます。テキスト エディターでプロジェクト ファイルを編集して、このビルド構成の 'PublishTrimmed' 'true' に設定します。</value>
471471
<comment>The following are literal names and should not be translated: 'RunAOTCompilation', 'PublishTrimmed'</comment>
472472
</data>
473473
<data name="XA2000" xml:space="preserve">

src/Xamarin.Android.Build.Tasks/Properties/Resources.ko.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ In this message, the term "binding" means a piece of generated code that makes i
467467
<comment>The following are literal names and should not be translated: 'AotAssemblies', 'RunAOTCompilation'</comment>
468468
</data>
469469
<data name="XA1030" xml:space="preserve">
470-
<value>The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration.</value>
470+
<value>'RunAOTCompilation' MSBuild 속성은 트리밍이 활성화된 경우에만 지원됩니다. 텍스트 편집기에서 프로젝트 파일을 편집하여 이 빌드 구성에 대해 'PublishTrimmed''true'로 설정합니다.</value>
471471
<comment>The following are literal names and should not be translated: 'RunAOTCompilation', 'PublishTrimmed'</comment>
472472
</data>
473473
<data name="XA2000" xml:space="preserve">

src/Xamarin.Android.Build.Tasks/Properties/Resources.pl.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ In this message, the term "binding" means a piece of generated code that makes i
467467
<comment>The following are literal names and should not be translated: 'AotAssemblies', 'RunAOTCompilation'</comment>
468468
</data>
469469
<data name="XA1030" xml:space="preserve">
470-
<value>The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration.</value>
470+
<value>Właściwość „RunAOTCompilation” programu MSBuild jest obsługiwana tylko wtedy, gdy jest włączone przycinanie. Edytuj plik projektu w edytorze tekstu, aby ustawić właściwość „PublishTrimmed” na wartość „true” dla tej konfiguracji kompilacji.</value>
471471
<comment>The following are literal names and should not be translated: 'RunAOTCompilation', 'PublishTrimmed'</comment>
472472
</data>
473473
<data name="XA2000" xml:space="preserve">

src/Xamarin.Android.Build.Tasks/Properties/Resources.zh-Hans.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ In this message, the term "binding" means a piece of generated code that makes i
467467
<comment>The following are literal names and should not be translated: 'AotAssemblies', 'RunAOTCompilation'</comment>
468468
</data>
469469
<data name="XA1030" xml:space="preserve">
470-
<value>The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration.</value>
470+
<value>仅当启用剪裁时,才支持 “RunAOTCompilation MSBuild 属性。在文本编辑器中编辑项目文件,以将此生成配置的 “PublishTrimmed” 设置为 “true”。</value>
471471
<comment>The following are literal names and should not be translated: 'RunAOTCompilation', 'PublishTrimmed'</comment>
472472
</data>
473473
<data name="XA2000" xml:space="preserve">

src/Xamarin.Android.Build.Tasks/Properties/Resources.zh-Hant.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ In this message, the term "binding" means a piece of generated code that makes i
467467
<comment>The following are literal names and should not be translated: 'AotAssemblies', 'RunAOTCompilation'</comment>
468468
</data>
469469
<data name="XA1030" xml:space="preserve">
470-
<value>The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration.</value>
470+
<value>只有在啟用 [修剪] 時,才支援 'RunAOTCompilation' MSBuild 屬性。在文字編輯器中編輯專案檔案,以將此組建組態的 'PublishTrimmed' 設為 'true'</value>
471471
<comment>The following are literal names and should not be translated: 'RunAOTCompilation', 'PublishTrimmed'</comment>
472472
</data>
473473
<data name="XA2000" xml:space="preserve">

0 commit comments

Comments
 (0)