首页 文章

构建失败但没有错误? [关闭]

提问于
浏览
0

我有一个小项目,我不得不将引用(dll)更改为新版本,当执行此操作并执行构建时,我失败了(80个错误)!?访问cs文件时,错误会自动消失,直到剩下0 . 在打开cs文件并再次点击构建时,我仍然失败但没有0错误?

它所说的类型在输出中被破坏,可以跟随F12,所以它们确实存在!?

我试过重启,清理,重建32和64的新dll . 没有运气?

1> ------重建全部开始:项目:PopManWS,配置:释放任何CPU ------ 1> Build build 2016-09-12 19:01:49 1> C:\ Program Files(x86)\ MSBuild \ 14.0 \ bin \ Microsoft.Common.CurrentVersion.targets(1820,5):警告MSB3274:无法解析主要参考“MyApp.ServiceExtensions”,因为它是针对“.NETFramework,Version = v4.6”框架 . 这是比当前目标框架“.NETFramework,Version = v4.0”更高的版本 . 1> GenerateTargetFrameworkMonikerAttribute:1>跳过目标“GenerateTargetFrameworkMonikerAttribute”,因为所有输出文件都是相对于输入文件的最新文件 . 1> CoreCompile:1> C:\ Program Files(x86)\ MSBuild \ 14.0 \ bin \ csc.exe / noconfig / nowarn:1701,1702,2008 / nostdlib / platform:AnyCPU / errorreport:prompt / warn:4 / define :TRACE / errorendlocation / preferreduilang:en-US / highentropyva- / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ Microsoft.CSharp.dll”/ reference:“C :\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ mscorlib.dll“/ reference:”C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ System.Configuration.dll“/ reference:”C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ System.Core.dll“/ reference:”C:\ Program Files(x86 )\参考程序集\ Microsoft \ Framework.NETFramework \ v4.0 \ System.Data.DataSetExtensions.dll“/ reference:”C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ System .Data.dll“/ reference:”C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NET Framework \ v4.0 \ System.dll“/ reference:”C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ System.Runtime.Serialization.dll“/ reference:”C: \ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ System.ServiceModel.dll“/ reference:”C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4 . 0 \ System.Web.Extensions.dll“/ reference:”C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ System.Xml.dll“/ reference:”C:\ Program文件(x86)\参考程序集\ Microsoft \ Framework.NETFramework \ v4.0 \ System.Xml.Linq.dll“/ debug:pdbonly / filealign:512 / optimize /out:obj\Release\PopManWS.dll / ruleset:” C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Team Tools \ Static Analysis Tools \ Rule Sets \ MinimumRecommendedRules.ruleset“/ target:library / utf8output MyAppPatient.cs Patient.cs PatientParser.cs Properties \ AssemblyInfo.cs”Service引用\ PopManService \ Reference.cs“SokPatientHandler.cs”C: \ Users \ kalle \ AppData \ Local \ Temp.NETFramework,Version = v4.0.AssemblyAttributes.cs“1>使用目录中编译器的共享编译:C:\ Program Files(x86)\ MSBuild \ 14.0 \ bin 1> C :\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(5,7,5,12):错误CS0246:找不到类型或命名空间名称“MyApp”(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(6,7,6,12):错误CS0246:找不到类型或命名空间名称'MyApp' (您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(3,7,3,12):错误CS0246:类型或命名空间找不到名称'MyApp'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ PatientParser.cs(7,7,7,12) :错误CS0246:无法找到类型或命名空间名称'MyApp'(你是mi使用using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ SokPatientHandler.cs(5,7,5,12):错误CS0246:类型或命名空间名称'MyApp '找不到(你错过了使用指令或汇编引用吗?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ SokPatientHandler.cs(10,7,10,12):错误CS0246:找不到类型或命名空间名称“MyApp”(您是否遗漏了使用指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(7,28,7,41):错误CS0246:类型或命名空间名称'IMyAppPatient'可能找不到(你错过了使用指令或程序集引用吗?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ PatientParser.cs(18,16,18,29):错误CS0246:找不到类型或命名空间名称'IMyAppPatient'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ PatientParser.cs(28,17,28) ,30):错误CS0246:找不到类型或命名空间名称'IMyAppPatient'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient的.cs(10,33,10,46 ):错误CS0246:找不到类型或命名空间名称'IMyAppPatient'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs (9,16,9,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(11,16,11,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?) 1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(13,16,13,29):错误CS0246:找不到类型或命名空间名称'Value <>'(是你吗?缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(15,16,15,29):错误CS0246:类型或命名空间名称'值找不到<>'(你是否错过了使用指令或汇编ly reference?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(17,16,17,64):错误CS0246:类型或命名空间名称'Value <>'不能是发现(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(17,22,17,27):错误CS0246:类型或找不到命名空间名称'MyApp'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(19,16,19,32) ):错误CS0246:找不到类型或命名空间名称“值<>”(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient .cs(21,16,21,32):错误CS0246:找不到类型或命名空间名称“Value <>”(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(12,16,12,29):错误CS0246:t找不到ype或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(23,16) ,23,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(14,16,14,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C: \ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(25,16,25,29):错误CS0246:无法找到类型或命名空间名称“Value <>”(您是否缺少using指令?或汇编引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(16,16,16,29):错误CS0246:类型或命名空间名称'Value <>'可以找不到(你错过了使用指令或汇编引用吗?)1 > C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(18,16,18,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否遗漏了) using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(27,16,27,29):错误CS0246:类型或命名空间名称'Value < >'找不到(你错过了使用指令或汇编引用吗?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(29,16,29,29):错误CS0246:找不到类型或命名空间名称'Value <>'(是你吗?缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(20,16,20,64):错误CS0246:类型或命名空间名称'值找不到<>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(20,22,20,27):错误CS0246:找不到类型或命名空间名称“MyApp”(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(31 ,16,31,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS -Blekinge \ PopManWS \ Patient.cs(33,16,33,29):错误CS0246:类型或nam找不到espace名称'Value <>'(你是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(22,16,22) ,32):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(35,16,35,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(24,16,24,32):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或汇编参考?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(37,16,37,29):错误CS0246:类型或命名空间名称'Value <>'不能是发现(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(26,16,26,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集参考?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(39,16,39,29):错误CS0246:找不到类型或命名空间名称'Value <>' (您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(28,16,28,29):错误CS0246:类型或命名空间找不到名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(30,16,30, 29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(41,16,41,29):错误CS0246:类型或名称.pa找不到名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(32,16,32) ,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(43,46,43,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(34,16,34,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或汇编参考?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ SokPatientHandler.cs(16,38,16,49):错误CS0246:找不到类型或命名空间名称'ISokPatient'(你错过了使用指令或汇编引用吗?)1 > C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(45,16,45,27):错误CS0246:找不到类型或命名空间名称“值<>”(您是否遗漏了) using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(36,16,36,29):错误CS0246:类型或命名空间名称'Value < >'找不到(你错过了使用指令或汇编引用吗?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(38,16,38,29):错误CS0246:找不到类型或命名空间名称'Value <>'(是你吗?缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(47,16,47,27):错误CS0246:类型或命名空间名称'值找不到<>'(你是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(40,16,40,29):错误CS0246:找不到类型或命名空间名称“Value <>”(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs (49,16,49,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(42,16,42,29):错误CS0246:类型无法找到或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(51,16, 51,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(44,16,44,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ SokPatientHandler.cs(28,77,28,96):错误CS0246:找不到类型或命名空间名称'SearchPatientSource'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ SokPatientHandler.cs(28,16,28,21):错误CS0246:找不到类型或命名空间名称'MyApp'(是你错过了使用指令或汇编参考?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(53,16,53,27):错误CS0246:类型或命名空间名称'Value <>'不能是找到了(你是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(46,16,46,29):错误CS0246:类型或找不到命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(48,16,48) ,27):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(55,16,55,32):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(50,16,50,27):e rror CS0246:找不到类型或命名空间名称“Value <>”(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs (57,16,57,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(52,16,52,29):错误CS0246:找不到类型或命名空间名称“值<>”(您是否缺少using指令或程序集引用?) 1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(54,16,54,29):错误CS0246:找不到类型或命名空间名称'Value <>'(是你吗?缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(59,16,59,29):错误CS0246:类型或命名空间名称'值找不到<>'(你错过了一个using指令或一个asse mbly引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(56,16,56,27):错误CS0246:类型或命名空间名称'Value <>'不能是找到了(你是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(61,16,61,29):错误CS0246:类型或找不到命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(58,16,58,32):错误CS0246:找不到类型或命名空间名称'Value <>'(是你吗?缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(63,16,63,29):错误CS0246:类型或命名空间名称'值找不到<>'(你是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(60,16,60,29):错误CS0246:找不到类型或命名空间名称“Value <>”(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs (65,16,65,27):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(62,16,62,29):错误CS0246:类型无法找到或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(67,16, 67,29):错误CS0246:找不到类型或命名空间名称“Value <>”(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(64,16,64,29):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(66,16,66,29):错误CS0246:找不到类型或命名空间名称“Value <>”(您是否缺少using指令或汇编引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(68,16,68,27):错误CS0246:类型或命名空间名称'Value <>'不能找到(你错过了使用指令或程序集引用吗?) 1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(69,16,69,35):错误CS0246:找不到类型或命名空间名称'Value <>'(是你吗?缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(70,16,70,29):错误CS0246:类型或命名空间名称'值找不到<>'(你是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(71,16,71,31):错误CS0246:找不到类型或命名空间名称“Value <>”(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs (72,16,72,35):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(74,16,74,31):错误CS0246:典型找不到e或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ Patient.cs(73,16) ,73,31):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> C:\ MyApp \ Produkter \ Integrationer \ PopManWS-Blekinge \ PopManWS \ MyAppPatient.cs(76,16,76,31):错误CS0246:找不到类型或命名空间名称'Value <>'(您是否缺少using指令或程序集引用?)1> 1> Build 失败 . 1> 1>时间流逝00:00:00.05 ==========重建全部:0成功,1失败,0跳过==========

1 回答

  • 2

    日志输出对我来说非常清楚:

    MyApp.ServiceExtensions " could not be resolved because it was built against the " .NETFramework,Version = v4.6 " framework. This is a higher version than the currently targeted framework " .NETFramework,Version = v4.0 “ .

    引用MyApp.ServiceExtensions的项目PopManWS是使用.Net v4.0构建的 . 因此,您需要将PopManWS项目定位到.Net 4.6或重新定位MyApp.ServiceExtensions项目以使用.Net 4.0并重建 .

    您只能引用针对相同或较低.Net框架版本构建的项目 .

    有关如何重新定位的信息,请参见https://msdn.microsoft.com/en-us/library/bb398202.aspx .

相关问题