Skip to content

Commit

Permalink
Merge pull request PrismLibrary#3205 from PrismLibrary/dev/ds/migrate…
Browse files Browse the repository at this point in the history
…-mobile-modules

Use Maui version for Modules
  • Loading branch information
dansiegel authored Jul 23, 2024
2 parents 29ce064 + 4ef20a5 commit 0d87dcb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/Maui/Prism.Maui/Modularity/ModuleCatalog.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
namespace Prism.Modularity;
namespace Prism.Modularity;

/// <summary>
/// The <see cref="ModuleCatalog"/> holds information about the modules that can be used by the
/// application. Each module is described in a <see cref="ModuleInfo"/> class, that records the
/// name and type of the module.
/// </summary>
#if UNO_WINUI
[Microsoft.UI.Xaml.Markup.ContentProperty(Name = nameof(Items))]
#else
[ContentProperty(nameof(Items))]
#endif
public class ModuleCatalog : ModuleCatalogBase
{

Expand Down
7 changes: 7 additions & 0 deletions src/Maui/Prism.Maui/Modularity/ModuleInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@

namespace Prism.Modularity;

/// <summary>
/// Defines the metadata that describes a module.
/// </summary>
#if UNO_WINUI
[Microsoft.UI.Xaml.Markup.ContentProperty(Name = nameof(DependsOn))]
#else
[ContentProperty(nameof(DependsOn))]
#endif
public partial class ModuleInfo : IModuleInfo
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Uno/Prism.Uno/Prism.Uno.WinUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\Wpf\Prism.Wpf\**\*.cs" Exclude="..\..\Wpf\Prism.Wpf\bin\**\*.cs;..\..\Wpf\Prism.Wpf\obj\**\*.cs" />
<Compile Include="..\..\Forms\Prism.Forms\Modularity\*.cs" LinkBase="Modularity" />
<Compile Include="..\..\Maui\Prism.Maui\Modularity\*.cs" LinkBase="Modularity" />
<Compile Remove="**\*.net45.cs" />
<Compile Remove="**\*.netcore.cs" />
<Compile Remove="..\..\Wpf\Prism.Wpf\Modularity\**" />
Expand Down

0 comments on commit 0d87dcb

Please sign in to comment.