2016-11-24 10 views
1

Visual Studio 용 Xamarin을 통해 F # 응용 프로그램을 만들려고합니다. 내가 axml 파일을 열려고 할 때마다Visual Studio 용 Xamarin은 F # 프로젝트 용 axml 파일을 가져 오지 않습니다.

그때 내가 오류가

enter image description here

System.NullReferenceException: Object reference not set to an instance of an object. 
    at Xamarin.VisualStudio.Android.MonoAndroidDesignerInterface.VisualStudioCodeModelBridge.get_EnclosingProject() in C:\data\lanes\3513\872717c9\source\xamarinvs\src\Core\VisualStudio.Android\Designer\MonoAndroidDesignerInterface.cs:line 180 
    at Xamarin.AndroidDesigner.CodeInteractions.CodeModelBridge.<GetCompilationAsync>d__12.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Xamarin.AndroidDesigner.CodeInteractions.CodeModelBridge.<GetDesignerResourceEntries>d__27.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Xamarin.AndroidDesigner.DesignerProject.<UpdateDesignerResourceIds>d__175.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Xamarin.AndroidDesigner.DesignerProject.<EnsureLoaded>d__139.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Xamarin.AndroidDesigner.AndroidRenderSession.<InitSession>d__105.MoveNext() 

재미있는 것은 내가이 할 경우이는 문제가 있다는 것입니다 "레이아웃을로드 할 수 없습니다" F # 기반 프로젝트. C# 프로젝트를 만들면 문제없이 axml을로드합니다.

어떤 아이디어가 있습니까?

+0

[Xamarin, Android. F #을 사용하여 VS2015에서 \ *. axml 파일을 열 때 예외 (http://stackoverflow.com/questions/40070400/xamarin-android-exception-when-opening-axml-files-in-vs2015-using-f) – ashley

답변

관련 문제