Skip to content

Commit

Permalink
v8.4.27341.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ITHitBuild committed Dec 17, 2024
1 parent 58973af commit 5668f50
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 222 deletions.
4 changes: 2 additions & 2 deletions Common/Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows" Version="8.3.27213.0" />
<PackageReference Include="ITHit.FileSystem" Version="8.3.27213.0" />
<PackageReference Include="ITHit.FileSystem.Windows" Version="8.4.27341.0" />
<PackageReference Include="ITHit.FileSystem" Version="8.4.27341.0" />
</ItemGroup>
</Project>
21 changes: 0 additions & 21 deletions Windows/Common/Core/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,26 +199,5 @@ public void ShowTestEnvironment(string userFileSystemWindowName, bool openRemote
}

#endif

public void Test()
{
string name = "Notes.txt";
string filePath = Path.Combine(Engine.Path, name);
//FileInfo fi = new FileInfo(filePath);
//fi.IsReadOnly = true;

var n = Engine.ServerNotifications(filePath);
IFileMetadata metadata = new FileMetadata();
metadata.Attributes = FileAttributes.Normal;
metadata.CreationTime = DateTimeOffset.Now;
metadata.LastWriteTime = DateTimeOffset.Now;
metadata.ChangeTime = DateTimeOffset.Now;
metadata.LastAccessTime = DateTimeOffset.Now;
metadata.Name = name;
metadata.MetadataETag = DateTimeOffset.Now.Ticks.ToString();
metadata.ContentETag = null;//"etag1";
n.UpdateAsync(metadata);
}

}
}
12 changes: 6 additions & 6 deletions Windows/Common/Core/Common.Windows.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0-windows10.0.19041.0;net48</TargetFrameworks>
<TargetFrameworks>net9.0-windows10.0.19041.0;net48</TargetFrameworks>
<UseWindowsForms>True</UseWindowsForms>
<Description>Contains functionality common for all Windows Virtual Drive samples.</Description>
<Authors>IT Hit LTD.</Authors>
Expand All @@ -16,15 +16,15 @@
<Compile Remove="Logger.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="log4net" Version="2.0.13" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="log4net" Version="3.0.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net48' ">
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.19041.1" />
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.26100.1742" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="8.3.27213.0" />
<PackageReference Include="ITHit.FileSystem.Windows" Version="8.3.27213.0" />
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="8.4.27341.0" />
<PackageReference Include="ITHit.FileSystem.Windows" Version="8.4.27341.0" />
<ProjectReference Include="..\..\..\Common\Common.csproj" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions Windows/Common/Core/LogFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public async Task PrintEngineDescriptionAsync(EngineWindows engine, string remot
Log.Info($"\n{"Shell extensions RPC enabled:",indent} {engine.ShellExtensionsComServerRpcEnabled}");
Log.Info($"\n{"Max create/read/write concurrent requests:",indent} {engine.MaxTransferConcurrentRequests}");
Log.Info($"\n{"Max list/move/delete concurrent requests:",indent} {engine.MaxOperationsConcurrentRequests}");
Log.Info($"\n{"Folder invalidation interval, ms:",indent} {engine.FolderInvalidationIntervalMs}");

// Log indexing state. Sync root must be indexed.
await PrintIndexingStateAsync(engine.Path);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net9.0-windows10.0.19041.0</TargetFrameworks>
<Description>Contains functionality common for all Windows Virtual Drive samples.</Description>
<Authors>IT Hit LTD.</Authors>
<Product>IT Hit User File System</Product>
Expand All @@ -13,8 +13,8 @@
<Compile Remove="IVirtualFolder.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows.AppHelper" Version="8.3.27213.0" />
<PackageReference Include="ITHit.FileSystem.Windows" Version="8.3.27213.0" />
<PackageReference Include="ITHit.FileSystem.Windows.AppHelper" Version="8.4.27341.0" />
<PackageReference Include="ITHit.FileSystem.Windows" Version="8.4.27341.0" />
<ProjectReference Include="..\..\..\Common\Common.csproj" />
<ProjectReference Include="..\Core\Common.Windows.Core.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
</ItemGroup>
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
<ItemGroup>
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22000.197" PrivateAssets="all" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1742" PrivateAssets="all" />
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\VirtualDrive\VirtualDrive.csproj">
Expand Down
12 changes: 6 additions & 6 deletions Windows/VirtualDrive/VirtualDrive/VirtualDrive.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<TargetFramework>net9.0-windows10.0.19041.0</TargetFramework>
<Authors>IT Hit LTD.</Authors>
<Company>IT Hit LTD.</Company>
<Product>Virtual Drive</Product>
Expand Down Expand Up @@ -35,12 +35,12 @@ This is an advanced project with ETags support, Microsoft Office documents editi
<Compile Remove="SyncService.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
<PackageReference Include="System.Drawing.Common" Version="9.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="8.3.27213.0" />
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="8.4.27341.0" />
<ProjectReference Include="..\..\..\Common\Common.csproj" />
<ProjectReference Include="..\..\Common\VirtualDrive\Common.Windows.VirtualDrive.csproj" />
</ItemGroup>
Expand Down Expand Up @@ -83,6 +83,6 @@ This is an advanced project with ETags support, Microsoft Office documents editi
</None>
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="&quot;C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\makeappx&quot; pack /d &quot;$(ProjectDir)SparsePackage&quot; /p &quot;$(OutDir)$(ProjectName).msix&quot; /nv /o&#xD;&#xA;&quot;C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool&quot; sign /fd SHA256 /a /f &quot;$(ProjectDir)$(ProjectName)_TemporaryKey.pfx&quot; /p &quot;ccaZD9HZ5ueFAYfaTtoN&quot; &quot;$(OutDir)$(ProjectName).msix&quot;&#xD;&#xA;taskkill /f /fi &quot;imagename eq VirtualDrive.ShellExtension.exe&quot;" />
<Exec Command="&quot;C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\makeappx&quot; pack /d &quot;$(ProjectDir)SparsePackage&quot; /p &quot;$(OutDir)$(ProjectName).msix&quot; /nv /o&#xD;&#xA;&quot;C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool&quot; sign /fd SHA256 /a /f &quot;$(ProjectDir)$(ProjectName)_TemporaryKey.pfx&quot; /p &quot;ccaZD9HZ5ueFAYfaTtoN&quot; &quot;$(OutDir)$(ProjectName).msix&quot;" />
</Target>
</Project>
6 changes: 3 additions & 3 deletions Windows/VirtualFileSystem/VirtualFileSystem.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net8.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net9.0-windows10.0.19041.0</TargetFrameworks>
<Authors>IT Hit LTD.</Authors>
<Company>IT Hit LTD.</Company>
<Product>Virtual File System</Product>
Expand Down Expand Up @@ -32,10 +32,10 @@ This project does not support ETags, locking, Microsoft Office documents editing
<Compile Remove="SyncService.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.1.7" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows.AppHelper" Version="8.3.27213.0" />
<PackageReference Include="ITHit.FileSystem.Windows.AppHelper" Version="8.4.27341.0" />
<ProjectReference Include="..\Common\Core\Common.Windows.Core.csproj" />
</ItemGroup>
<ItemGroup>
Expand Down
18 changes: 11 additions & 7 deletions Windows/WebDAVDrive/WebDAVDrive/Pages/MountNewDrivePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ namespace WebDAVDrive;

public partial class MountNewDrivePage : ContentPage
{
public MountNewDrivePage()
{
InitializeComponent();
}
public MountNewDrivePage()
{
InitializeComponent();
}

private async void OnValidateClicked(object sender, EventArgs e)
{
Expand All @@ -34,14 +34,18 @@ private async void OnValidateClicked(object sender, EventArgs e)
btnAddDrive.IsEnabled = false;

// Mount new domain.
await ServiceProviderUtil.GetService<IDomainsService>().MountNewAsync([url]);
_ = Task.Run(async () =>
{
await ServiceProviderUtil.GetService<IDomainsService>().MountNewAsync([url]);

});
Application.Current.CloseWindow(Window);
}
else
{
{
ValidationMessage.Text = "Invalid URL. Please enter a valid URL.";
ValidationMessage.IsVisible = true;
}
}
}
}

Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions Windows/WebDAVDrive/WebDAVDrive/Services/DomainsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ private async Task<bool> TryCreateEngineAsync(string webDAVServerUrl, string use
engine.AutoLock = Settings.AutoLock;
engine.MaxTransferConcurrentRequests = Settings.MaxTransferConcurrentRequests.Value;
engine.MaxOperationsConcurrentRequests = Settings.MaxOperationsConcurrentRequests.Value;
engine.FolderInvalidationIntervalMs = Settings.FolderInvalidationIntervalMs;

// Print Engine config, settings, logging headers.
await LogFormatter.PrintEngineStartInfoAsync(engine, webDAVServerUrl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static ProtocolParameters Parse(Uri uri)
{
ItemUrls = GetItemUrls(parameters),
MountUrl = new Uri(HttpUtility.UrlDecode(parameters["MountUrl"])),
Command = Enum.TryParse(HttpUtility.UrlDecode(parameters["Command"]), true, out CommandType command)
Command = parameters.ContainsKey("Command") && Enum.TryParse(HttpUtility.UrlDecode(parameters["Command"]), true, out CommandType command)
? command
: CommandType.Open // Default if parsing fails
};
Expand Down
Loading

0 comments on commit 5668f50

Please sign in to comment.