Home > Mobile >  How to add .Net Standard Nuget package into .Net 4.5 Framework Project?
How to add .Net Standard Nuget package into .Net 4.5 Framework Project?

Time:07-17

I am trying to install https://www.nuget.org/packages/FFMpegCore/4.8.0#dependencies-body-tab (FFMpegCore) Nuget package in my .Net 4.5 Console project. But unfortunately, getting the below error

Error NU1202 Package FFMpegCore 4.8.0 is not compatible with net45 (.NETFramework,Version=v4.5) / win-x86. Package FFMpegCore 4.8.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) ScreenCapturer C:\source\repos\ScreenCapturer\ScreenCapturer.csproj 1

Actually trying to stream .png images to FFmpeg input pipe & then convert them as a video.

P.S: Kind of new to this FFMpeg as well. So any help would be appreciated.

CodePudding user response:

The plugin requires at least .NETStandard,Version=v2.0 to be used. There is nothing you can change here. As you can see at .NET Standards documentation, this means your application requires .NET Framework 4.6.1 or higher to be compatible.

This means you need to upgrade your .NET Framework target version of your application to fulfill the requirement. Another option would be to write a .NET Core application.

  • Related