我有一个WP 8.1项目 - WP_Proj_8.1 然后尝试将WP 8.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项目? 谢谢!
答案 0 :(得分:0)
我猜你的8.1项目是8.1 XAML(WinRT)。你不能将WinRT与Silverlight混合使用。您必须将8.0库重写为WinRT或找到WinRT库。
答案 1 :(得分:0)
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!