[英]New Xamarin Shared Project creation gives errors on Visual Studio 2015
I have Visual Studio Enterprise 2015, with all updates and patches applied.我有 Visual Studio Enterprise 2015,应用了所有更新和补丁。 When I build create a new Visual C# project Templates->Cross-Platform->Blank App (Xamarin.Forms Shared) I get the following error:
当我创建一个新的 Visual C# 项目 Templates->Cross-Platform->Blank App (Xamarin.Forms Shared) 时,我收到以下错误:
A problem was encountered creating the sub project '.Windows'.创建子项目“.Windows”时遇到问题。 This project requires a Visual Studio update to load.
此项目需要加载 Visual Studio 更新。 Right-click on the project and choose 'Download Update'.
右键单击项目并选择“下载更新”。
When I click Ok, a solution and projects are created but there is no .Windows, so I cant right click on it!当我单击“确定”时,会创建一个解决方案和项目,但没有 .Windows,因此我无法右键单击它! If I try add the project then I get the same issue.
如果我尝试添加项目,则会遇到同样的问题。
I would expect that such a simple use case should work out the box.我希望这样一个简单的用例应该可以解决问题。 I can find a few workarounds via Googling but I don't want to hack around with projects before I even write a line of code of my first Xamarin application.
我可以通过谷歌搜索找到一些解决方法,但我不想在我编写我的第一个 Xamarin 应用程序的一行代码之前就开始处理项目。
Any ideas on what I need to do to get the project creation working properly "out of the box"?关于我需要做什么才能使项目创建“开箱即用”正常工作的任何想法?
A second puzzler is that the template creates a .WinPhone folder that is empty, should I have a csproj in it?第二个难题是模板创建了一个空的 .WinPhone 文件夹,我应该在里面有一个 csproj 吗?
also make sure the Hyper-V is enabled :还要确保 Hyper-V 已启用:
Control Panel -> Uninstall a program, then in left menu "Turn Windows Features on or off" and find "Hyper-V", if it isn't selected, select it and click "ok".控制面板 -> 卸载程序,然后在左侧菜单“打开或关闭 Windows 功能”中找到“Hyper-V”,如果未选中,则选择它并单击“确定”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.