Skip to content

Commit fa4adc3

Browse files
authored
Merge branch 'main' into 5bfa/CQ-PreviewHandlerVanaraRemoval
2 parents 973c639 + 94b337e commit fa4adc3

File tree

65 files changed

+717
-595
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+717
-595
lines changed

.github/workflows/cd-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Setup .NET 8
5050
uses: actions/setup-dotnet@v4
5151
with:
52-
dotnet-version: '8.0.x'
52+
global-json-file: global.json
5353

5454
- name: Configure the package manifest, logo, and secrets
5555
shell: pwsh

.github/workflows/cd-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Setup .NET 8
5050
uses: actions/setup-dotnet@v4
5151
with:
52-
dotnet-version: '8.0.x'
52+
global-json-file: global.json
5353

5454
- name: Configure the package manifest, logo, and secrets
5555
shell: pwsh

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ jobs:
6060
uses: actions/checkout@v4
6161
with:
6262
fetch-depth: 2
63-
63+
- name: Setup .NET 8
64+
uses: actions/setup-dotnet@v4
65+
with:
66+
global-json-file: global.json
67+
6468
- name: Install XamlStyler console
6569
run: 'dotnet tool install --global XamlStyler.Console'
6670

@@ -107,7 +111,7 @@ jobs:
107111
- name: Setup .NET 8
108112
uses: actions/setup-dotnet@v4
109113
with:
110-
dotnet-version: '8.0.x'
114+
global-json-file: global.json
111115

112116
- name: Restore NuGet
113117
shell: pwsh
@@ -205,6 +209,10 @@ jobs:
205209

206210
- name: Checkout the repository
207211
uses: actions/checkout@v4
212+
- name: Setup .NET 8
213+
uses: actions/setup-dotnet@v4
214+
with:
215+
global-json-file: global.json
208216

209217
- name: Download the packages from the Artifacts
210218
uses: actions/download-artifact@v4

.github/workflows/format-xaml.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
- uses: actions/checkout@v4
4747
if: env.CAN_RUN == 1
4848

49+
- name: Setup .NET 8
50+
uses: actions/setup-dotnet@v4
51+
with:
52+
global-json-file: global.json
53+
4954
- name: Set git identity
5055
if: env.CAN_RUN == 1
5156
run: |

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.303"
4+
}
5+
}

src/Files.App (Package)/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<Identity
1717
Name="FilesDev"
1818
Publisher="CN=Files"
19-
Version="3.6.8.0" />
19+
Version="3.6.17.0" />
2020

2121
<Properties>
2222
<DisplayName>Files - Dev</DisplayName>

src/Files.App.CsWin32/NativeMethods.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,7 @@
44
"public": true,
55
"comInterop": {
66
"preserveSigMethods": [
7-
"IEnumShellItems.Next",
8-
"IInitializeWithFile.Initialize",
9-
"IInitializeWithItem.Initialize",
10-
"IInitializeWithStream.Initialize",
11-
"IPreviewHandler.QueryFocus",
12-
"IPreviewHandler.SetRect",
13-
"IObjectWithSite.SetSite",
14-
"IPreviewHandler.SetWindow",
15-
"IPreviewHandlerVisuals.SetBackgroundColor",
16-
"IPreviewHandlerVisuals.SetFont",
17-
"IPreviewHandlerVisuals.SetTextColor",
7+
"*"
188
]
199
}
2010
}

src/Files.App.CsWin32/NativeMethods.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,18 @@ WindowsCreateString
120120
WindowsDeleteString
121121
IPreviewHandler
122122
AssocQueryString
123+
GetModuleHandle
124+
SHEmptyRecycleBin
125+
SHFileOperation
126+
SHGetFolderPath
127+
SHGFP_TYPE
128+
SHGetKnownFolderItem
129+
SHQUERYRBINFO
130+
SHQueryRecycleBin
131+
FileOperation
132+
IFileOperation
133+
IShellItem2
134+
PSGetPropertyKeyFromName
123135
ShellExecuteEx
124136
E_FAIL
125137
S_OK
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright (c) 2024 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using System;
5+
using System.Runtime.InteropServices;
6+
using Windows.Win32.Foundation;
7+
8+
namespace Windows.Win32
9+
{
10+
namespace Graphics.Gdi
11+
{
12+
[UnmanagedFunctionPointer(CallingConvention.Winapi)]
13+
public unsafe delegate BOOL MONITORENUMPROC([In] HMONITOR param0, [In] HDC param1, [In][Out] RECT* param2, [In] LPARAM param3);
14+
}
15+
16+
namespace UI.WindowsAndMessaging
17+
{
18+
[UnmanagedFunctionPointer(CallingConvention.Winapi)]
19+
public delegate LRESULT WNDPROC(HWND hWnd, uint msg, WPARAM wParam, LPARAM lParam);
20+
}
21+
22+
namespace UI.Shell
23+
{
24+
public static partial class FOLDERID
25+
{
26+
public readonly static Guid FOLDERID_RecycleBinFolder = new(0xB7534046, 0x3ECB, 0x4C18, 0xBE, 0x4E, 0x64, 0xCD, 0x4C, 0xB7, 0xD6, 0xAC);
27+
}
28+
29+
public static partial class BHID
30+
{
31+
public readonly static Guid BHID_EnumItems = new(0x94f60519, 0x2850, 0x4924, 0xaa, 0x5a, 0xd1, 0x5e, 0x84, 0x86, 0x80, 0x39);
32+
}
33+
}
34+
}

src/Files.App.CsWin32/Windows.Win32.MONITORENUMPROC.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)