简体   繁体   English

“Visual Studio 需要更新版本的 Windows 才能显示此内容。”

[英]"Visual Studio requires a newer version of Windows to display this content."

Getting the error "Visual Studio requires a newer version of Windows to display this content."收到错误“Visual Studio 需要更新版本的 Windows 才能显示此内容。” when using the XAML designer tool in Xamarin.在 Xamarin 中使用 XAML 设计器工具时。 Any ideas on how I'd go about tracking down the source of this?关于我将如何追踪此来源的任何想法? I'm using Windows 10, and Visual Studio 2015.我使用的是 Windows 10 和 Visual Studio 2015。

示例图像

Update from 14th September 2016 2016年9月14日更新

The live preview for Xamarin forms is now available in the stable channel. Xamarin表格的实时预览现已在稳定频道中提供。 https://developer.xamarin.com/releases/studio/xamarin.studio_6.1/xamarin.studio_6.1/#Xamarin_Forms_Previewer https://developer.xamarin.com/releases/studio/xamarin.studio_6.1/xamarin.studio_6.1/#Xamarin_Forms_Previewer

Update from 27th April 2016 2016年4月27日更新

Xamarin has just announced a live preview for Xamarin.Forms on the Evolve 2016 Keynote. Xamarin刚刚在Evolve 2016主题演讲中宣布了Xamarin.Forms实时预览 It is included in the alpha channel, and you need to update Xamarin.Forms to 2.3 prerelease. 它包含在alpha通道中,您需要将Xamarin.Forms更新为2.3预发布。

Original Answer 原始答案

Xamarin.Forms XAML is not WPF XAML. Xamarin.Forms XAML不是WPF XAML。 There is currently no editor for this dialect. 目前没有这种方言的编辑

There is not yet a visual designer for generating XAML in Xamarin.Forms applications, so all XAML must be hand-written. 目前还没有一个可视化设计器用于在Xamarin.Forms应用程序中生成XAML,因此所有XAML都必须是手写的。

The only way to have a preview is currently Gorilla Player . 进行预览的唯一方法是目前的Gorilla Player But the community is requesting it strongly. 但社区强烈要求它 It's the feature request with the most votes. 这是投票最多的功能请求。

I was facing the same problem when I was loading the MainPage.xaml file of my UWP application in my Visual Studio 2019 .Visual Studio 2019加载UWP应用程序的MainPage.xaml文件时,我遇到了同样的问题。

在此处输入图片说明

I was sure that I have the version 1903 (10.0.18362.0) in my system, so the problem was not that.我确信我的系统中有 1903 (10.0.18362.0) 版本,所以问题不是那个。 To fix this error, this is what I did.为了修复这个错误,这就是我所做的。

  1. Install the version 1809 (10.0.17763.0), to do this, click on the visual studio installer, and select your Visual Studio, and then click on Modify安装版本 1809 (10.0.17763.0),为此,请单击 Visual Studio 安装程序,然后选择您的 Visual Studio,然后单击修改
  2. Click on the Individual Components and then select Windows 10 SDK (10.0.17763.0)单击单个组件,然后选择 Windows 10 SDK (10.0.17763.0)

在此处输入图片说明

  1. Once the installation is done, open your project in the Visual Studio and then click on your project and then Properties.安装完成后,在 Visual Studio 中打开您的项目,然后单击您的项目,然后单击属性。
  2. Select the Target version 1809 (10.0.17763.0) under Targeting在 Targeting 下选择 Target version 1809 (10.0.17763.0)

在此处输入图片说明

Now you should be able to see the design view of your xaml file.现在您应该能够看到您的xaml文件的设计视图。 Hope it helps.希望能帮助到你。

This answer is based on the Title (No Xamarin) 这个答案是基于标题(没有Xamarin)

I found this Choose a UWP Version link to be helpful in solving the problem. 我发现这个选择UWP版本链接有助于解决问题。

Go to: 去:

  1. Project Menu 项目菜单
  2. Project Properties 项目属性
  3. Change both Target and Min versions to Build 10240 将Target和Min版本更改为Build 10240
  4. XAML designer is back! XAML设计师回来了!

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

相关问题 Visual Studio需要新版本的Windows才能显示内容。 请更新UAP或更高版本 - Visual studio requires new version of windows to display the content. Please update UAP or later Visual Studio需要Windows 10吗? - Visual Studio requires windows 10? 切换到Windows 8需要以管理员身份运行Visual Studio来生成dll - Switching to Windows 8 requires running Visual Studio as administrator for generating dll Kinect SDK需要Visual Studio吗? - Kinect SDK requires Visual Studio? 什么版本的Visual Studio以Windows XP为目标? - What version of Visual Studio to target windows XP builds? visual studio无法识别版本10.0.14393.0中的Windows 10 sdk - visual studio does not recognize windows 10 sdk in version 10.0.14393.0 Windows Server 2003 R2上受支持的Visual Studio的最高版本 - Highest supported version of Visual Studio on Windows Server 2003 R2 让Monogame内容管道在Windows 8中与Visual Studio 2013一起使用 - Getting Monogame content pipeline to work with Visual studio 2013 in windows 8 使用Visual Studio 2017构建的.NET 4.7.2 C#控制台应用程序的ILRepack需要在Windows 7上安装框架 - ILRepack of .NET 4.7.2 C# console app built with Visual Studio 2017 requires framework installed on Windows 7 Visual Studio中的版本控制 - Version Control in Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM