Skip to content

Commit 3077837

Browse files
committed
Refactorings
1 parent 72884f2 commit 3077837

File tree

4 files changed

+128
-101
lines changed

4 files changed

+128
-101
lines changed

AsyncToSyncCodeRoundtripSynchroniserMonitorNet.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
8282
<HintPath>packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
8383
</Reference>
84+
<Reference Include="Nito.AspNetBackgroundTasks, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
85+
<HintPath>..\..\FolderSync\FolderSyncNet\packages\Nito.AspNetBackgroundTasks.1.0.0\lib\net45\Nito.AspNetBackgroundTasks.dll</HintPath>
86+
</Reference>
8487
<Reference Include="Nito.AsyncEx.Coordination, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
8588
<HintPath>packages\Nito.AsyncEx.Coordination.5.0.0\lib\netstandard1.3\Nito.AsyncEx.Coordination.dll</HintPath>
8689
</Reference>

Extensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ public static string GetLongPath(string path)
5050
{
5151
//@"\\?\" prefix is needed for reading from long paths: https://stackoverflow.com/questions/44888844/directorynotfoundexception-when-using-long-paths-in-net-4-7 and https://superuser.com/questions/1617012/support-of-the-unc-server-share-syntax-in-windows
5252

53-
if (path.Substring(0, 2) == @"\\") //network path
53+
if (path.Substring(0, 2) == @"\\") //network path or path already starting with \\?\
5454
{
55-
//return @"\\?\UNC" + path.Substring(1);
5655
return path;
5756
}
5857
else

0 commit comments

Comments
 (0)