Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Package 'PresentationFramework 4.6.0' was restored using '.NETFramework,Version=v4.6.x instead of the project target framework 'net7.0'

$
0
0

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

  1. 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.

  1. Tried moving PresentationFramework.dll to lib/net7.0 folder.Chronogeran answerans: Build Failed

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>