简体   繁体   English

无法使用Xamarin在Visual Studio 2015中创建Tizen项目

[英]Cannot create tizen project in Visual Studio 2015 with Xamarin

This is my first time of using Visual Studio 2015 Community with Xamarin, and in using them to create Tizen apps. 这是我第一次将Visual Studio 2015社区与Xamarin一起使用,并使用它们创建Tizen应用程序。

In Visual Studio 2015, I chose File - New Project - Blank Tizen App (Tizen Xamarin.Forms Single). 在Visual Studio 2015中,我选择了“文件”-“新建项目”-“空白Tizen应用程序”(Tizen Xamarin.Forms Single)。 The files were generated, but virtually every keyword was not recognized ie red underline on them. 生成了文件,但实际上每个关键字都未被识别,即在它们上的红色下划线。

What configuration is wrong is my system, and how to fix them? 我的系统有什么配置错误,如何解决?

OK, so I did the following and it fixed this problem (somehow): 1. Uninstalled VS2015. OK,所以我做了以下操作,并(以某种方式)解决了该问题:1.卸载了VS2015。 2. Reinstalled VS2015. 2.重新安装VS2015。 I encountered installation failure on Roslyn and NDK-R11C. 我在Roslyn和NDK-R11C上遇到安装失败。 3. I Ran VS2015 installer again in elevated mode (Run as Admin) and chose Repair. 3.我再次以提升模式运行VS2015安装程序(以管理员身份运行),然后选择修复。 Roslyn was successfully installed but NDK-R11C was still failed, with the same error as before: Cannot extract the zip file to the target location. Roslyn已成功安装,但NDK-R11C仍然失败,并具有与以前相同的错误:无法将zip文件提取到目标位置。 4. Manually I ran the extraction of NDK using windows' default unzipper. 4.我手动使用Windows的默认解压缩程序运行NDK的提取。 I got unclear error message stating that NDK cannot be expanded. 我收到不清楚的错误消息,指出无法扩展NDK。 5. Using Norton Commander, Extracted the zip file to the same target location. 5.使用Norton Commander,将zip文件提取到相同的目标位置。 Success. 成功。 6. Ran VS2015, created the blank project. 6.运行VS2015,创建空白项目。 Now NuGet could get the updates, and after that the keywords were properly recognized. 现在,NuGet可以获取更新,然后可以正确识别关键字。

I don't know, though, what was the connection between NDK and Tizen Extension. 不过,我不知道NDK和Tizen Extension之间有什么联系。 Maybe the act of reinstalling VS2015 just fixed the problem. 也许重新安装VS2015的行为可以解决此问题。 At least now I got it now. 至少现在我明白了。 Thanks all!. 谢谢大家!

I think it's bug of VS plugin. 我认为这是VS插件的错误。 (it's preview version.) (它是预览版。)
Project - Unload project and Project - Reload project Project - Unload projectProject - Reload project
I think this should solve your problem. 我认为这应该可以解决您的问题。

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

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