Xamarin 应用程序在 VS2017 和 Win7 中的命名空间问题? [英] Namespace issues in VS2017 and Win7 with Xamarin app?

查看:31
本文介绍了Xamarin 应用程序在 VS2017 和 Win7 中的命名空间问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 7 电脑和 Windows 10 笔记本电脑上安装了 VS2017 社区版.它们的安装完全相同.

I have VS2017 Community edition installed in a Windows 7 PC and a Windows 10 laptop. They both have the exact same installation.

昨晚我在我的 Win10 笔记本电脑中创建了一个 Cross-Platform > Mobile App (Xamarin.Forms) 项目,它在 android 模拟器中完美运行.没有问题.

Last night I created a Cross-Platform > Mobile App (Xamarin.Forms) project in my Win10 laptop, and it ran perfectly in the android emulator. No issues there.

我在我的 Windows 7 PC 上做了同样的事情,我收到了大量的编译器错误.它们都属于无法找到类型或命名空间名称System" 性质.

I did the same exact thing in my Windows 7 PC, and I'm getting tons of compiler errors. All of them are of the The type or namespace name 'System' could not be found nature.

我需要在 Windows 7 中做什么才能运行这些项目吗?

Is there anything I need to do in Windows 7 so these projects run?

在两种环境(Win7 和 Win10)中,我做了完全相同的事情:安装 VS2017,创建新的 Xamarin 跨平台项目,并对其进行调试.在 Win10 中,它可以完美运行,而在 Windows 7 中,System 命名空间出现一堆编译器错误,这实际上是 .NET Framework 中最基本的命名空间.

In both environments (Win7 and Win10) I did the exact same thing: installed VS2017, created the new Xamarin cross-platform project, and debugged it. In Win10 it runs flawlessly while in Windows 7 I get a bunch of compiler errors with System namespace, which is literally the most fundamental namespace of the .NET Framework.

感谢任何帮助.

我想补充一点,我在 Windows 7 中创建了一个常规的 ASP.NET Web 应用程序,它运行完美(System 命名空间没有问题),所以它是Xamarin 跨平台错误.

I'd like to add that I created a regular ASP.NET Web Application in Windows 7 and it runs flawlessly (no issues with System namespace), so it's an error with Xamarin cross-platform.

推荐答案

在我的 Windows 7 PC 上成功编译解决方案的解决方案是安装 .NET Framework 4.7.2

The solution for compiling the solution successfully on my Windows 7 PC was to install .NET Framework 4.7.2

这篇关于Xamarin 应用程序在 VS2017 和 Win7 中的命名空间问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