Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
2a3f639
Run update assistant
gave92 Aug 15, 2022
e31654c
Fix project files
gave92 Aug 15, 2022
906cf5f
Remove themes
gave92 Aug 15, 2022
0484d32
Comment unsupported xaml
gave92 Aug 15, 2022
82aa2c1
GeLocalized(): Microsoft.Toolkit.Uwp -> CommunityToolkit.WinUI
gave92 Aug 15, 2022
368123e
Microsoft.Toolkit.Uwp.UI -> CommunityToolkit.WinUI.UI
gave92 Aug 15, 2022
47698d9
Some more fixes
gave92 Aug 15, 2022
792c875
Merge branch 'main' of https://github.com/files-community/Files into …
gave92 Aug 15, 2022
6014639
Align code
gave92 Aug 15, 2022
8971124
Update rd.xml file
gave92 Aug 17, 2022
c816429
Merge remote-tracking branch 'origin/main' into winui3
gave92 Aug 18, 2022
27fafb9
Port multi instance from Program.cs
gave92 Aug 18, 2022
8920ee5
Replace CoreApplication Dispatcher with App.DispatcherQueue
gave92 Aug 18, 2022
99b2344
[WIP] Properties: switch to AppWindow
gave92 Aug 18, 2022
e6c140a
Comment out mica in xaml
gave92 Aug 18, 2022
bb4fcd6
Comment out <Win32Resource> from proj
gave92 Aug 18, 2022
c58539d
Remove EnablePreviewMsixTooling and PublishProfile from proj
gave92 Aug 18, 2022
9974720
Update Vanara dependency. TBC: do not use WebAuthenticationBroker
gave92 Aug 18, 2022
84723e5
Init window before calling Ensure..()
gave92 Aug 18, 2022
44dfabc
GetLocalized() -> GetLocalizedResource()
gave92 Aug 18, 2022
2428df8
Do not load themes
gave92 Aug 18, 2022
653392c
Fix pipe name
gave92 Aug 18, 2022
12002b6
Revert "Update Vanara dependency. TBC: do not use WebAuthenticationBr…
gave92 Aug 18, 2022
4ddede4
Change FulltrustProcessLuancher to Process.Start
gave92 Aug 18, 2022
e6c62f3
Merge branch 'main' into winui3
gave92 Aug 18, 2022
b3c2fd0
Remove calls to GetForCurrentView()
gave92 Aug 18, 2022
3507bed
Remove references to CoreWindow
gave92 Aug 18, 2022
63708d0
Comment out SystemNavigationManager back button
gave92 Aug 18, 2022
8190f7c
Dispatcher -> DispactherQueue
gave92 Aug 18, 2022
707fa54
Comment out autoupdate check
gave92 Aug 19, 2022
829dc74
Comment out split view style
gave92 Aug 19, 2022
94b41ac
Revert "Comment out split view style"
gave92 Aug 19, 2022
16a43ef
Comment out tab content loading
gave92 Aug 19, 2022
ca620c9
Remove XamlRoot where possible
d2dyno1 Aug 19, 2022
772873a
Better titlebar handling and mica
d2dyno1 Aug 19, 2022
bbdb762
Moved titlebar initialization from App.xaml
d2dyno1 Aug 19, 2022
ea9a216
Merge branch 'winui3_mini' of https://github.com/files-community/File…
gave92 Aug 19, 2022
9391355
Restore tabs
gave92 Aug 19, 2022
fa8629c
Comment out state triggers in AdrressBar
gave92 Aug 19, 2022
7f89ca7
Avoid titlebar flashing
gave92 Aug 19, 2022
6292f49
Fixed settings dialog
d2dyno1 Aug 19, 2022
1b6e37d
Fixed conflicts
d2dyno1 Aug 19, 2022
ddbe1fe
Removed all muxc references
d2dyno1 Aug 19, 2022
51535ee
Restore media player
gave92 Aug 19, 2022
8625464
Merge branch 'winui3_mini' of https://github.com/files-community/File…
gave92 Aug 19, 2022
b68f6e8
Set minimum window size
d2dyno1 Aug 19, 2022
17dee8b
HorizontalMultitaskingControl style same as TabViewItem_shared
gave92 Aug 19, 2022
02a4850
Fix titlebar drag area
gave92 Aug 19, 2022
060e418
Merge branch 'winui3_mini' of https://github.com/files-community/File…
gave92 Aug 19, 2022
d775b26
Enable properties windows
gave92 Aug 19, 2022
abe4e95
Fix preview pane button
gave92 Aug 19, 2022
f28a6bb
Added missing SetContentDialogRoot
d2dyno1 Aug 19, 2022
0348714
Switch to winappsdk 1.2 experimental
gave92 Aug 19, 2022
1606c1b
Revert tabview style change
gave92 Aug 19, 2022
03da24d
Fixed settings dialog width
yaira2 Aug 19, 2022
2d7ffdd
Remove MainWindow content
gave92 Aug 19, 2022
d0d97de
Delay show window after loading UI
gave92 Aug 19, 2022
7dba43e
Fix multi instance (do not use PID as key)
gave92 Aug 20, 2022
c346dc9
Merge branch 'winui3_mini' of https://github.com/files-community/File…
gave92 Aug 20, 2022
3074226
Merge branch 'main' of https://github.com/files-community/Files into …
gave92 Aug 20, 2022
0eee643
Restore commandline and file launch, restore OnSuspending
gave92 Aug 20, 2022
07c0638
Fixed properties window caption buttons
d2dyno1 Aug 20, 2022
da10585
Added SetContentDialogRoot for dynamic dialog
d2dyno1 Aug 20, 2022
dce1b11
Update BackgroundTasks project
gave92 Aug 20, 2022
388980d
Merge branch 'winui3_mini' of https://github.com/files-community/File…
gave92 Aug 20, 2022
0b7d848
Update PropertiesSecurity to match FilePropertiesHelpers
gave92 Aug 20, 2022
e7f9eb1
Merge branch 'main' of https://github.com/files-community/Files into …
gave92 Aug 22, 2022
9c2a961
Fix build
gave92 Aug 22, 2022
808a607
Fix build
gave92 Aug 22, 2022
45ec6b7
Fix resource
gave92 Aug 22, 2022
1de2979
Merge branch 'main' of https://github.com/files-community/Files into …
gave92 Aug 22, 2022
4b7d1d8
Merge branch 'main' of https://github.com/files-community/Files into …
gave92 Aug 23, 2022
6cfd83a
Merge branch 'main' of https://github.com/files-community/Files into …
gave92 Aug 24, 2022
5dad156
Restore MiddleClickScrolling-CursorType.res
gave92 Aug 25, 2022
d8ecb61
Main can't be async. Main must be [STAThread]. Fix copy/paste & drag/…
gave92 Aug 25, 2022
4438b6e
Switch to SDK 22000
gave92 Aug 25, 2022
a41d416
TEST: remove downgraded sdk
gave92 Aug 25, 2022
43929c6
Revert "TEST: remove downgraded sdk"
gave92 Aug 25, 2022
7072feb
Added back updates
yaira2 Aug 25, 2022
4075b55
Create a global.json to constraint dotnet sdk version
hez2010 Aug 26, 2022
1692b62
Loosen the sdk version constraint
hez2010 Aug 26, 2022
96f3dd7
Bump dotnet sdk version
hez2010 Aug 26, 2022
7d6645e
Bump CsWinRT to 2.0
hez2010 Aug 26, 2022
1020818
Merge branch 'main' of https://github.com/files-community/Files into …
gave92 Aug 26, 2022
a1c38ba
Merge branch 'winui3_mini' of https://github.com/files-community/File…
gave92 Aug 26, 2022
d4f6b3b
Revert "Bump dotnet sdk version" > can't use SDK > 6.0.100 due to ful…
gave92 Aug 26, 2022
e2bfec8
Remove duplicate null check on FileExtensionHelpers
gave92 Aug 26, 2022
b3ed5db
Restore theme loading
gave92 Aug 26, 2022
7f46577
Fix main window sometimes not opening
gave92 Aug 26, 2022
ccd0622
Somewhat working drag rect
d2dyno1 Aug 27, 2022
1b03e95
Merge branch 'winui3_mini' of https://github.com/files-community/File…
d2dyno1 Aug 27, 2022
9d7dd4d
Removed red bg
d2dyno1 Aug 27, 2022
c749a49
Removed useless dependencies
d2dyno1 Aug 27, 2022
04bd0b7
Added workaround for drag regions
d2dyno1 Aug 27, 2022
78711cf
Comment double close button in Properties window. Open window near cu…
gave92 Aug 27, 2022
366c40a
Merge branch 'winui3_mini' of https://github.com/files-community/File…
gave92 Aug 27, 2022
9902f79
Mitigate flickering titlebar (naive way)
d2dyno1 Aug 27, 2022
b2d4d80
Merge branch 'winui3_mini' of https://github.com/files-community/File…
d2dyno1 Aug 27, 2022
8e9e9cd
Restore code for custom cursor on sidebar splitter
gave92 Aug 27, 2022
ec3bb9b
Merge branch 'winui3_mini' of https://github.com/files-community/File…
gave92 Aug 27, 2022
8d1c10b
Remember main window size and position
gave92 Aug 27, 2022
94904ae
Fix RuntimeIdentifiers. Fix pipeline??
gave92 Aug 28, 2022
978231b
Downgrade CsWinRT
gave92 Aug 28, 2022
27307d8
Set CsWinRTGeneratedFilesDir to bin directory. Revert downgrade CSWinRT
gave92 Aug 28, 2022
c1e3947
Use MSBuildProjectDirectory
gave92 Aug 28, 2022
a43658f
BG task executable -> Files.Uwp\files.exe
gave92 Aug 28, 2022
65383c6
Removed executable from updateTask
gave92 Aug 28, 2022
4958552
Add localization langs to manifest
gave92 Aug 28, 2022
02e39d3
Copy themes to ouput directory
gave92 Aug 28, 2022
70c719c
Comment out CI tests
gave92 Aug 28, 2022
4492387
Build Debug
gave92 Aug 28, 2022
c29081e
v2.3.12
yaira2 Aug 28, 2022
010c6d0
v2.3.13
yaira2 Aug 28, 2022
951593d
Removed AppxBundleAutoResourcePackageQualifiers
yaira2 Aug 28, 2022
0b27bb0
Revert "Removed AppxBundleAutoResourcePackageQualifiers"
yaira2 Aug 28, 2022
cb8a147
Remove 'Scale' from AppxBundleAutoResourcePackageQualifiers. Restore …
gave92 Aug 29, 2022
066566b
Merge branch 'winui3_mini' of https://github.com/files-community/File…
gave92 Aug 29, 2022
455f4f7
Revert "Remove 'Scale' from AppxBundleAutoResourcePackageQualifiers. …
gave92 Aug 29, 2022
61459ab
Set sdk version to 6.0.100 (again)
gave92 Aug 29, 2022
d9e91d1
Update azure-pipelines-release.yml
yaira2 Aug 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion builds/azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ variables:
- name: solution
value: '**/*.sln'
- name: buildPlatform
value: 'x64|arm64'
value: 'x64|x86'
- name: buildConfiguration
value: 'Release'
- name: sideloadBuildConfiguration
Expand Down
64 changes: 32 additions & 32 deletions builds/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pool:
variables:
solution: '**/*.sln'
buildPlatform: 'x64'
buildConfiguration: 'Release'
buildConfiguration: 'Debug'
appxPackageDir: '$(build.artifactStagingDirectory)\AppxPackages\\'

