asp.net-mvc – 与Microsoft HTTP Client Libraries v2.1.10相关的问题N
|
注意:这个问题在最初发布后几天完全被重写。 我有一个在VS 2012开发的ASP.NET MVC应用程序,部署到Azure。原始项目是从ASP.NET MVC 4项目模板创建的。 NuGet最近开始显示来自微软的大量更新的软件包。 Microsoft HTTP Client Libraries v2.1.10中的其中一个更新会在安装时导致严重的问题。 >它安装MicrosoftBcl.Build,这与我的Azure项目不兼容(有关问题及其解决方案,请参阅this SO question)。 这引发了几个灼热的问题: >我的MVC应用程序只是一个网站。它只是运行在一个网络浏览器。我需要这个包吗(例如,是否使用模板代码,如果我删除包,它会破坏,可能会巧妙)? 在安装更新的NuGet软件包之后,在构建解决方案时,会发出以下警告: 1>------ Build started: Project: Ruby,Configuration: Release Any CPU ------ 1> All packages listed in packages.config are already installed. 1> No way to resolve conflict between "System.Web.Mvc,Version=3.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35" and "System.Web.Mvc,Version=1.0.0.0,PublicKeyToken=31bf3856ad364e35". Choosing "System.Web.Mvc,PublicKeyToken=31bf3856ad364e35" arbitrarily. 1> Consider app.config remapping of assembly "DotNetOpenAuth.AspNet,PublicKeyToken=2780ccd10d57b246" from Version "4.0.0.0" [] to Version "4.3.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesDotNetOpenAuth.AspNet.4.3.0.13117libnet45-fullDotNetOpenAuth.AspNet.dll] to solve conflict and get rid of warning. 1> Consider app.config remapping of assembly "System.Web.Mvc,PublicKeyToken=31bf3856ad364e35" from Version "3.0.0.0" [C:Program Files (x86)Microsoft ASP.NETASP.NET MVC 3AssembliesSystem.Web.Mvc.dll] to Version "4.0.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.AspNet.Mvc.4.0.30506.0libnet40System.Web.Mvc.dll] to solve conflict and get rid of warning. 1> Consider app.config remapping of assembly "System.Web.Razor,PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.Razor.dll] to Version "2.0.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.AspNet.Razor.2.0.30506.0libnet40System.Web.Razor.dll] to solve conflict and get rid of warning. 1> Consider app.config remapping of assembly "WebGrease,PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [] to Version "1.3.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesWebGrease.1.3.0libWebGrease.dll] to solve conflict and get rid of warning. 1> Consider app.config remapping of assembly "System.Web.WebPages.Razor,PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.WebPages.Razor.dll] to Version "2.0.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.AspNet.WebPages.2.0.30506.0libnet40System.Web.WebPages.Razor.dll] to solve conflict and get rid of warning. 1> Consider app.config remapping of assembly "Microsoft.Data.OData,PublicKeyToken=31bf3856ad364e35" from Version "5.2.0.0" [] to Version "5.5.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.Data.OData.5.5.0libnet40Microsoft.Data.OData.dll] to solve conflict and get rid of warning. 1> Consider app.config remapping of assembly "System.Web.WebPages,PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.WebPages.dll] to Version "2.0.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.AspNet.WebPages.2.0.30506.0libnet40System.Web.WebPages.dll] to solve conflict and get rid of warning. 1> Consider app.config remapping of assembly "DotNetOpenAuth.Core,PublicKeyToken=2780ccd10d57b246" from Version "4.0.0.0" [] to Version "4.3.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesDotNetOpenAuth.Core.4.3.0.13117libnet45-fullDotNetOpenAuth.Core.dll] to solve conflict and get rid of warning. 1> Consider app.config remapping of assembly "System.Web.WebPages.Deployment,PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.WebPages.Deployment.dll] to Version "2.0.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.AspNet.WebPages.2.0.30506.0libnet40System.Web.WebPages.Deployment.dll] to solve conflict and get rid of warning. 1>C:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1605,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. 1> Ruby -> C:UsersRobertDocumentsSBSoftwareSCMRubyRubybinRuby.dll 2>------ Build started: Project: Ruby.Azure,Configuration: Release Any CPU ------ 3>------ Publish started: Project: Ruby.Azure,Configuration: Release Any CPU ------ 3>C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.Bcl.Build.1.0.7toolsMicrosoft.Bcl.Build.targets(220,5): warning : All projects referencing Ruby.csproj must install nuget package Microsoft.Bcl.Build. 3> No way to resolve conflict between "System.Web.Mvc,PublicKeyToken=31bf3856ad364e35" arbitrarily. 3> Consider app.config remapping of assembly "DotNetOpenAuth.AspNet,PublicKeyToken=2780ccd10d57b246" from Version "4.0.0.0" [] to Version "4.3.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesDotNetOpenAuth.AspNet.4.3.0.13117libnet45-fullDotNetOpenAuth.AspNet.dll] to solve conflict and get rid of warning. 3> Consider app.config remapping of assembly "System.Web.Mvc,PublicKeyToken=31bf3856ad364e35" from Version "3.0.0.0" [C:Program Files (x86)Microsoft ASP.NETASP.NET MVC 3AssembliesSystem.Web.Mvc.dll] to Version "4.0.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.AspNet.Mvc.4.0.30506.0libnet40System.Web.Mvc.dll] to solve conflict and get rid of warning. 3> Consider app.config remapping of assembly "System.Web.Razor,PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.Razor.dll] to Version "2.0.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.AspNet.Razor.2.0.30506.0libnet40System.Web.Razor.dll] to solve conflict and get rid of warning. 3> Consider app.config remapping of assembly "WebGrease,PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [] to Version "1.3.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesWebGrease.1.3.0libWebGrease.dll] to solve conflict and get rid of warning. 3> Consider app.config remapping of assembly "System.Web.WebPages.Razor,PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.WebPages.Razor.dll] to Version "2.0.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.AspNet.WebPages.2.0.30506.0libnet40System.Web.WebPages.Razor.dll] to solve conflict and get rid of warning. 3> Consider app.config remapping of assembly "Microsoft.Data.OData,PublicKeyToken=31bf3856ad364e35" from Version "5.2.0.0" [] to Version "5.5.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.Data.OData.5.5.0libnet40Microsoft.Data.OData.dll] to solve conflict and get rid of warning. 3> Consider app.config remapping of assembly "System.Web.WebPages,PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.WebPages.dll] to Version "2.0.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.AspNet.WebPages.2.0.30506.0libnet40System.Web.WebPages.dll] to solve conflict and get rid of warning. 3> Consider app.config remapping of assembly "DotNetOpenAuth.Core,PublicKeyToken=2780ccd10d57b246" from Version "4.0.0.0" [] to Version "4.3.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesDotNetOpenAuth.Core.4.3.0.13117libnet45-fullDotNetOpenAuth.Core.dll] to solve conflict and get rid of warning. 3> Consider app.config remapping of assembly "System.Web.WebPages.Deployment,PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.WebPages.Deployment.dll] to Version "2.0.0.0" [C:UsersRobertDocumentsSBSoftwareSCMRubypackagesMicrosoft.AspNet.WebPages.2.0.30506.0libnet40System.Web.WebPages.Deployment.dll] to solve conflict and get rid of warning. 3>C:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1605,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. 3> Transformed Web.config using C:UsersRobertDocumentsSBSoftwareSCMRubyRubyWeb.Release.config into objReleaseTransformWebConfigtransformedWeb.config. 3>Ruby(0,0): warning WAT153: The web project 'Ruby' is dependent on the following MVC assembly: C:Program Files (x86)Microsoft ASP.NETASP.NET MVC 3AssembliesSystem.Web.Mvc.dll. MVC assemblies must be added to the package or installed on the virtual machine for your web role. For more details about this,see the following help page: http://go.microsoft.com/fwlink/?LinkId=218227. 3>Ruby(0,0): warning WAT153: The web project 'Ruby' is dependent on the following MVC assembly: C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.Razor.dll. MVC assemblies must be added to the package or installed on the virtual machine for your web role. For more details about this,0): warning WAT153: The web project 'Ruby' is dependent on the following MVC assembly: C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.WebPages.Razor.dll. MVC assemblies must be added to the package or installed on the virtual machine for your web role. For more details about this,0): warning WAT153: The web project 'Ruby' is dependent on the following MVC assembly: C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.WebPages.dll. MVC assemblies must be added to the package or installed on the virtual machine for your web role. For more details about this,0): warning WAT153: The web project 'Ruby' is dependent on the following MVC assembly: C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0AssembliesSystem.Web.WebPages.Deployment.dll. MVC assemblies must be added to the package or installed on the virtual machine for your web role. For more details about this,see the following help page: http://go.microsoft.com/fwlink/?LinkId=218227. 解决方法您可以在web.config文件中使用 binding redirects来解决问题。例如,对于行: Consider app.config remapping of assembly "DotNetOpenAuth.AspNet,PublicKeyToken=2780ccd10d57b246" from Version "4.0.0.0" [] to Version "4.3.0.0" (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- asp.net-mvc – 是否有官方的ASP.NET MVC参考/示例应用程序
- asp.net-mvc – 范围注释在无和100之间?
- asp.net-mvc – 如何正确识别vs2008版本级别?
- asp.net – VS 2010 Web.config转换进行调试
- asp.net-mvc-3 – 如何初始化授权信息
- asp.net – 如何确定请求是否是回发的结果?
- asp.net-mvc – 如何使用activedirectorymembershipprovide
- asp.net – 带有iTextSharp的页眉,页脚和大表
- ASP.net WebAPI跨域调用问题的解决方法
- asp.net-mvc – 什么是ASP.NET MVC不适合?
- Asp.Net MVC3到MVC4升级工具?
- asp.net-mvc – 如何为Html.TextBox帮助器指定属
- ASP.NET Web站点项目中的“复制本地”等效参考
- asp.net-core – ASP.NET核心DisplayAttribute本
- asp.net-mvc-2 – 关于nginx / mono 2.8的ASP.Ne
- 如何在不使用MembershipProvider的情况下使用ASP
- asp.net-core – 我可以在ASP.net Core 2.0 Prev
- asp.net – AspNetSynchronizationContext
- asp.net gridview:如何在一列中包含多个按钮字段
- ASP.NET Identity会话cookie的安全性如何?
