我有一个WP8.1项目- WP_Proj_8.1,然后尝试添加一个WP8.0项目作为Lib - WP_Proj_8.0 (OpticalReaderLib)
I right Click on the 8.1 Porject,
AddRefference,
select the WP_Proj_8.0,
Hit OK然后失败了,弹出了类似这样的东西:
Unable to add a reference to project <WP_Proj_8.0>然后我将8.0项目升级到8.1。但它被升级到了8.1 Silverlight。我不知道这有没有关系。但是当添加引用时,仍然失败。
然后我尝试检查两个项目的目标框架,
但是这两个项目都没有选择框!

那么,如何才能将添加到WP8.1项目中呢?谢谢!
发布于 2015-04-19 06:15:00
我猜您的8.1项目是8.1XAML (WinRT)。你不能把WinRT和Silverlight混在一起。您必须将您的8.0库重写为WinRT或找到一个WinRT库。
发布于 2015-04-19 07:31:04
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!https://stackoverflow.com/questions/29722899
复制相似问题