steps:
Expand Down Expand Up @@ -77,44 +77,44 @@ steps:
platform: 'x64'
solution: '**/*.wapproj'
configuration: '$(buildConfiguration)'
msbuildArguments: '/t:build;_GenerateAppxPackage /p:Configuration=Release;Platform="$(buildPlatform)";AppxBundle=Always;AppxBundlePlatforms="$(buildPlatform)";AppxPackageDir="$(appxPackageDir)";AppxPackageSigningEnabled=true;UapAppxPackageBuildMode=SideloadOnly;PackageCertificateKeyFile="$(Build.SourcesDirectory)\builds\Files_SelfSigned.pfx";PackageCertificatePassword="";PackageCertificateThumbprint=""'
msbuildArguments: '/t:build;_GenerateAppxPackage /p:Configuration=Debug;Platform="$(buildPlatform)";AppxBundle=Always;AppxBundlePlatforms="$(buildPlatform)";AppxPackageDir="$(appxPackageDir)";AppxPackageSigningEnabled=true;UapAppxPackageBuildMode=SideloadOnly;PackageCertificateKeyFile="$(Build.SourcesDirectory)\builds\Files_SelfSigned.pfx";PackageCertificatePassword="";PackageCertificateThumbprint=""'
maximumCpuCount: true

