Skip to content

Commit e2db0a7

Browse files
committed
v7.0.22158.0-Beta
1 parent 1986f61 commit e2db0a7

File tree

17 files changed

+127
-92
lines changed

17 files changed

+127
-92
lines changed

Common/Common.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<Platforms>AnyCPU;x64</Platforms>
1111
</PropertyGroup>
1212
<ItemGroup>
13-
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.0.22106.0-Beta" />
14-
<PackageReference Include="ITHit.FileSystem" Version="7.0.22106.0-Beta" />
13+
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.0.22158.0-Beta" />
14+
<PackageReference Include="ITHit.FileSystem" Version="7.0.22158.0-Beta" />
1515
</ItemGroup>
1616
</Project>

Windows/Common/Core/Commands.cs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,18 +159,25 @@ public async Task StopEngineAsync()
159159
}
160160

161161
#if DEBUG
162+
162163
/// <summary>
163-
/// Opens Windows File Manager with both remote storage and user file system for testing.
164+
/// Sets console output defaults.
164165
/// </summary>
165-
/// <param name="openRemoteStorage">True if the Remote Storage must be opened. False - otherwise.</param>
166-
/// <remarks>This method is provided solely for the development and testing convenience.</remarks>
167-
public void ShowTestEnvironment(bool openRemoteStorage = true)
166+
public void ConfigureConsole()
168167
{
169168
// Enable UTF8 for Console Window and set width.
170169
Console.OutputEncoding = System.Text.Encoding.UTF8;
171170
Console.SetWindowSize(Console.LargestWindowWidth, Console.LargestWindowHeight / 3);
172-
Console.SetBufferSize(Console.LargestWindowWidth * 2, short.MaxValue / 2);
171+
//Console.SetBufferSize(Console.LargestWindowWidth * 2, short.MaxValue / 2);
172+
}
173173

174+
/// <summary>
175+
/// Opens Windows File Manager with both remote storage and user file system for testing.
176+
/// </summary>
177+
/// <param name="openRemoteStorage">True if the Remote Storage must be opened. False - otherwise.</param>
178+
/// <remarks>This method is provided solely for the development and testing convenience.</remarks>
179+
public void ShowTestEnvironment(bool openRemoteStorage = true)
180+
{
174181
// Open Windows File Manager with user file system.
175182
Commands.Open(Engine.Path);
176183

Windows/Common/Core/Common.Windows.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.19041.1" />
2121
</ItemGroup>
2222
<ItemGroup>
23-
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="7.0.22106.0-Beta" />
24-
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.0.22106.0-Beta" />
23+
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="7.0.22158.0-Beta" />
24+
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.0.22158.0-Beta" />
2525
<ProjectReference Include="..\..\..\Common\Common.csproj" />
2626
</ItemGroup>
2727
</Project>

Windows/Common/Core/Registrar.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ public async Task CleanupAppFoldersAsync(EngineWindows engine)
120120

121121
try
122122
{
123-
if (engine != null)
123+
if (engine != null && !string.IsNullOrWhiteSpace(engine.DataPath))
124124
{
125-
await engine.UninstallCleanupAsync();
125+
Directory.Delete(engine.DataPath, true);
126126
}
127127
}
128128
catch (Exception ex)

Windows/Common/VirtualDrive/Common.Windows.VirtualDrive.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<Compile Remove="IVirtualFolder.cs" />
1414
</ItemGroup>
1515
<ItemGroup>
16-
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.0.22106.0-Beta" />
16+
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.0.22158.0-Beta" />
1717
<ProjectReference Include="..\..\..\Common\Common.csproj" />
1818
<ProjectReference Include="..\Core\Common.Windows.Core.csproj" />
1919
</ItemGroup>

Windows/Common/VirtualDrive/VirtualEngineBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public override async Task StopAsync()
114114
/// <param name="e">Contains new and old Engine state.</param>
115115
private void Engine_StateChanged(Engine engine, EngineWindows.StateChangeEventArgs e)
116116
{
117-
engine.LogMessage($"{e.NewState}");
117+
engine.Logger.LogMessage($"{e.NewState}");
118118
}
119119

120120
/// <summary>

Windows/VirtualDrive/VirtualDrive.ShellExtension/VirtualDrive.ShellExtension.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
2020
</ItemGroup>
2121
<ItemGroup>
22-
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="7.0.22106.0-Beta" />
22+
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="7.0.22158.0-Beta" />
2323
</ItemGroup>
2424
<ItemGroup>
2525
<None Update="log4net.config">

Windows/VirtualDrive/VirtualDrive/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ static async Task Main(string[] args)
7171
Settings = new ConfigurationBuilder().AddJsonFile("appsettings.json", false, true).Build().ReadSettings();
7272

7373
logFormatter = new LogFormatter(log, Settings.AppID, Settings.RemoteStorageRootPath);
74+
commands = new Commands(log, Settings.RemoteStorageRootPath);
75+
commands.ConfigureConsole();
7476

7577
// Log environment description.
7678
logFormatter.PrintEnvironmentDescription();
7779

7880
registrar = new SparsePackageRegistrar(SyncRootId, Settings.UserFileSystemRootPath, log, ShellExtension.ShellExtensions.Handlers);
7981

80-
commands = new Commands(log, Settings.RemoteStorageRootPath);
8182
consoleProcessor = new ConsoleProcessor(registrar, logFormatter, commands);
8283

8384
switch (args.FirstOrDefault())

Windows/VirtualDrive/VirtualDrive/VirtualDrive.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This is an advanced project with ETags support, Microsoft Office documents editi
4040
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
4141
</ItemGroup>
4242
<ItemGroup>
43-
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="7.0.22106.0-Beta" />
43+
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="7.0.22158.0-Beta" />
4444
<ProjectReference Include="..\..\..\Common\Common.csproj" />
4545
<ProjectReference Include="..\..\Common\VirtualDrive\Common.Windows.VirtualDrive.csproj" />
4646
</ItemGroup>

Windows/VirtualDrive/VirtualDrive/VirtualFolder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public async Task GetChildrenAsync(string pattern, IOperationContext operationCo
140140
// To signal that the children enumeration is completed
141141
// always call ReturnChildren(), even if the folder is empty.
142142
await resultContext.ReturnChildrenAsync(remoteStorageChildren.ToArray(), totalCount);
143-
Engine.LogDebug($"Listed {totalCount} item(s). Took: {watch.Elapsed.ToString(@"hh\:mm\:ss\.ff")}", UserFileSystemPath);
143+
Logger.LogDebug($"Listed {totalCount} item(s). Took: {watch.Elapsed.ToString(@"hh\:mm\:ss\.ff")}", UserFileSystemPath);
144144

145145
// Save data that you wish to display in custom columns here.
146146
//foreach (FileSystemItemMetadataExt itemMetadata in userFileSystemChildren)

0 commit comments

Comments
 (0)