diff --git a/eng/cake/dotnet.cake b/eng/cake/dotnet.cake index 1efe3b545b4d..a2ba7cec73bc 100644 --- a/eng/cake/dotnet.cake +++ b/eng/cake/dotnet.cake @@ -23,12 +23,12 @@ if (TestTFM == "default") Exception pendingException = null; var NuGetOnlyPackages = new string[] { - "Microsoft.Maui.Controls.*.nupkg", - "Microsoft.Maui.Core.*.nupkg", - "Microsoft.Maui.Essentials.*.nupkg", - "Microsoft.Maui.Graphics.*.nupkg", - "Microsoft.Maui.Maps.*.nupkg", - "Microsoft.AspNetCore.Components.WebView.*.nupkg", + "Microsoft.Maui.Controls.*.{nupkg,snupkg}", + "Microsoft.Maui.Core.*.{nupkg,snupkg}", + "Microsoft.Maui.Essentials.*.{nupkg,snupkg}", + "Microsoft.Maui.Graphics.*.{nupkg,snupkg}", + "Microsoft.Maui.Maps.*.{nupkg,snupkg}", + "Microsoft.AspNetCore.Components.WebView.*.{nupkg,snupkg}", }; ProcessTFMSwitches(); @@ -334,42 +334,28 @@ Task("dotnet-pack-docs") EnsureDirectoryExists(destDir); CleanDirectories(destDir); - // Get the docs for .NET MAUI - foreach (var nupkg in GetFiles("./artifacts/Microsoft.Maui.*.Ref.any.*.nupkg")) - { - var d = $"{tempDir}/{nupkg.GetFilename()}"; - - Unzip(nupkg, d); - DeleteFiles($"{d}/**/*.pri"); - DeleteFiles($"{d}/**/*.aar"); - DeleteFiles($"{d}/**/*.DesignTools.*"); - CopyFiles($"{d}/ref/**/net?.?/**/*.dll", $"{destDir}"); - CopyFiles($"{d}/ref/**/net?.?/**/*.xml", $"{destDir}"); - } - - // Get the docs for libraries separately distributed as NuGets + // Extract the binaries, xml & pdb files for docs purposes foreach (var pattern in NuGetOnlyPackages) { - foreach (var nupkg in GetFiles($"./artifacts/{pattern}")) + foreach (var nupkg in GetFiles($"./artifacts/**/{pattern}")) { var filename = nupkg.GetFilename().ToString(); var d = $"{tempDir}/{filename}"; Unzip(nupkg, d); DeleteFiles($"{d}/**/*.pri"); DeleteFiles($"{d}/**/*.aar"); - DeleteFiles($"{d}/**/*.pdb"); + DeleteFiles($"{d}/**/*.DesignTools.*"); + DeleteFiles($"{d}/**/*.resources.dll"); if (filename.StartsWith("Microsoft.AspNetCore.Components.WebView.Wpf") || filename.StartsWith("Microsoft.AspNetCore.Components.WebView.WindowsForms")) { - CopyFiles($"{d}/lib/**/net?.?-windows?.?/**/*.dll", $"{destDir}"); - CopyFiles($"{d}/lib/**/net?.?-windows?.?/**/*.xml", $"{destDir}"); + CopyFiles($"{d}/lib/**/net?.?-windows?.?/**/*.{{dll,xml,pdb}}", $"{destDir}"); continue; } - CopyFiles($"{d}/lib/**/{{net,netstandard}}?.?/**/*.dll", $"{destDir}"); - CopyFiles($"{d}/lib/**/{{net,netstandard}}?.?/**/*.xml", $"{destDir}"); + CopyFiles($"{d}/lib/**/net?.?/**/*.{{dll,xml,pdb}}", $"{destDir}"); } } diff --git a/src/Controls/docs/Microsoft.Maui.Controls/Application.xml b/src/Controls/docs/Microsoft.Maui.Controls/Application.xml index c3a2460cc3c8..6372c9600ef8 100644 --- a/src/Controls/docs/Microsoft.Maui.Controls/Application.xml +++ b/src/Controls/docs/Microsoft.Maui.Controls/Application.xml @@ -26,9 +26,9 @@ Class that represents a cross-platform mobile application. - The class is the core of a Microsoft.Maui.Controls application. It sets the root page of the application, persists primitive type data across invocations of the application in the dictionary, and provides events to respond to pushing and popping of modal views. Visual studio creates this class for the developer in the appropriate project in a new Microsoft.Maui.Controls solution. + The class is the core of a .NET MAUI application. It sets the root page of the application, and provides events to respond to pushing and popping of modal views. Visual Studio creates this class for the developer in the appropriate project in a new .NET MAUI solution. - Both Visual Studio for Mac and Visual Studio create a XAML and a code-behind file for the application when the developer creates a new Microsoft.Maui.Controls solution. The following example shows a typical Application class, with an entry in its resource dictionary. + Both Visual Studio creates a XAML and a code-behind file for the application when the developer creates a new .NET MAUI solution. The following example shows a typical Application class, with an entry in its resource dictionary.