- task: DotNetCoreCLI@2
inputs:
command: 'build'
arguments: './tests/Files.InteractionTests/Files.InteractionTests.csproj --configuration $(buildConfiguration)'

- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
# Find correct folder and run app install script.
cd $(appxPackageDir)

$AppBundle = Get-ChildItem -Filter Files*Test -Name
echo $AppBundle
cd $AppBundle
./Install.ps1 -Force
Get-AppxPackage
errorActionPreference: 'continue'
failOnStderr: true
workingDirectory: '$(System.DefaultWorkingDirectory)'


- task: Windows Application Driver@0
inputs:
OperationType: 'Start'
AgentResolution: '1080p'

- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\$(buildConfiguration)\Files.InteractionTests\net6.0\Files.InteractionTests.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)'
#- task: PowerShell@2
# inputs:
# targetType: 'inline'
# script: |
# # Find correct folder and run app install script.
# cd $(appxPackageDir)

# $AppBundle = Get-ChildItem -Filter Files*Test -Name
# echo $AppBundle
# cd $AppBundle
# ./Install.ps1 -Force
# Get-AppxPackage
# errorActionPreference: 'continue'
# failOnStderr: true
# workingDirectory: '$(System.DefaultWorkingDirectory)'


#- task: Windows Application Driver@0
# inputs:
# OperationType: 'Start'
# AgentResolution: '1080p'

