AJMitev / FileTypeChecker

Cross platform file type validator for .NET
MIT License
139 stars 27 forks source link

Async usage error on .NET 6 #15

Closed adamhathcock closed 2 years ago

adamhathcock commented 2 years ago
System.IO.FileNotFoundException: Could not load file or assembly 'System.Linq.Async, Version=5.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263'. The system cannot find the file specified.

File name: 'System.Linq.Async, Version=5.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263'
   at FileTypeChecker.FileTypeValidator.GetFileTypeAsync(Stream fileContent)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at FileTypeChecker.FileTypeValidator.GetFileTypeAsync(Stream fileContent)

happens when only .NET 6 SDK is installed...this is from dockerized CI.

AJMitev commented 2 years ago

The dependency was not included in the nuspec file. I updated the package.