Telerik 无法在Visual Studio 2013 Silverlight 5应用程序中安装Prism

Telerik 无法在Visual Studio 2013 Silverlight 5应用程序中安装Prism,telerik,visual-studio-2013,prism,silverlight-5.0,Telerik,Visual Studio 2013,Prism,Silverlight 5.0,我正在尝试在Visual Studio 2013 Professional中安装Prism。但是得到下面的错误 Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are gove

我正在尝试在Visual Studio 2013 Professional中安装Prism。但是得到下面的错误

    Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.

enter code here`Package Manager Console Host Version 2.8.50313.46

Type 'get-help NuGet' to see all available NuGet commands.

PM> Install-Package Prism
Attempting to resolve dependency 'Prism.Composition (≥ 5.0)'.
Attempting to resolve dependency 'CommonServiceLocator (≥ 1.2)'.
Attempting to resolve dependency 'Prism.Interactivity (≥ 5.0)'.
Attempting to resolve dependency 'Prism.PubSubEvents (≥ 1.0)'.
Attempting to resolve dependency 'Prism.Mvvm (≥ 1.0)'.
Installing 'CommonServiceLocator 1.2'.
Successfully installed 'CommonServiceLocator 1.2'.
Installing 'Prism.Composition 5.0.0'.
You are downloading Prism.Composition from Microsoft patterns & practices, the license agreement to which is available at http://compositewpf.codeplex.com/license. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'Prism.Composition 5.0.0'.
Installing 'Prism.Interactivity 5.0.0'.
You are downloading Prism.Interactivity from Microsoft patterns & practices, the license agreement to which is available at http://compositewpf.codeplex.com/license. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'Prism.Interactivity 5.0.0'.
Installing 'Prism.PubSubEvents 1.0.0'.
You are downloading Prism.PubSubEvents from Microsoft, the license agreement to which is available at http://prismwindowsruntime.codeplex.com/license. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'Prism.PubSubEvents 1.0.0'.
Installing 'Prism.Mvvm 1.0.0'.
You are downloading Prism.Mvvm from Microsoft patterns & practices, the license agreement to which is available at https://pnpmvvm.codeplex.com/license. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'Prism.Mvvm 1.0.0'.
Installing 'Prism 5.0.0'.
You are downloading Prism from Microsoft patterns & practices, the license agreement to which is available at http://compositewpf.codeplex.com/license. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'Prism 5.0.0'.
Adding 'CommonServiceLocator 1.2' to Hpmsprsim.Web.
Successfully added 'CommonServiceLocator 1.2' to Hpmsprsim.Web.
Adding 'Prism.Composition 5.0.0' to Hpmsprsim.Web.
Successfully added 'Prism.Composition 5.0.0' to Hpmsprsim.Web.
Adding 'Prism.Interactivity 5.0.0' to Hpmsprsim.Web.
Successfully added 'Prism.Interactivity 5.0.0' to Hpmsprsim.Web.
Adding 'Prism.PubSubEvents 1.0.0' to Hpmsprsim.Web.
Successfully added 'Prism.PubSubEvents 1.0.0' to Hpmsprsim.Web.
Adding 'Prism.Mvvm 1.0.0' to Hpmsprsim.Web.
Successfully added 'Prism.Mvvm 1.0.0' to Hpmsprsim.Web.
Adding 'Prism 5.0.0' to Hpmsprsim.Web.
Successfully added 'Prism 5.0.0' to Hpmsprsim.Web.

PM> Install-Package Prism
Attempting to resolve dependency 'Prism.Composition (≥ 5.0)'.
Attempting to resolve dependency 'CommonServiceLocator (≥ 1.2)'.
Attempting to resolve dependency 'Prism.Interactivity (≥ 5.0)'.
Attempting to resolve dependency 'Prism.PubSubEvents (≥ 1.0)'.
Attempting to resolve dependency 'Prism.Mvvm (≥ 1.0)'.
'Prism 5.0.0' already installed.
Adding 'CommonServiceLocator 1.2' to Hpmsprsim.
Successfully added 'CommonServiceLocator 1.2' to Hpmsprsim.
Adding 'Prism.Composition 5.0.0' to Hpmsprsim.
Install-Package : Could not install package 'Prism.Composition 5.0.0'. You are trying to install this
 package into a project that targets 'Silverlight,Version=v5.0', but the package does not contain any
 assembly references or content files that are compatible with that framework. For more information, 
contact the package author.
At line:1 char:16
+ Install-Package <<<<  Prism
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackage 
   Command

PM> 
每个软件包都由其所有者授权给您。Microsoft不对第三方软件包负责,也不对其授予任何许可证。某些软件包可能包含由其他许可证管理的依赖项。按照包源(提要)URL确定任何依赖项。
在此处输入代码`Package Manager控制台主机版本2.8.50313.46
键入“get help NuGet”以查看所有可用的NuGet命令。
PM>安装包Prism
正在尝试解析依赖项“Prism.Composition”(≥ 5.0)'.
正在尝试解析依赖项的CommonServiceLocator(≥ 1.2)'.
正在尝试解析依赖项“Prism.Interactivity”(≥ 5.0)'.
正在尝试解析依赖项“Prism.PubSubEvents”(≥ 1.0)'.
正在尝试解析依赖项“Prism.Mvvm”(≥ 1.0)'.
安装“CommonServiceLocator 1.2”。
已成功安装“CommonServiceLocator 1.2”。
安装“Prism.Composition 5.0.0”。
您正在从Microsoft patterns&practices下载Prism.Composition,其许可协议可在http://compositewpf.codeplex.com/license. 检查软件包中是否有其他依赖项,这些依赖项可能随他们自己的许可协议一起提供。您对软件包和依赖项的使用构成您对其许可协议的接受。如果您不接受许可协议,请从设备中删除相关组件。
已成功安装“Prism.Composition 5.0.0”。
正在安装“Prism.Interactivity 5.0.0”。
您正在从Microsoft patterns&practices下载Prism.Interactive,其许可协议可在http://compositewpf.codeplex.com/license. 检查软件包中是否有其他依赖项,这些依赖项可能随他们自己的许可协议一起提供。您对软件包和依赖项的使用构成您对其许可协议的接受。如果您不接受许可协议,请从设备中删除相关组件。
已成功安装“Prism.Interactivity 5.0.0”。
正在安装“Prism.PubSubEvents 1.0.0”。
您正在从Microsoft下载Prism.PubSubEvents,其许可协议可在http://prismwindowsruntime.codeplex.com/license. 检查软件包中是否有其他依赖项,这些依赖项可能随他们自己的许可协议一起提供。您对软件包和依赖项的使用构成您对其许可协议的接受。如果您不接受许可协议,请从设备中删除相关组件。
已成功安装“Prism.PubSubEvents 1.0.0”。
正在安装“Prism.Mvvm 1.0.0”。
您正在从Microsoft patterns&practices下载Prism.Mvvm,其许可协议可在https://pnpmvvm.codeplex.com/license. 检查软件包中是否有其他依赖项,这些依赖项可能随他们自己的许可协议一起提供。您对软件包和依赖项的使用构成您对其许可协议的接受。如果您不接受许可协议,请从设备中删除相关组件。
已成功安装“Prism.Mvvm 1.0.0”。
安装“Prism 5.0.0”。
您正在从Microsoft patterns&practices下载Prism,其许可协议位于http://compositewpf.codeplex.com/license. 检查软件包中是否有其他依赖项,这些依赖项可能随他们自己的许可协议一起提供。您对软件包和依赖项的使用构成您对其许可协议的接受。如果您不接受许可协议,请从设备中删除相关组件。
已成功安装“Prism 5.0.0”。
正在将“CommonServiceLocator 1.2”添加到Hpmsprsim.Web。
已成功将“CommonServiceLocator 1.2”添加到Hpmsprsim.Web。
将“Prism.Composition 5.0.0”添加到Hpmsprsim.Web。
已成功将“Prism.Composition 5.0.0”添加到Hpmsprsim.Web。
正在将“Prism.Interactivity 5.0.0”添加到Hpmsprsim.Web。
已成功将“Prism.Interactivity 5.0.0”添加到Hpmsprsim.Web。
正在将“Prism.PubSubEvents 1.0.0”添加到Hpmsprsim.Web。
已成功将“Prism.PubSubEvents 1.0.0”添加到Hpmsprsim.Web。
正在将“Prism.Mvvm 1.0.0”添加到Hpmsprsim.Web。
已成功将“Prism.Mvvm 1.0.0”添加到Hpmsprsim.Web。
正在将“Prism 5.0.0”添加到Hpmsprsim.Web。
已成功将“Prism 5.0.0”添加到Hpmsprsim.Web。
PM>安装包Prism
正在尝试解析依赖项“Prism.Composition”(≥ 5.0)'.
正在尝试解析依赖项的CommonServiceLocator(≥ 1.2)'.
正在尝试解析依赖项“Prism.Interactivity”(≥ 5.0)'.
正在尝试解析依赖项“Prism.PubSubEvents”(≥ 1.0)'.
正在尝试解析依赖项“Prism.Mvvm”(≥ 1.0)'.
“Prism 5.0.0”已安装。
将“CommonServiceLocator 1.2”添加到Hpmsprsim。
已成功将“CommonServiceLocator 1.2”添加到Hpmsprsim。
将“Prism.Composition 5.0.0”添加到Hpmsprsim。
安装程序包:无法安装程序包“Prism.Composition 5.0.0”。您正在尝试安装此
打包到目标为“Silverlight,Version=v5.0”的项目中,但该包不包含任何
与该框架兼容的程序集引用或内容文件。欲了解更多信息,
联系软件包作者。
第1行字符:16

+安装包Prism 5与Silverlight 5不兼容,因此我使用了Prism 4.1

我是怎么做到的

我通过以下步骤创建了Silverlight 5应用程序

  • 创建文件夹D/PrismTrial/Scr、D/PrismTrial/Libs、D/PrismTrial/Scr/Modules、D/PrismTrial/Scr/business
  • 在Libs中复制Prism 4.1 dll
  • 在Src文件夹中创建Silverlight应用程序项目。提供2个项目Abs和Abs.Web
  • 为Abs项目提供dll参考

    Microsoft.Practices.Prism
    Microsoft.Practices.Prism.UnityExtensions
    Microsoft.Practices.Prism.Interactivity
    Microsoft.Practices.ServiceLocation
    Microsoft.Practices.Unity.Silverlight
    
  • 创建Bootstrapper.cs类
  • 删除Main.xmal并创建Shell.xaml
  • 在D/PrismTrial/Scr/模块中创建模具,如:Abs.Auth、Abs.TabTest
  • 在引导程序中加载这些模块
  • 我测试的每一步。它起作用了