Fixed the following compiler errors and warning.

* QuickTaskInfoEditForm.cs(57, 124): [CS8107] Feature 'enum generic type constraints' is not available in C# 7.0. Please use language version 7.3 or greater.

* VideoConverterForm.cs(177, 25): [CS0121] The call is ambiguous between the following methods or properties: 'Task.Run<TResult>(Func<TResult>)' and 'Task.Run(Func<Task>)'

* HashCheck.cs(65, 55): [CS0168] The variable 'e' is declared but never used
This commit is contained in:
Michael Ryan 2020-09-14 12:22:56 -07:00
parent be385c28a1
commit 46c8c4b778
3 changed files with 3 additions and 2 deletions

View file

@ -62,7 +62,7 @@ public async Task<string> Start(string filePath, HashType hashType)
{
return HashCheckThread(filePath, hashType, progress, cts.Token);
}
catch (OperationCanceledException e)
catch (OperationCanceledException)
{
}

View file

@ -174,7 +174,7 @@ private bool StartEncoding()
private Task<bool> StartEncodingAsync()
{
return Task.Run(StartEncoding);
return Task.Run(() => StartEncoding());
}
private void Manager_EncodeProgressChanged(float percentage)

View file

@ -34,6 +34,7 @@
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>