错误BC30560:'ExtensionAttribute'在命名空间'System.Runtime.CompilerServices'中是不明确的。在Visual Studio 2017S中 [英] error BC30560: 'ExtensionAttribute' is ambiguous in the namespace 'System.Runtime.CompilerServices'. in Visual studio 2017S

查看:299
本文介绍了错误BC30560:'ExtensionAttribute'在命名空间'System.Runtime.CompilerServices'中是不明确的。在Visual Studio 2017S中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





升级我的项目时,我收到了主题行中提到的错误。我做了我在网上建议的所有内容,最后决定升级到Visual Studio 2017.之后.... 11.


1) 将我的项目升级为4.6.2



2) 删除任何不需要的dll文件



3)安装最新的Microsot。 net.compilers to 2.3



4)安装最新的Newtonsoft.Json到10.0.3

$
5)停止了我的iis,被.net缓存文件夹清除,重新启动服务器,重建并仍然出现相同的错误



我不可能知道哪个第三方dll可能导致这个和我我的解决方案中有很多项目,所以它是一个试图调试的噩梦。 B4使用vs2017,当我使用vs2013时,编译器提供了更多细节(如果这有帮助)



c:\windows \ system32 \\ \\inetsrv> " C:\Windows\Microsoft.NET\Framework64\v4.0.30319\vbc.exe" / t:library / utf8output /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\ dl3\28957e06\ff7c20f4_ccfcd201\ValtechCommon.Utilities.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\3267656c\571849f9_bbbace01\log4net.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4 \assembly\dl3 \\\8484e2daa \ ea97fdf3_ccfcd201\ValtechCommon.Interfaces.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\8dd3d62c\dfadbde7_bbbace01\Castle.DynamicProxy.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\126a9d1e\1c0910ee_bbbace01\NHibernate.ByteCode.Castle.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\helium\06b1f59b\8354eff4\App_Web_myprofilecontactinformation.ascx.e1cc7272 .k2s9ogy0.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \d6b100cc \ 8b48d5ed_bbbace01\FluentNHibernate.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\68811656\fa3765e1_bbbace01\FileHelpers.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \ 27ed3c5e \ e6b18df5_ccfcd201\TexMex.Profile.Persistence.NHibernate.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\40f12377\d84ac1ed_bbbace01\Castle.DynamicProxy2.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector .Loader.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_saveeditupdatecontrol.ascx.cc671b29 .tf9o4rfp.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\18018cee\487f92f9_bbbace01\Common.Logging.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_createsecurityquestions.ascx.15d47c6e.gkekfjgh.dll" ;
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\f8d73a34\a61f7cf4_ccfcd201\TexMex.Profile.Common.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_loginidentry.ascx.3a3ba86b.oje_bphi.dll" ;
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\4ca0dbd5\e6c83ac9_23ffd201\TexMex.Configuration.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_questionentry.ascx.15d47c6e的.o-u6wssj.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" ;
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\edfd4c4b\94205412_22fcd201\Interop.VBIDE.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \d64e7c2f 31397abb_0f00d301\HELIUM-UI.WcfServices.Handlers.dll"
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" ; /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \ 0171c5cf \ fa203dbf_0f00d301\HELIUM-UI.Presentation.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4\App_global.asax.b1my4xlp的.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\cc7123ea\e74d78f4_ccfcd201\TexMex.RuleSetFramework.Service.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_panelsectioncontrol.ascx.15d47c6e .czwm1wfa.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_myprofilecontainer.ascx.e1cc7272 .tcimx - s.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4\assembly\dl3\a673a380 \ 1c53f0e0_bbbace01\Autofac.Integration.Web.dll"
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4\assembly\dl3\89f32139 \ b85302f4_ccfcd201\TexMex.RuleSetFramework.Core.dll"
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_forgottencredentialsselector.ascx.3a3ba86b.zengmtkq.dll" ;
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary
ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_passwordentry.ascx.3a3ba86b .5qi8nfby.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4\assembly\dl3\29b199b9 \ c3f37df6_ccfcd201\TexMex.Domain.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\86a60e7d\4ca589bb_0f00d301\TexMex.WorkFlow.Services.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Speech\v4.0_4.0.0.0__31bf3856ad364e35\System.Speech.dll"
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" ; /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\0238e3d8\1dba7ff9_bbbace01\Common.Logging.Log4Net.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\e0671fd6\d4cf32f4_ccfcd201\ValtechCommon.EmailServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\88262ffe\63ff86eb_07fcd201\NHibernate.Mapping.Attributes.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary
ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\8287e802\707001f6_ccfcd201\HELIUM-UI.ProfileService.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \edbe9ab1 \ 60729bed_bbbace01\Antlr3.Runtime.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\a1a766de\ca28fae1_bbbace01\System.Query.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4 \assembly\dl3 \\\23e81270 \ 29e3c5f5_ccfcd201\ValtechCommon.Presentation.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\904db7f1\fa07b1f4_ccfcd201\TexMex.RuleSetFramework.PolicyActivities.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary
ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\c723fe1e\655b97e0_bbbace01\AjaxControlToolkit.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4\assembly\dl3\9265ffec f2f18afb_23ffd201\TexMex.Integration.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\80e174b4\2fd6c2bc_0f00d301\TexMex.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4 \assembly\dl3 \ 1741cdb7 \ fd4e8fbe_0b7dd001\Telerik.Web.UI.Skins.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_newpasswordentry.ascx.15d47c6e .chovcgfr.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4 \assembly\dl3 \64abb830 \ 90a8e2e1_bbbace01\System.Data.DLinq.dll"
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions.Design\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions .Design.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\assembly\dl3\fb01c831 \ 7a4a29bc_0f00d301\TexMex.PipesAndFilters.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\650a30bd\a0964bfc_bbbace01\antlr.runtime.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4 \assembly\dl3 \afbaf585 \ 8ba26feb_07fcd201\Iesi.Collections.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\a5a15faf\625b0cf6_ccfcd201\ValtechCommon.Security.Portal.Controllers.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary
ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\b2d2654d\00dbe463_e522d101\ValtechCommon.Persistence.Linq.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary
ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\582ff914\b46393eb_07fcd201\Newtonsoft.Json.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\43054df5\ed7c2dee_bbbace01\NHibernate.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4 \assembly\dl3 \\\dd7597bb \ e7f099f8_ccfcd201\TexMex.Business.dll"
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" ; /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \c8c9ad92 \ 405feaba_0f00d301\HELIUM-UI.Interfaces.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\944f00de\4a1e03fa_bbbace01\Spring.Core.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" ;
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" ; /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \d8d133dd \ 929bebc9_23ffd201\TexMex.ValidationEngine.dll"
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4\assembly\dl3\72990deb\\ 81a12bc9_0b7dd001\Telerik.Web.UI.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\1ecadb0e\006b30e1_bbbace01\CleverComponents.InetSuite.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\f1988b2b\0045a250_79c0cd01\NHibernate.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4 \assembly\dl3 \ 249815af \ a44c4d64_e522d101\TexMexCommon.Audit.Framework.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\3b665842\25867bf5_ccfcd201\TexMex.Profile.Services.Channel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\df988658\653cb6f5_ccfcd201\TexMex.Services.Profile.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \ 9b14e876 \ bfee0cf7_ccfcd201\TexMex.Notification.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\e34b5b72\c284a5ed_bbbace01\Castle.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_emailentry.ascx.3a3ba86b.oxwulvyc.dll" ;
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_loannavbreadcrumb.ascx.cc671b29 .j2ug8qvn.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Web_botchallengecontrol.ascx.15d47c6e.sc8epagw.dll" ;
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\fca69f71\9d8c02f7_ccfcd201\TexMex.EmailService.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \ ninec5cbfea \ f151a9f4_ccfcd201\ValtechCommon.Security.Framework.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\6706c245\877815f5_ccfcd201\TexMex.Profile.Domain.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\0ef15a5b\8aaf3cf5_ccfcd201\ValtechCommon.Security.Framework.WcfServiceHandlers.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\28d497d7\19de3ff4_ccfcd201\TexMex.Common.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\835732b9\9695b4eb_07fcd201\itextsharp.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4 \assembly\dl3 \ 789f6ded\ b0bac0f6_ccfcd201\TexMex.Interfaces.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\d59dc661\deecaea5_0f00d301\TexMex.Autofac.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\efe4a078\28269ef7​​_ccfcd201\TexMex.Workflows.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4\assembly\dl3\86a0a02e \ 4f8aa9f9_bbbace01\Spring.Aop.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\21ca00bc\776b0ae1_bbbace01\Autofac.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\assembly\dl3\46d389c7 \ 171abfe1_bbbace01\ExpressionBuilder.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\c40b49d9\9a3c31bb_0f00d301\HELIUM-UI.DataObjects.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll"
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices.Protocols\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.Protocols.dll" ; /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll"
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceProcess\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ServiceProcess.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\\ ee33702 \ 60d6fbf3_ccfcd201\ValtechCommon.Exceptions.dll"
/R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary
ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\ce156542\2147cfe1_bbbace01\IQToolkit.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\ 8354eff4 \assembly\dl3 \19e15422 \ 5a86eaba_0f00d301\TexMex.ServiceFacadeProxy.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\366f20cb\c1a832f4_ccfcd201\ValtechCommon.Crypto.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4 \assembly\dl3 \\ \\e2a04cc2\847ebdbc_0f00d301\HELIUM-UI.Controllers.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\assembly\dl3\f1e9c637 \ 73730abd_0f00d301\TexMex.SchedulerPartDeux.dll"
/out:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\helium\06b1f59b\8354eff4\App_Theme_Basic_Theme.up9zm9m-。 DLL" / D:DEBUG = 1 / debug + / nowarn:41008,40000,40008 / define:_MYTYPE = \" Web \" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Collections.Specialized,System.ComponentModel.DataAnnotations,System.Configuration,System.Linq,System.Text,System.Text.RegularExpressions,System名.web,System.Web.Caching,System.Web.DynamicData,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI程序,System.Web.UI.WebControls,System.Web程序.UI.WebControls.WebParts,System.Web.UI.HtmlControls,System.Xml.Linq
/ warnaserror- / optionInfer + " C:\ Windows \ microsicoft.NET \ Framework64 \ v4。 0.30319\Temporary ASP.NET Files\helium\06b1f59b \ 8354eff4 \ App_Theme_Basic_Theme.up9zm9m-.0.vb" "C:\ Windows \ Microsoftoft.NET \ Framework64 \v4.0.30319 \Temporary ASP.NET Files \helium \06b1f59b \ 8354eff4 \ App_Theme_Basic_Theme.up9zm9m-.1.vb"



$
Microsoft(R)Visual Basic编译器版本14.7.2046
用于Visual Basic 2012的


版权所有(c)Microsoft Corporation。  保留所有权利。



此编译器作为Microsoft(R).NET Framework的一部分提供,但仅支持Visual Basic 2012之前的语言版本,不再是最新版本。对于支持较新版本的Visual Basic编程语言的编译器,请参阅
http://go.microsoft.com/fwlink/?LinkID=533241



InternalXmlHelper.vb(9):错误BC30560:'ExtensionAttribute'在名称空间'System.Runtime.CompilerServices'中是不明确的。



  &NBSP; < Global.System.Runtime.CompilerServices.ExtensionAttribute()> _

  &NBSP; &NBSP; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~    
$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $
  &NBSP; < Global.System.Runtime.CompilerServices.ExtensionAttribute()> _

  &NBSP; &NBSP; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~    
$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $
  &NBSP; < Global.System.Runtime.CompilerServices.ExtensionAttribute()> _

  &NBSP; &NBSP; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~    

*****************

*****************

再次,如果我尝试在vs2017中运行该项目,那么我得到的是:

Again if I try running the project in vs2017, all I get then is:

InternalXmlHelper.vb(9):错误BC30560:'ExtensionAttribute'在命名空间'System.Runtime中是不明确的。 CompilerServices'.

