无法加载文件或程序集 'Mono.Cecil.Pdb' VS17
Unable to load file or assembly 'Mono.Cecil.Pdb' VS17
我正在使用 VS17 开发一个 xamarin.forms 项目。
我的构建失败并出现此错误:
1>System.IO.FileLoadException: Unable to load file or assembly 'Mono.Cecil.Pdb, Version = 0.10.0.0, PublicKeyToken = 50cebf1cceb9d05e' or one of its dependencies. Invalid parameter (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
1>File name: 'Mono.Cecil.Pdb, Version=0.10.0.0, PublicKeyToken=50cebf1cceb9d05e' ---> System.ArgumentException: Paramètre incorrect. (Exception de HRESULT : 0x80070057 (E_INVALIDARG))
1> at System.AppDomain.nApplyPolicy(AssemblyName an)
1> at System.AppDomain.ApplyPolicy(String assemblyName)
1> at Microsoft.VisualStudio.Platform.VsAppDomainManager.MatchAssemblyName(AssemblyName reference, AssemblyName definition)
1> at Microsoft.VisualStudio.Platform.VsAppDomainManager.FindAssembly(String name, IEnumerable`1 probingPaths)
1> at Microsoft.VisualStudio.Platform.VsAppDomainManager.VsAssemblyResolver.CoreAssemblyResolveHandler(Object sender, ResolveEventArgs args)
1> at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
1> at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
1> at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
1> at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
1> at System.Type.GetType(String typeName)
1> at Mono.Cecil.Cil.SymbolProvider.GetSymbolType(SymbolKind kind, String fullname)
1> at Mono.Cecil.Cil.SymbolProvider.GetReaderProvider(SymbolKind kind)
1> at Mono.Cecil.Cil.DefaultSymbolReaderProvider.GetSymbolReader(ModuleDefinition module, String fileName)
1> at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
1> at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
1> at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
1> at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters)
1> at Xamarin.Forms.Build.Tasks.XamlCTask.Execute(IList`1& thrownExceptions)
1> at Xamarin.Forms.Build.Tasks.XamlTask.Execute()
1> at Microsoft.Build.Framework.ITask.Execute()
1> at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1> at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
我无法理解这个问题。有什么建议吗?我想找到 Mono.Cecil.Pdb 文件,我想把它放在哪里?
工具 > 扩展和更新> Visual Studio 的单声道调试
启用并重启 VS 解决了它
我正在使用 VS17 开发一个 xamarin.forms 项目。 我的构建失败并出现此错误:
1>System.IO.FileLoadException: Unable to load file or assembly 'Mono.Cecil.Pdb, Version = 0.10.0.0, PublicKeyToken = 50cebf1cceb9d05e' or one of its dependencies. Invalid parameter (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
1>File name: 'Mono.Cecil.Pdb, Version=0.10.0.0, PublicKeyToken=50cebf1cceb9d05e' ---> System.ArgumentException: Paramètre incorrect. (Exception de HRESULT : 0x80070057 (E_INVALIDARG))
1> at System.AppDomain.nApplyPolicy(AssemblyName an)
1> at System.AppDomain.ApplyPolicy(String assemblyName)
1> at Microsoft.VisualStudio.Platform.VsAppDomainManager.MatchAssemblyName(AssemblyName reference, AssemblyName definition)
1> at Microsoft.VisualStudio.Platform.VsAppDomainManager.FindAssembly(String name, IEnumerable`1 probingPaths)
1> at Microsoft.VisualStudio.Platform.VsAppDomainManager.VsAssemblyResolver.CoreAssemblyResolveHandler(Object sender, ResolveEventArgs args)
1> at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
1> at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
1> at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
1> at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
1> at System.Type.GetType(String typeName)
1> at Mono.Cecil.Cil.SymbolProvider.GetSymbolType(SymbolKind kind, String fullname)
1> at Mono.Cecil.Cil.SymbolProvider.GetReaderProvider(SymbolKind kind)
1> at Mono.Cecil.Cil.DefaultSymbolReaderProvider.GetSymbolReader(ModuleDefinition module, String fileName)
1> at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
1> at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
1> at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
1> at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters)
1> at Xamarin.Forms.Build.Tasks.XamlCTask.Execute(IList`1& thrownExceptions)
1> at Xamarin.Forms.Build.Tasks.XamlTask.Execute()
1> at Microsoft.Build.Framework.ITask.Execute()
1> at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1> at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
我无法理解这个问题。有什么建议吗?我想找到 Mono.Cecil.Pdb 文件,我想把它放在哪里?
工具 > 扩展和更新> Visual Studio 的单声道调试 启用并重启 VS 解决了它