首页 > 编程知识 正文

如何更改netframework的版本,此操作系统不支持net framework

时间:2023-05-04 17:55:07 阅读:287028 作者:4597

已使用.netframework,version=v4.6.1 而不是目标框架netcoreapp,version=v2.1 还原包,此包可能与项目不完全兼容

 

NU1202: 包 System.Runtime.InteropServices.RuntimeInformation 4.0.0 与 netcoreapp2.2 (.NETCoreApp,Version=v2.2) 不兼容。 包 System.Runtime.InteropServices.RuntimeInformation 4.0.0 支持:
- monoandroid10 (MonoAndroid,Version=v1.0)
- monotouch10 (MonoTouch,Version=v1.0)
- xamarinios10 (Xamarin.iOS,Version=v1.0)
- xamarinmac20 (Xamarin.Mac,Version=v2.0)
- xamarintvos10 (Xamarin.TVOS,Version=v1.0)
- xamarinwatchos10 (Xamarin.WatchOS,Version=v1.0)


ngMasuit.LuceneEFCore.SearchEngine-masterMasuit.LuceneEFCore.SearchEngineMasuit.LuceneEFCore.SearchEngine.csproj : warning NU1701: 已使用“.NETFramework,Version=v4.6.1”而不是项目目标框架“.NETStandard,Version=v2.0”还原包“System.Collections 4.0.11”。此包可能与项目不完全兼容。

  dotnet nuget locals all --clear

在 nuget console 执行:
dotnet nuget locals all --clear

转载于:https://www.cnblogs.com/Jeely/p/10784538.html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。