mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[AOT compatible] Resolve AOT Build Error in Peek.UI (#36194)
* add partial for aot support
* add Microsoft.NET.ILLink.Tasks to packages.props
* format
* Revert "format"
This reverts commit 742d5e2214.
* add Microsoft.NET.ILLink.Tasks to notice.md
* add auto reference
* update script to remove the 'Auto-reference line'
---------
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
This commit is contained in:
@@ -10,7 +10,7 @@ using Peek.UI.Extensions;
|
||||
|
||||
namespace Peek.UI.Models
|
||||
{
|
||||
public class NeighboringItems : IReadOnlyList<IFileSystemItem>
|
||||
public partial class NeighboringItems : IReadOnlyList<IFileSystemItem>
|
||||
{
|
||||
public IFileSystemItem this[int index] => Items[index] = Items[index] ?? ShellItemArray.GetItemAt(index).ToIFileSystemItem();
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ using Peek.Common.Models;
|
||||
|
||||
namespace Peek.UI.Models
|
||||
{
|
||||
public class NeighboringItemsEnumerator : IEnumerator<IFileSystemItem>
|
||||
public partial class NeighboringItemsEnumerator : IEnumerator<IFileSystemItem>
|
||||
{
|
||||
public IFileSystemItem Current => Items[CurrentIndex];
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<!-- Look at Directory.Build.props in root for common stuff as well -->
|
||||
<Import Project="..\..\..\Common.Dotnet.CsWinRT.props" />
|
||||
<Import Project="..\..\..\Common.SelfContained.props" />
|
||||
<Import Project="..\..\..\Common.Dotnet.AotCompatibility.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<AssemblyName>PowerToys.Peek.UI</AssemblyName>
|
||||
|
||||
Reference in New Issue
Block a user