Обновление решения с. net framework 4 до более поздней версии. 4.7.2; 4.8.VS2013 - PullRequest
2 голосов
/ 10 марта 2020

После обновления с. net 4 до более поздней версии, например 4.5, 4.72, я получаю ошибки ниже. Я обновил ссылки et c.

Обновление было выполнено вручную и с помощью TargetFrameworkMigrator.

Error   9209    'Note.Svc.Models.ps_AddNoteBrs_Result' does not contain a definition for 'Modified' and no extension method 'Modified' accepting a first argument of type 'Note.Svc.Models.ps_AddNoteBrs_Result' could be found (are you missing a using directive or an assembly reference?)   C:\Work\Note\Note.Svc\TakeAddSvc.svc.cs 1492    31  Note.Svc
Error   9224    'Note.Svc.Models.ps_AddNoteBrs_Result' does not contain a definition for 'Modified' and no extension method 'Modified' accepting a first argument of type 'Note.Svc.Models.ps_AddNoteBrs_Result' could be found (are you missing a using directive or an assembly reference?)   C:\Work\Note\Note.Svc\TakeAddSvc.svc.cs 1500    31  Note.Svc
Error   9249    'Note.Svc.Models.ps_AddNoteBrs_Result' does not contain a definition for 'Modified' and no extension method 'Modified' accepting a first argument of type 'Note.Svc.Models.ps_AddNoteBrs_Result' could be found (are you missing a using directive or an assembly reference?)   C:\Work\Note\Note.Svc\TakeAddSvc.svc.cs 1513    35  Note.Svc
Error   4777    'Note.Svc.Models.NoteRun' does not contain a definition for 'Checked' and no extension method 'Checked' accepting a first argument of type 'Note.Svc.Models.NoteRun' could be found (are you missing a using directive or an assembly reference?)   C:\Work\Note\Note.Svc\QualityControlTrackingService.svc.cs  511 58  Note.Svc
Error   5712    Cannot implicitly convert type 'System.Collections.Generic.List<Note.Svc.Models.ps_RerportNote_Result> [c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll]' to 'System.Collections.Generic.List<Note.Svc.Models.ps_RerportNote_Result> [c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll]' C:\Work\Note\Note.Svc\AddRepSvc.svc.cs  647 42  Note.Svc
Error   5700    Cannot implicitly convert type 'System.Collections.Generic.List<Note.Svc.Models.ps_ReportAddNote_Result> [c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll]' to 'System.Collections.Generic.List<Note.Svc.Models.ps_ReportAddNote_Result> [c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll]' C:\Work\Note\Note.Svc\AddRepSvc.svc.cs  646 37  Note.Svc
Error   5838    Cannot implicitly convert type 'System.Collections.Generic.List<Note.Svc.Models.ps_ReportAddNote_Result> [c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll]' to 'System.Collections.Generic.List<Note.Svc.Models.ps_ReportAddNote_Result> [c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll]' C:\Work\Note\Note.Svc\AddRepSvc.svc.cs  664 37  Note.Svc

1 Ответ

0 голосов
/ 10 марта 2020

Проект, который содержит пространство имен Note.Svc.Models, также должен иметь целевую платформу, обновленную до совместимой версии проекта, которая их использует.

...