3

dotnet 6 引用 NAudio 的旧版本构建不通过

 2 years ago
source link: https://lindexi.gitee.io/post/dotnet-6-%E5%BC%95%E7%94%A8-NAudio-%E7%9A%84%E6%97%A7%E7%89%88%E6%9C%AC%E6%9E%84%E5%BB%BA%E4%B8%8D%E9%80%9A%E8%BF%87.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

dotnet 6 引用 NAudio 的旧版本构建不通过

本文告诉大家在使用 NAudio 的旧版本导致构建不通过问题,解决方法是升级到 1.10 或以上版本

在更新 dotnet 6 项目时,使用了 NAudio 的旧版本,构建失败,提示 MC1000 如下

未知的生成错误“Could not find assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. Either explicitly load this assembly using a method such as LoadFromAssemblyPath() or use a MetadataAssemblyResolver that returns a valid assembly.”

提示的文件如下

C:\Program Files\dotnet\sdk\6.0.100\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets

解决方法是升级到 1.10 或以上版本


本文会经常更新,请阅读原文: https://blog.lindexi.com/post/dotnet-6-%E5%BC%95%E7%94%A8-NAudio-%E7%9A%84%E6%97%A7%E7%89%88%E6%9C%AC%E6%9E%84%E5%BB%BA%E4%B8%8D%E9%80%9A%E8%BF%87.html ,以避免陈旧错误知识的误导,同时有更好的阅读体验。

如果你想持续阅读我的最新博客,请点击 RSS 订阅,推荐使用RSS Stalker订阅博客,或者前往 CSDN 关注我的主页

本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可。欢迎转载、使用、重新发布,但务必保留文章署名林德熙(包含链接: https://blog.lindexi.com ),不得用于商业目的,基于本文修改后的作品务必以相同的许可发布。如有任何疑问,请 与我联系

无盈利,不卖课,做纯粹的技术博客

以下是广告时间

推荐关注 Edi.Wang 的公众号
lindexi%2F201985113622445

欢迎进入 Eleven 老师组建的 .NET 社区
lindexi%2F20209121930471745.jpg

以上广告全是友情推广,无盈利


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK