简体   繁体   English

无法创建F#Android项目 - Visual Studio 2015 Xamarin社区

[英]Unable to create F# Android Project - Visual Studio 2015 Xamarin Community

I'm following the dialogue options to create a new F# Android Blank Activity in the visual studio community edition from the Xamarin download page and am not having much luck. 我正在按照对话选项在Xamarin下载页面的visual studio社区版本中创建一个新的F #Android Blank Activity,但运气不错。 C# android projects seem to work just fine. C#安卓项目似乎工作得很好。 This is the visual studio 2015 release put out just after the Xamarin open source announcement. 这是在Xamarin开源公告之后推出的Visual Studio 2015发布。

Once the project is created what looks to be an intro page appears for a brief moment before disappearing. 创建项目后,看起来像是一个介绍页面会在消失之前出现一小段时间。 The project structure was loaded in the solution explorer during the time the intro page was visible but now only shows (load failed). 在介绍页面可见时,项目结构已加载到解决方案资源管理器中,但现在只显示(加载失败)。

解决方案浏览器视图

Expanding the project info shows 扩展项目信息显示

The project requires user input. 该项目需要用户输入。 Reload the project for more information. 重新加载项目以获取更多信息。

Attempting to refresh displays a dialog box with the text 尝试刷新会显示带有文本的对话框

The document 'c:\\users\\[me]\\documents\\visual studio 2015\\Projects\\FSharpBlankApp\\FSharpBlankApp\\FSharpBlankApp.fsproj' is already open. 文档'c:\\ users \\ [me] \\ documents \\ visual studio 2015 \\ Projects \\ FSharpBlankApp \\ FSharpBlankApp \\ FSharpBlankApp.fsproj'已经打开。 Do you want to close it? 你想关闭吗?

Clicking 'Yes' performs no visible action beyond some activity in the Xamarin Diagnostics output category. 单击“是”不会在Xamarin诊断输出类别中的某些活动之外执行任何可见操作。 The output is as follows: 输出如下:

[I:]:                     Tracking android devices started
[D:]:                     Tracking avd started
[D:]:                     avd watcher *.ini path: 'C:\Users\<me>\.android\avd'
[D:]:                     avd watcher android path: 'C:\Users\<me>\AppData\Local\Android\ANDROI~1\tools\android.bat'
[D:]:                     TrackDeviceTask got: 
[I:]:                     Got new device list from adb with 0 devices
[I:]:                     Tracking android devices stopped
[I:]:                     Tracking android devices started
[D:]:                     Tracking avd started
[D:]:                     avd watcher *.ini path: 'C:\Users\<me>\.android\avd'
[D:]:                     avd watcher android path: 'C:\Users\<me>\AppData\Local\Android\ANDROI~1\tools\android.bat'
[D:]:                     TrackDeviceTask got: 
[I:]:                     Got new device list from adb with 0 devices
[I:]:                     Tracking android devices stopped
[D:]:                     avd watcher: got device list from avd with 9 devices
[D:]:                     avd watcher: got device list from avd with 9 devices

I've installed this on two computers with the same results. 我在两台计算机上安装了相同的结果。 The F# Windows templates seem to load and execute without issue. F #Windows模板似乎没有问题地加载和执行。 Running Visual Studio as administrator does not seem to make any difference. 以管理员身份运行Visual Studio似乎没有任何区别。 This is on Windows 10. 这是在Windows 10上。

Any recommendations on resolving the issue or how to proceed from this point would be greatly appreciated. 任何有关解决问题或如何从这一点着手的建议都将不胜感激。 Thanks! 谢谢!

The reason why it fails is that Xamarin expects F# 3.0 SDK to be installed. 它失败的原因是Xamarin期望安装F#3.0 SDK。 Here is a discussion on Xamarin forum about this . 以下是关于Xamarin论坛讨论

You can install F# 3.0 SDK from here: http://go.microsoft.com/fwlink/?LinkId=261286 您可以从此处安装F#3.0 SDK: http//go.microsoft.com/fwlink/?LinkId = 261286

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM