首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Visual 2013 Silverlight 5 Nevigation应用程序中安装Prism

无法在Visual 2013 Silverlight 5 Nevigation应用程序中安装Prism
EN

Stack Overflow用户
提问于 2014-06-27 22:04:36
回答 1查看 1K关注 0票数 0

我正在Visual 2013 Professional中安装Prism。但得到跟随的错误

代码语言:javascript
复制
    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时,它给了我以下错误。请引导我

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-07-07 19:13:57

棱镜5与Silverlight 5不兼容,所以我使用了Prism 4.1。

我做得怎么样?

我通过这些步骤创建了Silverlight 5应用程序。

  1. 创建一个文件夹D/PrismTrial/Scr,D/PrismTrial/Libs,D/PrismTrial/Scr/Modules,D/PrismTrial/Scr/business
  2. 在Libs中复制Prism 4.1 dll
  3. 在Src文件夹中创建Silverlight应用程序项目。提供2个Project和Abs.Web
  4. 为Abs项目提供dll参考 Microsoft.Practices.Prism Microsoft.Practices.Prism.UnityExtensions Microsoft.Practices.Prism.Interactivity Microsoft.Practices.ServiceLocation Microsoft.Practices.Unity.Silverlight
  5. 创建一个Bootstrapper.cs类
  6. 删除Main.xmal &创建Shell.xaml
  7. 在D/PrismTrial/Scr/模块中创建模具,如: Abs.Auth、Abs.TabTest
  8. 在Bootstrapper中加载这些模块。
  9. 我测试的每一步。啊,真灵。

我跟踪了http://www.silverlightshow.net/video/WCF-RIA-Services-Webinar-5.aspx和msdn的几个Prim文档。http://compositewpf.codeplex.com/错误从这里开始,并使用Prism 4.1设置我的范围。

我将很快将我的测试项目上传到某个开放的存储库中。任何免费的储藏室请告诉我。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24461417

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档