#- task: VSTest@2
# inputs:
# testSelector: 'testAssemblies'
# testAssemblyVer2: |
# **\$(buildConfiguration)\Files.InteractionTests\net6.0\Files.InteractionTests.dll
# !**\*TestAdapter.dll
# !**\obj\**
# searchFolder: '$(System.DefaultWorkingDirectory)'

- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
Expand Down
101 changes: 21 additions & 80 deletions src/BackgroundTasks/BackgroundTasks.csproj
Original file line number Diff line number Diff line change
@@ -1,140 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{3D19293F-0E3A-4946-ADE3-680A1E9123EC}</ProjectGuid>
<OutputType>winmdobj</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BackgroundTasks</RootNamespace>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<AssemblyName>BackgroundTasks</AssemblyName>
<DefaultLanguage>it-IT</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.22000.0</TargetPlatformVersion>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>17</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<AllowCrossPlatformRetargeting>false</AllowCrossPlatformRetargeting>
</PropertyGroup>
<PropertyGroup>
<CsWinRTComponent>true</CsWinRTComponent>
<CsWinRTWindowsMetadata>10.0.22000.0</CsWinRTWindowsMetadata>
<CsWinRTGeneratedFilesDir>$(MSBuildProjectDirectory)\bin\$(Platform)\$(Configuration)</CsWinRTGeneratedFilesDir>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Windows.CsWinRT">
<Version>2.0.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<None Update="WinRT.Host.runtimeconfig.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<PlatformTarget>x86</PlatformTarget>
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|arm64'">
<PlatformTarget>arm64</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\arm64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|arm64'">
<PlatformTarget>arm64</PlatformTarget>
<OutputPath>bin\arm64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<PlatformTarget>x64</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<PlatformTarget>x64</PlatformTarget>
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
<ItemGroup>
<Compile Include="UpdateTask.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.14</Version>
</PackageReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '17.0' ">
<VisualStudioVersion>17.0</VisualStudioVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Sideload|x86'">
<OutputPath>bin\x86\Sideload\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<NoStdLib>true</NoStdLib>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Sideload|arm64'">
<OutputPath>bin\arm64\Sideload\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<NoStdLib>true</NoStdLib>
<DebugType>pdbonly</DebugType>
<PlatformTarget>arm64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Sideload|x64'">
<OutputPath>bin\x64\Sideload\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<NoStdLib>true</NoStdLib>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
28 changes: 0 additions & 28 deletions src/BackgroundTasks/Properties/AssemblyInfo.cs

