mirror of
https://github.com/araxiaonline/WoW-Launcher.git
synced 2026-06-13 01:22:21 -04:00
Fix Microsoft.DotNet.ILCompiler cross compile package.
Remove unused IsFileClosed method.
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="7.0.0" />
|
||||
<PackageReference Include="runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="7.*" />
|
||||
<PackageReference Include="System.CommandLine" Version="2.0.0-*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@@ -41,17 +41,4 @@ static class Helpers
|
||||
Console.WriteLine();
|
||||
Console.WriteLine($"Operating System: {RuntimeInformation.OSDescription}");
|
||||
}
|
||||
|
||||
public static bool IsFileClosed(string filename)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var inputStream = File.Open(filename, FileMode.Open, FileAccess.Read, FileShare.None))
|
||||
return false;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user