我正在Visual 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> 我的系统中安装了Silverlight 5。我在VS2013上创建了1个silverlight 5 Nevigation项目。当我尝试通过Nuget软件包在这个项目中安装Prism时,它给了我以下错误。请引导我
发布于 2014-07-07 19:13:57
棱镜5与Silverlight 5不兼容,所以我使用了Prism 4.1。
我做得怎么样?
我通过这些步骤创建了Silverlight 5应用程序。
我跟踪了http://www.silverlightshow.net/video/WCF-RIA-Services-Webinar-5.aspx和msdn的几个Prim文档。http://compositewpf.codeplex.com/错误从这里开始,并使用Prism 4.1设置我的范围。
我将很快将我的测试项目上传到某个开放的存储库中。任何免费的储藏室请告诉我。
https://stackoverflow.com/questions/24461417
复制相似问题