我无法添加windows.ui.xaml [英] I cannot add windows.ui.xaml

查看:500
本文介绍了我无法添加windows.ui.xaml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在处理项目,我需要添加WIndows.Foundation.Collection和Windows.UI.XAML。但Visual Studio找不到那些dll。



我正在研究的项目是简单的游戏,它来自书本。示例对应VS2012,我使用的是VS2015。



我尝试了什么:



我试图添加下载的文件Windows.UI.Xaml.dll,但是我收到错误:

无法添加文件。请确保该文件是可访问的,并且它是有效的程序集或COM组件。



我尝试它的方式是由引用管理器。

解决方案

而是使用了WIndows.Foundation.Collection和Windows.UI.XAML:

使用System.Windows;

使用System.Windows.Controls;

使用System.Windows.Data;

使用System.Windows.Documents;

使用System.Windows.Input ;

使用System.Windows.Media;

使用System.Windows.Media.Imaging;

使用System.Windows.Navigation;

使用System.Windows.Shapes;

使用Windows.Foundation;

使用System.Xaml;

使用System。 Windows.Media.Animation;

使用System.Windows.Input;

使用System.Windows.Controls;

使用System.Windows.Controls .Primitives;

使用System.Windows.Data;

使用System.Windows.Media;

使用System.Win dows.Navigation;

Hello,

I am working on project and I need to add WIndows.Foundation.Collection and Windows.UI.XAML. But Visual Studio cannot find those dlls.

The project which I am working on is simple game and it's from book.The example correspond to the VS2012, I use VS2015.

What I have tried:

I tried to add downloaded file Windows.UI.Xaml.dll, but I get error:
File could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

The way I tried it was by reference manager.

解决方案

Instead WIndows.Foundation.Collection and Windows.UI.XAML I used:
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Windows.Foundation;
using System.Xaml;
using System.Windows.Media.Animation;
using System.Windows.Input;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Navigation;


这篇关于我无法添加windows.ui.xaml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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