C# C WP8 AddRefReference TargetPlatform开关失败

C# C WP8 AddRefReference TargetPlatform开关失败,c#,windows-phone-8,windows-phone-8.1,C#,Windows Phone 8,Windows Phone 8.1,我有一个WP 8.1项目——WP_项目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。 但它升级到了

我有一个WP 8.1项目——WP_项目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项目中呢?
谢谢大家!

我猜您的8.1项目是8.1 XAML WinRT。不能将WinRT与Silverlight混用。您必须将8.0库重写为WinRT或找到WinRT库。

非常感谢您的回答。但是我怎么知道我的8.1是不是XAML呢?再次非常感谢,我已经知道什么是WinRT,所以我不能使用库,是因为WinRT 8.1不能使用WinRT 8.0吗?请在解决方案资源管理器中查看您的项目。如果它说Windows Phone 8.1连接到名称,那么它就是XAML WinRT。如果它说Windows Phone 8.1 Silverlight就是Silverlight,那么您可以从WP8.0升级到WP8.1 Silverlight。WinRT和Silverlight是不同的API。我想说的是,不可能从WP8.0升级到WP8.1RT,因为WP8.0是WP8.0Silverlight的缩写。有了这个,你是对的。WinRT是一种新的API,工作方式不同,设计目标是多个设备,而不仅仅是手机,因此需要以不同的方式处理。正如您所提到的,从WP8.0到WP8.1RT的转换必须手动完成。
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!