首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >C# WP8 AddRefference TargetPlatform交换机失败

C# WP8 AddRefference TargetPlatform交换机失败
EN

Stack Overflow用户
提问于 2015-04-19 05:11:02
回答 2查看 62关注 0票数 0

我有一个WP8.1项目- WP_Proj_8.1,然后尝试添加一个WP8.0项目作为Lib - WP_Proj_8.0 (OpticalReaderLib)

代码语言:javascript
复制
I right Click on the 8.1 Porject,
AddRefference,
select the WP_Proj_8.0,
Hit OK

然后失败了,弹出了类似这样的东西:

代码语言:javascript
复制
Unable to add a reference to project <WP_Proj_8.0>

然后我将8.0项目升级到8.1。但它被升级到了8.1 Silverlight。我不知道这有没有关系。但是当添加引用时,仍然失败。

然后我尝试检查两个项目的目标框架,

但是这两个项目都没有选择框!

那么,如何才能将添加到WP8.1项目中呢?谢谢!

EN

回答 2

Stack Overflow用户

发布于 2015-04-19 06:15:00

我猜您的8.1项目是8.1XAML (WinRT)。你不能把WinRT和Silverlight混在一起。您必须将您的8.0库重写为WinRT或找到一个WinRT库。

票数 0
EN

Stack Overflow用户

发布于 2015-04-19 07:31:04

代码语言:javascript
复制
OK, I completely know what's going on there.
For those who want to upgrade WP8.0 to WP8.1,
It's impossible.

XAML(WinRT) and Silverlight are 2 completely different stuff.
And there's no way to add a Silverlight ref from a XAML(WinRT)

[WP8.0] is a short name for [WP8.0 SilverLight]
So after upgrade from 8.0 to 8.1, 
It became [WP8.1 SilverLight], that's what is should be.

So for those who wanna upgrade a [WP8.0] to [WP8.1],
It's impossible,
because you're trying to upgrade [WP8.0 Silverlight] to [WP8.1 RT]
You need to re-create a project and manually upgrade them.
That's pretty much of it.
Thanks for the answer, lgor Kulman.

WP sucks! Damn!
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29722899

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档