Package 'PresentationFramework 4.6.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net7.0'. This package may not be fully compatible with your project.
It is a console application.Severe Warning
- Updated targetFramework field with 'net7.0' as value in presentationframework.nuspec file.ans: Build succeded but threw exception at runtime.System.BadImageFormatExceptionHResult=0x80131058Message=Could not load file or assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Reference assemblies cannot be loaded for execution. (0x80131058)Source=StackTrace:
Inner Exception 1:BadImageFormatException: Cannot load a reference assembly for execution.
- Tried moving PresentationFramework.dll to lib/net7.0 folder.Chronogeran answerans: Build Failed