InternalXmlHelper.vb(9) : error BC30560: 'ExtensionAttribute' is ambiguous in the namespace 'System.Runtime.CompilerServices'.

Thanks

推荐答案

Hi bigdaddycool1,

> >>This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to Visual Basic 2012, which is no longer the latest version.

>>>This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to Visual Basic 2012, which is no longer the latest version.

Starting with Visual Studio 2013, the 2013 version of MSBuild will ship as a part of Visual Studio instead of the .NET Framework. So you should use the vbc.exe from: "C:\Program Files (x86)\MSBuild\12.0\Bin"
instead of from .NET framework.

Starting with Visual Studio 2013, the 2013 version of MSBuild will ship as a part of Visual Studio instead of the .NET Framework. So you should use the vbc.exe from: "C:\Program Files (x86)\MSBuild\12.0\Bin" instead of from .NET framework.

AFAIK for the error BC30560, a common trick to use extension methods (for LINQ etc) in .NET 2 with the C # 3 (or above) compiler was to define your own ExtensionAttribute in the right namespace.

Now that you have upgraded to a later version of .NET you need to remove this now-redundant extra attribute. Find where it is defined in your code and expunge it. Also check for external libraries like LINQBridge - you will not need this any More

One way to find it would be to use the object browser and search for ExtensionAttribute.

AFAIK for the error BC30560, a common trick to use extension methods (for LINQ etc) in .NET 2 with the C # 3 (or above) compiler was to define your own ExtensionAttribute in the right namespace.
Now that you have upgraded to a later version of .NET you need to remove this now-redundant extra attribute. Find where it is defined in your code and expunge it. Also check for external libraries like LINQBridge - you will not need this any More
One way to find it would be to use the object browser and search for ExtensionAttribute.

Hope this can give you some help.

Hope this can give you some help.


这篇关于错误BC30560:'ExtensionAttribute'在命名空间'System.Runtime.CompilerServices'中是不明确的。在Visual Studio 2017S中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