Visual Studio for Mac已损坏

时间:2017-11-15 07:32:42

标签: visual-studio xamarin xamarin.forms visual-studio-mac

我正在尝试打开之前有效的不同Xamarin解决方案,例如来自https://github.com/xamarin/dev-days-labs的那些(在vs更新之前),现在当我尝试打开解决方案时,我得到以下致命异常:

Exception 1

Exception 2

Ide.log说:

错误[2017-11-15 08:37:44Z]:错误[2017-11-15 08:37:44Z]:错误而

尝试加载项目/Users/hoppentt/Documents/Projects/XamarinDevDays/dev-days-labs/Demos/app-tasks/DevDaysTasks.iOS/DevDaysTasks.iOS.csproj System.TypeInitializationException:&#39; MonoDevelop.CSharp.Project.CSharpProject&#39;的类型初始值设定项。抛出一个例外。 ---&GT; System.TypeInitializationException:&#39; MonoDevelop.Ide.TypeSystem.MonoDevelopWorkspace&#39;的类型初始值设定项。抛出一个例外。 ---&GT; System.TypeLoadException:类型Microsoft.CodeAnalysis.VisualBasic.CaseCorrection.VisualBasicCaseCorrectionService具有无效的vtable方法插槽6,方法无   at(wrapper managed-to-native)System.RuntimeType:GetPropertiesByName_native(System.RuntimeType,intptr,System.Reflection.BindingFlags,bool)   在System.RuntimeType.GetPropertiesByName(System.String name,System.Reflection.BindingFlags bindingAttr,System.Boolean icase,System.RuntimeType reflectType)[0x00011] / Users / builder / data / lanes / 4992 / mono-mac-sdk /外部/ bockbuild /建立/单X64 / MCS /类/ corlib / ReferenceSources / RuntimeType.cs:516   at System / Runun /。 SDK /外部/ bockbuild /建立/单X64 / MCS /类/ referencesource / mscorlib程序/系统/ rttype.cs:2881   在/ Users / builder / data / lanes / 4992 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs / class / referencesource中的System.RuntimeType.GetProperties(System.Reflection.BindingFlags bindingAttr)[0x00000] /mscorlib/system/rttype.cs:3089   在/ Users / builder / data / lanes / 4992 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs / class / referencesource中的System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperties(System.Type type)[0x00006] /mscorlib/system/reflection/RuntimeReflectionExtensions.cs:25   在System.Composition.TypedParts.Discovery.TypeInspector + d__7.MoveNext()[0x00030] in&lt; 9aac21a4a3f24063b2b8b59143acddfc&gt;:0   在System.Composition.TypedParts.Discovery.TypeInspector + d__5.MoveNext()[0x000dc] in&lt; 9aac21a4a3f24063b2b8b59143acddfc&gt ;:0   在SystemaComposition.TypedParts.Discovery.TypeInspector.InspectTypeForPart(System.Reflection.TypeInfo type,System.Composition.TypedParts.Discovery.DiscoveredPart&amp; part)[0x00061] in&lt; 9aac21a4a3f24063b2b8b59143acddfc&gt;:0   at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(System.Collections.Generic.IEnumerable 1[T] types, System.Composition.Convention.AttributedModelProvider attributeContext) [0x00037] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at System.Composition.Hosting.ContainerConfiguration.CreateContainer () [0x00042] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at Microsoft.CodeAnalysis.Host.Mef.MefHostServices.Create (System.Collections.Generic.IEnumerable 1 [T] assemblies)[0x0001e] in:0   在/Users/builder/data/lanes/5144/b604c37c/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/中的MonoDevelop.Ide.TypeSystem.MonoDevelopWorkspace..cctor()[0x001f9] MonoDevelopWorkspace.cs:121    ---内部异常堆栈跟踪结束---   在/Users/builder/data/lanes/5144/b604c37c/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/ProjectSearchCategory.cs:53中的MonoDevelop.CSharp.ProjectSearchCategory.Init()[0x00000]   在/Users/builder/data/lanes/5144/b604c37c/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Project/CSharpProjectExtension.cs中的MonoDevelop.CSharp.Project.CSharpProject.get_TargetRuntime()[0x0002b] :56    ---内部异常堆栈跟踪结束---   at(wrapper managed-to-native)System.Reflection.MonoCMethod:InternalInvoke(System.Reflection.MonoCMethod,object,object [],System.Exception&amp;)   at System.Reflection.MonoCMethod.InternalInvoke(System.Object obj,System.Object [] parameters)[0x00002]在/ Users / builder / data / lanes / 4992 / mono-mac-sdk / external / bockbuild / builds / mono- X64 / MCS /班/ corlib /的System.Reflection / MonoMethod.cs:661  尝试加载项目时出错/Users/hoppentt/Documents/Projects/XamarinDevDays/dev-days-labs/Demos/app-tasks/DevDaysTasks.Droid/DevDaysTasks.Droid.csproj System.TypeInitializationException:&#39; MonoDevelop.CSharp.Project.CSharpProject&#39;的类型初始值设定项。抛出一个例外。 ---&GT; System.TypeInitializationException:&#39; MonoDevelop.Ide.TypeSystem.MonoDevelopWorkspace&#39;的类型初始值设定项。抛出一个例外。 ---&GT; System.TypeLoadException:类型Microsoft.CodeAnalysis.VisualBasic.CaseCorrection.VisualBasicCaseCorrectionService具有无效的vtable方法插槽6,方法无   at(wrapper managed-to-native)System.RuntimeType:GetPropertiesByName_native(System.RuntimeType,intptr,System.Reflection.BindingFlags,bool)   在System.RuntimeType.GetPropertiesByName(System.String name,System.Reflection.BindingFlags bindingAttr,System.Boolean icase,System.RuntimeType reflectType)[0x00011] / Users / builder / data / lanes / 4992 / mono-mac-sdk /外部/ bockbuild /建立/单X64 / MCS /类/ corlib / ReferenceSources / RuntimeType.cs:516   at System / Runun /。 SDK /外部/ bockbuild /建立/单X64 / MCS /类/ referencesource / mscorlib程序/系统/ rttype.cs:2881   在/ Users / builder / data / lanes / 4992 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs / class / referencesource中的System.RuntimeType.GetProperties(System.Reflection.BindingFlags bindingAttr)[0x00000] /mscorlib/system/rttype.cs:3089   在/ Users / builder / data / lanes / 4992 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs / class / referencesource中的System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperties(System.Type type)[0x00006] /mscorlib/system/reflection/RuntimeReflectionExtensions.cs:25   在System.Composition.TypedParts.Discovery.TypeInspector + d__7.MoveNext()[0x00030] in&lt; 9aac21a4a3f24063b2b8b59143acddfc&gt;:0   在System.Composition.TypedParts.Discovery.TypeInspector + d__5.MoveNext()[0x000dc] in&lt; 9aac21a4a3f24063b2b8b59143acddfc&gt ;:0   在SystemaComposition.TypedParts.Discovery.TypeInspector.InspectTypeForPart(System.Reflection.TypeInfo type,System.Composition.TypedParts.Discovery.DiscoveredPart&amp; part)[0x00061] in&lt; 9aac21a4a3f24063b2b8b59143acddfc&gt;:0   at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(System.Collections.Generic.IEnumerable 1[T] types, System.Composition.Convention.AttributedModelProvider attributeContext) [0x00037] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at System.Composition.Hosting.ContainerConfiguration.CreateContainer () [0x00042] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at Microsoft.CodeAnalysis.Host.Mef.MefHostServices.Create (System.Collections.Generic.IEnumerable 1 [T] assemblies)[0x0001e] in:0   在/Users/builder/data/lanes/5144/b604c37c/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/中的MonoDevelop.Ide.TypeSystem.MonoDevelopWorkspace..cctor()[0x001f9] MonoDevelopWorkspace.cs:121    ---内部异常堆栈跟踪结束---   在/Users/builder/data/lanes/5144/b604c37c/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/ProjectSearchCategory.cs:53中的MonoDevelop.CSharp.ProjectSearchCategory.Init()[0x00000]   在/Users/builder/data/lanes/5144/b604c37c/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Project/CSharpProjectExtension.cs中的MonoDevelop.CSharp.Project.CSharpProject.get_TargetRuntime()[0x0002b] :56    ---内部异常堆栈跟踪结束---   at(wrapper managed-to-native)System.Reflection.MonoCMethod:InternalInvoke(System.Reflection.MonoCMethod,object,object [],System.Exception&amp;)   at System.Reflection.MonoCMethod.InternalInvoke(System.Object obj,System.Object [] parameters)[0x00002]在/ Users / builder / data / lanes / 4992 / mono-mac-sdk / external / bockbuild / builds / mono- X64 / MCS /班/ corlib /的System.Reflection / MonoMethod.cs:661 致命错误[2017-11-15 08:37:44Z]:无法创建roslyn工作区 System.TypeInitializationException:&#39; MonoDevelop.Ide.TypeSystem.MonoDevelopWorkspace&#39;的类型初始值设定项。抛出一个例外。 ---&GT; System.TypeLoadException:类型Microsoft.CodeAnalysis.VisualBasic.CaseCorrection.VisualBasicCaseCorrectionService具有无效的vtable方法插槽6,方法无   at(wrapper managed-to-native)System.RuntimeType:GetPropertiesByName_native(System.RuntimeType,intptr,System.Reflection.BindingFlags,bool)   在System.RuntimeType.GetPropertiesByName(System.String name,System.Reflection.BindingFlags bindingAttr,System.Boolean icase,System.RuntimeType reflectType)[0x00011] / Users / builder / data / lanes / 4992 / mono-mac-sdk /外部/ bockbuild /建立/单X64 / MCS /类/ corlib / ReferenceSources / RuntimeType.cs:516   at System / Runun /。 SDK /外部/ bockbuild /建立/单X64 / MCS /类/ referencesource / mscorlib程序/系统/ rttype.cs:2881   在/ Users / builder / data / lanes / 4992 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs / class / referencesource中的System.RuntimeType.GetProperties(System.Reflection.BindingFlags bindingAttr)[0x00000] /mscorlib/system/rttype.cs:3089   在/ Users / builder / data / lanes / 4992 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs / class / referencesource中的System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperties(System.Type type)[0x00006] /mscorlib/system/reflection/RuntimeReflectionExtensions.cs:25   在System.Composition.TypedParts.Discovery.TypeInspector + d__7.MoveNext()[0x00030] in&lt; 9aac21a4a3f24063b2b8b59143acddfc&gt;:0   在System.Composition.TypedParts.Discovery.TypeInspector + d__5.MoveNext()[0x000dc] in&lt; 9aac21a4a3f24063b2b8b59143acddfc&gt ;:0   在SystemaComposition.TypedParts.Discovery.TypeInspector.InspectTypeForPart(System.Reflection.TypeInfo type,System.Composition.TypedParts.Discovery.DiscoveredPart&amp; part)[0x00061] in&lt; 9aac21a4a3f24063b2b8b59143acddfc&gt;:0   at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(System.Collections.Generic.IEnumerable 1[T] types, System.Composition.Convention.AttributedModelProvider attributeContext) [0x00037] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at System.Composition.Hosting.ContainerConfiguration.CreateContainer () [0x00042] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at Microsoft.CodeAnalysis.Host.Mef.MefHostServices.Create (System.Collections.Generic.IEnumerable 1 [T] assemblies)[0x0001e] in:0   在/Users/builder/data/lanes/5144/b604c37c/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/中的MonoDevelop.Ide.TypeSystem.MonoDevelopWorkspace..cctor()[0x001f9] MonoDevelopWorkspace.cs:121    ---内部异常堆栈跟踪结束---   at(包装器托管到本机)System.Object:__ icall_wrapper_mono_generic_class_init(intptr)   在/Users/builder/data/lanes/5144/b604c37c/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/中的MonoDevelop.Ide.TypeSystem.TypeSystemService..cctor()[0x0009f] TypeSystemService.cs:86

1 个答案:

答案 0 :(得分:0)

在我的情况下是MFractor - 禁用它,现在它工作得很好 - 非常感谢@SushiHangover !!!