This file was deleted.

10 changes: 10 additions & 0 deletions src/BackgroundTasks/WinRT.Host.runtimeconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"rollForward": "LatestMinor",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
}
}
}
15 changes: 15 additions & 0 deletions src/Files.Backend/Services/IDialogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,25 @@

namespace Files.Backend.Services
{
/// <summary>
/// A service to manage dialogs.
/// </summary>
public interface IDialogService
{
/// <summary>
/// Gets appropriate dialog with associated <paramref name="viewModel"/>.
/// </summary>
/// <typeparam name="TViewModel">The type of view model.</typeparam>
/// <param name="viewModel">The view model of the dialog.</param>
/// <returns>A new instance of <see cref="IDialog{TViewModel}"/> with associated <paramref name="viewModel"/>.</returns>
IDialog<TViewModel> GetDialog<TViewModel>(TViewModel viewModel) where TViewModel : class, INotifyPropertyChanged;

/// <summary>
/// Creates and shows appropriate dialog derived from associated <paramref name="viewModel"/>.
/// </summary>
/// <typeparam name="TViewModel">The type of view model.</typeparam>
/// <param name="viewModel">The view model of the dialog.</param>
/// <returns>A <see cref="Task"/> that represents the asynchronous operation. Returns <see cref="DialogResult"/> based on the selected option.</returns>
Task<DialogResult> ShowDialogAsync<TViewModel>(TViewModel viewModel) where TViewModel : class, INotifyPropertyChanged;
}
}
3 changes: 1 addition & 2 deletions src/Files.FullTrust/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,8 @@ private static void UnhandledExceptionTrapper(object sender, UnhandledExceptionE

private static async void InitializeAppServiceConnection()
{
var packageSid = ApplicationData.Current.LocalSettings.Values["PackageSid"];
connection = new NamedPipeClientStream(".",
$"Sessions\\{Process.GetCurrentProcess().SessionId}\\AppContainerNamedObjects\\{packageSid}\\FilesInteropService_ServerPipe",
$"LOCAL\\FilesInteropService_ServerPipe",
PipeDirection.InOut, PipeOptions.Asynchronous);

try
Expand Down
1 change: 1 addition & 0 deletions src/Files.Package/Files.Package.wapproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<ProjectGuid>3b15596c-3db9-4b58-b4c8-442d06a8c130</ProjectGuid>
<TargetPlatformVersion>10.0.22000.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<AssetTargetFallback>net6.0-windows$(TargetPlatformVersion);$(AssetTargetFallback)</AssetTargetFallback>
<DefaultLanguage>en-US</DefaultLanguage>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
Expand Down
Loading