AydinAdn/MediaToolkit

.NET 5 Update

Opened this issue · 1 comments

Hi, I tried using MediaToolkit in a .NET 5 console application, and got the following error using version 1.1.0.1 of MediaToolkit when writing

// this line when creating a new Engine in the constructor
using (var engine = new Engine())
{
// ...
}

I get this error:

"{"Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.":"System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"}"

with a stack trace of

" at MediaToolkit.EngineBase..ctor()\r\n at MediaToolkit.Engine..ctor()\r\n ........ "

To fix it, I installed the latest version (5.0.0) of System.Configuration.ConfigurationManager and the error went away. Just wanted to let you know.

Same here when running a .NET CORE 3 Console app
Installing from nuget the System.Configuration.ConfigurationManager fixed it
Thanks @jmoceri34