C# 加载程序集时出现异常:System.IO.FileNotFoundException:无法加载程序集';System.ValueTuple,版本=4.0.2.0,
我尝试使用Microchart将图表包含到我的xamarin表单应用程序中,当安装Microchart和Microchart.forms nuggets时,我无法再次构建我的项目,它会给出以下错误 严重性代码说明项目文件行抑制状态 加载程序集时出现错误异常:System.IO.FileNotFoundException:无法加载程序集“System.ValueTuple,版本=4.0.2.0,区域性=中性,PublicKeyToken=CC7B13FFCD2DD51”。也许它不存在于Mono for Android配置文件中? 文件名:“System.ValueTuple.dll” 位于Java.Interop.Tools.Cecil.directorySassemblyResolver.Resolve(AssemblyNameReference,ReaderParameters参数) 位于Xamarin.Android.Tasks.ResolveAssemblys.AddAssemblyReferences(ICollection`1程序集,AssemblyDefinition程序集,布尔顶级) 在Xamarin.Android.Tasks.ResolveAssemblys.Execute()Xceed365m4.Droid C:\Program Files(x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 1410C# 加载程序集时出现异常:System.IO.FileNotFoundException:无法加载程序集';System.ValueTuple,版本=4.0.2.0,,c#,ios,xamarin,charts,xamarin.forms,C#,Ios,Xamarin,Charts,Xamarin.forms,我尝试使用Microchart将图表包含到我的xamarin表单应用程序中,当安装Microchart和Microchart.forms nuggets时,我无法再次构建我的项目,它会给出以下错误 严重性代码说明项目文件行抑制状态 加载程序集时出现错误异常:System.IO.FileNotFoundException:无法加载程序集“System.ValueTuple,版本=4.0.2.0,区域性=中性,PublicKeyToken=CC7B13FFCD2DD51”。也许它不存在于Mono f
00
我已安装System.ValueTuple,版本=4.4。请告诉我如何修复此问题?我猜您正在使用.net framework 4.7版。这是一个错误,有关详细信息,请参阅 解决方法是在app.config中使用绑定重定向
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.4.0.0"/>
</dependentAssembly>
如果没有,请尝试从解决方案中手动添加引用。
从nuget手动下载System.ValueTuple,并从解决方案中引用此dll
右键单击引用文件夹->添加引用->浏览位置->添加它。
清理并构建。我猜您使用的是.net framework 4.7版。这是一个bug,有关详细信息,请参阅 解决方法是在app.config中使用绑定重定向
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.4.0.0"/>
</dependentAssembly>
如果没有,请尝试从解决方案中手动添加引用。
从nuget手动下载System.ValueTuple,并从解决方案中引用此dll
右键单击引用文件夹->添加引用->浏览位置->添加它。
清理并生成。我正在使用Xamarin.Forms netstandard2.0在Windows上工作,在添加项目引用后出现了类似的错误
我的解决办法是。。。将引用“System.Configuration.dll”(…Windows\Microsoft.NET\Framework64\v4.0.30319\System.Configuration.dll)添加到.NET标准项目。我正在使用Xamarin.Forms netstandard2.0在Windows上工作,添加项目引用后出现了类似的错误
我的解决办法是。。。将引用“System.Configuration.dll”(…Windows\Microsoft.NET\Framework64\v4.0.30319\System.Configuration.dll)添加到.NET标准项目。我遇到了类似的错误,结果是我的计算机上运行了一些僵尸构建进程。有三个MSBuild.exe在未打开Visual Studio的情况下运行。手动杀死它们,错误消失。我也有类似的错误,结果是我的机器上运行了一些僵尸构建进程。有三个MSBuild.exe在未打开Visual Studio的情况下运行。手动杀死他们,错误消失。经过多次搜索后,我的解决方案是在我的系统上更新我的.Net framework经过多次搜索后,我的解决方案是在我的系统上更新我的.Net framework我通过在
web配置中添加以下行来修复
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
https://go.microsoft.com/fwlink/?LinkId=301880
-->
<configuration>
..........
<runtime>
...........
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
</dependentAssembly>
</runtime>
..........
...........
我通过在web配置中添加以下行来修复
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
https://go.microsoft.com/fwlink/?LinkId=301880
-->
<configuration>
..........
<runtime>
...........
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
</dependentAssembly>
</runtime>
..........
...........
@Hammed谢谢。请问如何在xamarin表单中找到app.config文件project@Hammed非常感谢。请问如何在xamarin forms projectThnx@Sergio中找到app.config文件。这对我有用。在我的例子中,是'System.IO.dll'丢失了.Thnx@Sergio。这对我有用。在我的例子中,缺少“System.IO.dll”。