Skip to content

Commit de0328e

Browse files
mdtauk0x5bfa
andauthored
Code Quality: Added empty projects for Files.App.Controls and Files.App.UITests (#15784)
Co-authored-by: 0x5BFA <[email protected]>
1 parent a77620f commit de0328e

21 files changed

+410
-8
lines changed

Directory.Build.props

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
2+
<Project>
3+
4+
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
5+
<Nullable>enable</Nullable>
6+
<Configurations>Debug;Stable;Preview;Store</Configurations>
7+
<Company>Files Community</Company>
8+
<Copyright>Copyright (c) 2024 Files Community.</Copyright>
9+
<AssemblyCompany>Files Community</AssemblyCompany>
10+
<AssemblyCopyright>Copyright (c) 2024 Files Community</AssemblyCopyright>
11+
<AssemblyProduct>Files</AssemblyProduct>
12+
<NeutralLanguage>en-US</NeutralLanguage>
13+
<Platforms>x86;x64;ARM64</Platforms>
14+
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
15+
<LangVersion>latest</LangVersion>
16+
<DefaultLanguage>en-US</DefaultLanguage>
17+
<!-- <ApplicationIcon>../Files.App (Package)/Assets/AppTiles/Release/Logo.ico</ApplicationIcon> -->
18+
<DefineConstants Condition="'$(Configuration)' == 'Debug'">TRACE;DEBUG;NETFX_CORE</DefineConstants>
19+
<DefineConstants Condition="'$(Configuration)' != 'Debug'">TRACE;RELEASE;NETFX_CORE</DefineConstants>
20+
<Optimize Condition="'$(Configuration)' != 'Debug'">true</Optimize>
21+
</PropertyGroup>
22+
23+
</Project>

Files.sln

+75-8
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Files.App.SaveDialog.Win32"
4545
EndProject
4646
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Files.App.OpenDialog.Win32", "src\Files.App.OpenDialog\Files.App.OpenDialog.Win32.vcxproj", "{B3FE3F3B-CECC-4918-B72B-5488C3774125}"
4747
EndProject
48+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Files.App.UITests", "tests\Files.App.UITests\Files.App.UITests.csproj", "{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}"
49+
EndProject
50+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Files.App.Controls", "src\Files.App.Controls\Files.App.Controls.csproj", "{83FF8729-CC76-43E2-976F-47F0A187FC7E}"
51+
EndProject
4852
Global
4953
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5054
Debug|arm64 = Debug|arm64
@@ -455,52 +459,113 @@ Global
455459
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Debug|arm64.Build.0 = Debug|Win32
456460
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Debug|x64.ActiveCfg = Debug|Win32
457461
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Debug|x64.Build.0 = Debug|Win32
462+
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Debug|x86.ActiveCfg = Debug|Win32
458463
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Preview|arm64.ActiveCfg = Debug|Win32
459464
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Preview|arm64.Build.0 = Debug|Win32
460465
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Preview|x64.ActiveCfg = Debug|Win32
461466
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Preview|x64.Build.0 = Debug|Win32
467+
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Preview|x86.ActiveCfg = Debug|Win32
462468
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Release|arm64.ActiveCfg = Release|Win32
463469
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Release|arm64.Build.0 = Release|Win32
464470
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Release|x64.ActiveCfg = Release|Win32
465471
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Release|x64.Build.0 = Release|Win32
472+
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Release|x86.ActiveCfg = Release|Win32
466473
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Stable|arm64.ActiveCfg = Debug|Win32
467474
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Stable|arm64.Build.0 = Debug|Win32
468475
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Stable|x64.ActiveCfg = Debug|Win32
469476
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Stable|x64.Build.0 = Debug|Win32
477+
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Stable|x86.ActiveCfg = Debug|Win32
470478
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Store|arm64.ActiveCfg = Debug|Win32
471479
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Store|arm64.Build.0 = Debug|Win32
472480
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Store|x64.ActiveCfg = Debug|Win32
473481
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Store|x64.Build.0 = Debug|Win32
474482
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Store|x86.ActiveCfg = Debug|Win32
475-
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Debug|x86.ActiveCfg = Debug|Win32
476-
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Preview|x86.ActiveCfg = Debug|Win32
477-
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Release|x86.ActiveCfg = Release|Win32
478-
{7756A1A4-17B5-4E6B-9B12-F19AA868A225}.Stable|x86.ActiveCfg = Debug|Win32
479483
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Debug|arm64.ActiveCfg = Debug|Win32
480484
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Debug|arm64.Build.0 = Debug|Win32
481485
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Debug|x64.ActiveCfg = Debug|Win32
482486
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Debug|x64.Build.0 = Debug|Win32
487+
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Debug|x86.ActiveCfg = Debug|Win32
483488
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Preview|arm64.ActiveCfg = Debug|Win32
484489
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Preview|arm64.Build.0 = Debug|Win32
485490
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Preview|x64.ActiveCfg = Debug|Win32
486491
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Preview|x64.Build.0 = Debug|Win32
492+
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Preview|x86.ActiveCfg = Debug|Win32
487493
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Release|arm64.ActiveCfg = Release|Win32
488494
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Release|arm64.Build.0 = Release|Win32
489495
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Release|x64.ActiveCfg = Release|Win32
490496
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Release|x64.Build.0 = Release|Win32
497+
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Release|x86.ActiveCfg = Release|Win32
491498
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Stable|arm64.ActiveCfg = Debug|Win32
492499
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Stable|arm64.Build.0 = Debug|Win32
493500
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Stable|x64.ActiveCfg = Debug|Win32
494501
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Stable|x64.Build.0 = Debug|Win32
502+
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Stable|x86.ActiveCfg = Debug|Win32
495503
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Store|arm64.ActiveCfg = Debug|Win32
496504
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Store|arm64.Build.0 = Debug|Win32
497505
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Store|x64.ActiveCfg = Debug|Win32
498506
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Store|x64.Build.0 = Debug|Win32
499507
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Store|x86.ActiveCfg = Debug|Win32
500-
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Debug|x86.ActiveCfg = Debug|Win32
501-
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Preview|x86.ActiveCfg = Debug|Win32
502-
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Release|x86.ActiveCfg = Release|Win32
503-
{B3FE3F3B-CECC-4918-B72B-5488C3774125}.Stable|x86.ActiveCfg = Debug|Win32
508+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Debug|arm64.ActiveCfg = Debug|ARM64
509+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Debug|arm64.Build.0 = Debug|ARM64
510+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Debug|arm64.Deploy.0 = Debug|ARM64
511+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Debug|x64.ActiveCfg = Debug|x64
512+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Debug|x64.Build.0 = Debug|x64
513+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Debug|x64.Deploy.0 = Debug|x64
514+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Debug|x86.ActiveCfg = Debug|x86
515+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Debug|x86.Build.0 = Debug|x86
516+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Debug|x86.Deploy.0 = Debug|x86
517+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Preview|arm64.ActiveCfg = Debug|ARM64
518+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Preview|arm64.Build.0 = Debug|ARM64
519+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Preview|arm64.Deploy.0 = Debug|ARM64
520+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Preview|x64.ActiveCfg = Debug|x64
521+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Preview|x64.Build.0 = Debug|x64
522+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Preview|x64.Deploy.0 = Debug|x64
523+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Preview|x86.ActiveCfg = Debug|x86
524+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Preview|x86.Build.0 = Debug|x86
525+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Preview|x86.Deploy.0 = Debug|x86
526+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Release|arm64.ActiveCfg = Release|ARM64
527+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Release|arm64.Build.0 = Release|ARM64
528+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Release|arm64.Deploy.0 = Release|ARM64
529+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Release|x64.ActiveCfg = Release|x64
530+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Release|x64.Build.0 = Release|x64
531+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Release|x64.Deploy.0 = Release|x64
532+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Release|x86.ActiveCfg = Release|x86
533+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Release|x86.Build.0 = Release|x86
534+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Release|x86.Deploy.0 = Release|x86
535+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Stable|arm64.ActiveCfg = Debug|ARM64
536+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Stable|arm64.Build.0 = Debug|ARM64
537+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Stable|arm64.Deploy.0 = Debug|ARM64
538+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Stable|x64.ActiveCfg = Debug|x64
539+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Stable|x64.Build.0 = Debug|x64
540+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Stable|x64.Deploy.0 = Debug|x64
541+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Stable|x86.ActiveCfg = Debug|x86
542+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Stable|x86.Build.0 = Debug|x86
543+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Stable|x86.Deploy.0 = Debug|x86
544+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Store|arm64.ActiveCfg = Debug|ARM64
545+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Store|arm64.Build.0 = Debug|ARM64
546+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Store|arm64.Deploy.0 = Debug|ARM64
547+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Store|x64.ActiveCfg = Debug|x64
548+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Store|x64.Build.0 = Debug|x64
549+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Store|x64.Deploy.0 = Debug|x64
550+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Store|x86.ActiveCfg = Debug|x86
551+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Store|x86.Build.0 = Debug|x86
552+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B}.Store|x86.Deploy.0 = Debug|x86
553+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Debug|arm64.ActiveCfg = Debug|x64
554+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Debug|x64.ActiveCfg = Debug|x64
555+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Debug|x64.Build.0 = Debug|x64
556+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Debug|x86.ActiveCfg = Debug|x64
557+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Preview|arm64.ActiveCfg = Debug|x64
558+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Preview|x64.ActiveCfg = Debug|x64
559+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Preview|x86.ActiveCfg = Debug|x64
560+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Release|arm64.ActiveCfg = Release|x64
561+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Release|x64.ActiveCfg = Release|x64
562+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Release|x86.ActiveCfg = Release|x64
563+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Stable|arm64.ActiveCfg = Debug|x64
564+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Stable|x64.ActiveCfg = Debug|x64
565+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Stable|x86.ActiveCfg = Debug|x64
566+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Store|arm64.ActiveCfg = Debug|x64
567+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Store|x64.ActiveCfg = Debug|x64
568+
{83FF8729-CC76-43E2-976F-47F0A187FC7E}.Store|x86.ActiveCfg = Debug|x64
504569
EndGlobalSection
505570
GlobalSection(SolutionProperties) = preSolution
506571
HideSolutionNode = FALSE
@@ -522,6 +587,8 @@ Global
522587
{EBFA367F-CBDB-4CD0-B838-D6B95F61D1F6} = {A188C26B-E731-4E0B-9D17-D21CEBD9B43F}
523588
{7756A1A4-17B5-4E6B-9B12-F19AA868A225} = {A188C26B-E731-4E0B-9D17-D21CEBD9B43F}
524589
{B3FE3F3B-CECC-4918-B72B-5488C3774125} = {A188C26B-E731-4E0B-9D17-D21CEBD9B43F}
590+
{6F5B1C76-6FA1-49C0-9AF5-672BEDF6900B} = {481DE2EA-E6CE-4A9C-A220-3B543B95AAA1}
591+
{83FF8729-CC76-43E2-976F-47F0A187FC7E} = {A188C26B-E731-4E0B-9D17-D21CEBD9B43F}
525592
EndGlobalSection
526593
GlobalSection(ExtensibilityGlobals) = postSolution
527594
SolutionGuid = {0E62043C-A7A1-4982-9EC9-4CDB2939B776}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
4+
<PropertyGroup>
5+
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
6+
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
7+
<UseWinUI>true</UseWinUI>
8+
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="CommunityToolkit.WinUI.UI" Version="7.1.2" />
13+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240311000" />
14+
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
15+
</ItemGroup>
16+
17+
</Project>

tests/Files.App.UITests/App.xaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
2+
<Application
3+
x:Class="Files.App.UITests.App"
4+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6+
xmlns:local="using:Files.App.UITests">
7+
<Application.Resources>
8+
<ResourceDictionary>
9+
<ResourceDictionary.MergedDictionaries>
10+
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
11+
<!-- Other merged dictionaries here -->
12+
</ResourceDictionary.MergedDictionaries>
13+
<!-- Other app resources here -->
14+
</ResourceDictionary>
15+
</Application.Resources>
16+
</Application>

tests/Files.App.UITests/App.xaml.cs

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Copyright (c) 2024 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using Microsoft.UI.Xaml;
5+
using Microsoft.UI.Xaml.Controls;
6+
using Microsoft.UI.Xaml.Controls.Primitives;
7+
using Microsoft.UI.Xaml.Data;
8+
using Microsoft.UI.Xaml.Input;
9+
using Microsoft.UI.Xaml.Media;
10+
using Microsoft.UI.Xaml.Navigation;
11+
using Microsoft.UI.Xaml.Shapes;
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Linq;
16+
using System.Runtime.InteropServices.WindowsRuntime;
17+
using Windows.ApplicationModel;
18+
using Windows.ApplicationModel.Activation;
19+
using Windows.Foundation;
20+
using Windows.Foundation.Collections;
21+
22+
namespace Files.App.UITests
23+
{
24+
/// <summary>
25+
/// Provides application-specific behavior to supplement the default Application class.
26+
/// </summary>
27+
public partial class App : Application
28+
{
29+
/// <summary>
30+
/// Initializes the singleton application object. This is the first line of authored code
31+
/// executed, and as such is the logical equivalent of main() or WinMain().
32+
/// </summary>
33+
public App()
34+
{
35+
this.InitializeComponent();
36+
}
37+
38+
/// <summary>
39+
/// Invoked when the application is launched.
40+
/// </summary>
41+
/// <param name="args">Details about the launch request and process.</param>
42+
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
43+
{
44+
m_window = new MainWindow();
45+
m_window.Activate();
46+
}
47+
48+
private Window m_window;
49+
}
50+
}
Loading
Loading
Loading
Loading
Loading
456 Bytes
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
4+
<PropertyGroup>
5+
<OutputType>WinExe</OutputType>
6+
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
7+
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
8+
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
9+
<UseWinUI>true</UseWinUI>
10+
<EnableMsixTooling>true</EnableMsixTooling>
11+
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
12+
</PropertyGroup>
13+
14+
<ItemGroup>
15+
<Content Include="Assets\SplashScreen.scale-200.png" />
16+
<Content Include="Assets\LockScreenLogo.scale-200.png" />
17+
<Content Include="Assets\Square150x150Logo.scale-200.png" />
18+
<Content Include="Assets\Square44x44Logo.scale-200.png" />
19+
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
20+
<Content Include="Assets\StoreLogo.png" />
21+
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
22+
</ItemGroup>
23+
24+
<ItemGroup>
25+
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
26+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240627000" />
27+
<Manifest Include="$(ApplicationManifest)" />
28+
</ItemGroup>
29+
30+
<!-- Allows the Single-project MSIX Packaging Tools extension to be activated for this project even if the Windows App SDK Nuget package has not yet been restored. -->
31+
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
32+
<ProjectCapability Include="Msix" />
33+
</ItemGroup>
34+
35+
<!-- Allows the Solution Explorer "Package and Publish" context menu entry to be enabled for this project even if the Windows App SDK Nuget package has not yet been restored. -->
36+
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
37+
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
38+
</PropertyGroup>
39+
40+
</Project>
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
2+
<Window
3+
x:Class="Files.App.UITests.MainWindow"
4+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7+
xmlns:local="using:Files.App.UITests"
8+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9+
mc:Ignorable="d">
10+
11+
<StackPanel
12+
HorizontalAlignment="Center"
13+
VerticalAlignment="Center"
14+
Orientation="Horizontal">
15+
<Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
16+
</StackPanel>
17+
</Window>
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright (c) 2024 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using Microsoft.UI.Xaml;
5+
using Microsoft.UI.Xaml.Controls;
6+
using Microsoft.UI.Xaml.Controls.Primitives;
7+
using Microsoft.UI.Xaml.Data;
8+
using Microsoft.UI.Xaml.Input;
9+
using Microsoft.UI.Xaml.Media;
10+
using Microsoft.UI.Xaml.Navigation;
11+
using System;
12+
using System.Collections.Generic;
13+
using System.IO;
14+
using System.Linq;
15+
using System.Runtime.InteropServices.WindowsRuntime;
16+
using Windows.Foundation;
17+
using Windows.Foundation.Collections;
18+
19+
namespace Files.App.UITests
20+
{
21+
/// <summary>
22+
/// An empty window that can be used on its own or navigated to within a Frame.
23+
/// </summary>
24+
public sealed partial class MainWindow : Window
25+
{
26+
public MainWindow()
27+
{
28+
this.InitializeComponent();
29+
}
30+
31+
private void myButton_Click(object sender, RoutedEventArgs e)
32+
{
33+
myButton.Content = "Clicked";
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
3+
<Package
4+
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
5+
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
6+
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
7+
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
8+
IgnorableNamespaces="uap rescap">
9+
10+
<Identity
11+
Name="322c0e3e-93e4-45cc-bb2e-f76af7960635"
12+
Publisher="CN=Files"
13+
Version="1.0.0.0" />
14+
15+
<mp:PhoneIdentity PhoneProductId="322c0e3e-93e4-45cc-bb2e-f76af7960635" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
16+
17+
<Properties>
18+
<DisplayName>Files UI tests app</DisplayName>
19+
<PublisherDisplayName>Files</PublisherDisplayName>
20+
<Logo>Assets\StoreLogo.png</Logo>
21+
</Properties>
22+
23+
<Dependencies>
24+
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.19041.0" MaxVersionTested="10.0.22621.0" />
25+
</Dependencies>
26+
27+
<Resources>
28+
<Resource Language="x-generate"/>
29+
</Resources>
30+
31+
<Applications>
32+
<Application Id="App"
33+
Executable="$targetnametoken$.exe"
34+
EntryPoint="$targetentrypoint$">
35+
<uap:VisualElements
36+
DisplayName="Files UI tests app"
37+
Description="Files UI tests app. This test app is provided for Files development use."
38+
BackgroundColor="transparent"
39+
Square150x150Logo="Assets\Square150x150Logo.png"
40+
Square44x44Logo="Assets\Square44x44Logo.png">
41+
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" />
42+
<uap:SplashScreen Image="Assets\SplashScreen.png" />
43+
</uap:VisualElements>
44+
</Application>
45+
</Applications>
46+
47+
<Capabilities>
48+
<rescap:Capability Name="runFullTrust" />
49+
</Capabilities>
50+
</Package>

0 commit comments

Comments
 (0)