2016-05-23 93 views
0

我使用.Net Framework 4.6.1作爲目標框架。我試圖用Properties來改變它。當我將目標4.6.1更改爲4.0 Visual Studio列表錯誤時。我怎樣才能改變這一點,沒有錯誤。重新定位.NET Framework

Severity Code Description Project File Line Suppression State 
Error CS0246 The type or namespace name 'Compare' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\AccountViewModels.cs 99 Active 
Error CS0234 The type or namespace name 'Claims' does not exist in the namespace 'System.Security' (are you missing an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\App_Start\IdentityConfig.cs 5 Active 
Error CS0234 The type or namespace name 'Claims' does not exist in the namespace 'System.Security' (are you missing an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\App_Start\IdentityConfig.cs 5 Active 
Error CS0246 The type or namespace name 'ClaimsIdentity' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\App_Start\IdentityConfig.cs 99 Active 
Error CS0508 'ApplicationSignInManager.CreateUserIdentityAsync(ApplicationUser)': return type must be 'Task<ClaimsIdentity>' to match overridden member 'SignInManager<ApplicationUser, string>.CreateUserIdentityAsync(ApplicationUser)' VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\App_Start\IdentityConfig.cs 99 Active 
Error CS7069 Reference to type 'ClaimsIdentity' claims it is defined in 'mscorlib', but it could not be found VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\App_Start\IdentityConfig.cs 99 Active 
Error CS0234 The type or namespace name 'Claims' does not exist in the namespace 'System.Security' (are you missing an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 4 Active 
Error CS0246 The type or namespace name 'EmailAddress' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\AccountViewModels.cs 53 Active 
Error CS0246 The type or namespace name 'EmailAddress' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\AccountViewModels.cs 68 Active 
Error CS0246 The type or namespace name 'Compare' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\AccountViewModels.cs 80 Active 
Error CS0246 The type or namespace name 'ErrorMessage' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\AccountViewModels.cs 80 Active 
Error CS0246 The type or namespace name 'EmailAddress' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\AccountViewModels.cs 87 Active 
Error CS0246 The type or namespace name 'ErrorMessage' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\AccountViewModels.cs 99 Active 
Error CS0246 The type or namespace name 'EmailAddress' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\AccountViewModels.cs 108 Active 
Error CS0246 The type or namespace name 'Table' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\Basket.cs 10 Active 
Error CS0246 The type or namespace name 'Table' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\Book.cs 10 Active 
Error CS0246 The type or namespace name 'Table' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\Category.cs 10 Active 
Error CS0234 The type or namespace name 'Claims' does not exist in the namespace 'System.Security' (are you missing an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\IdentityModels.cs 2 Active 
Error CS0246 The type or namespace name 'ClaimsIdentity' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\IdentityModels.cs 12 Active 
Error CS0246 The type or namespace name 'Compare' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\ManageViewModels.cs 38 Active 
Error CS0246 The type or namespace name 'ErrorMessage' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\ManageViewModels.cs 38 Active 
Error CS0246 The type or namespace name 'Compare' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\ManageViewModels.cs 57 Active 
Error CS0246 The type or namespace name 'ErrorMessage' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\ManageViewModels.cs 57 Active 
Error CS0246 The type or namespace name 'Phone' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\ManageViewModels.cs 64 Active 
Error CS0246 The type or namespace name 'Phone' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\ManageViewModels.cs 76 Active 
Error CS0246 The type or namespace name 'Table' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\MovieDVD.cs 10 Active 
Error CS0246 The type or namespace name 'Table' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\MusicCD.cs 10 Active 
Error CS0246 The type or namespace name 'Table' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\Product.cs 10 Active 
Error CS0246 The type or namespace name 'Table' could not be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\SaleItem.cs 10 Active 
Error  Some NuGet packages were installed using a target framework different from the current target framework and may need to be reinstalled. Visit http://docs.nuget.org/docs/workflows/reinstalling-packages for more information. Packages affected: EntityFramework, Microsoft.ApplicationInsights, Microsoft.ApplicationInsights.Agent.Intercept, Microsoft.ApplicationInsights.DependencyCollector, Microsoft.ApplicationInsights.PerfCounterCollector, Microsoft.ApplicationInsights.Web, Microsoft.ApplicationInsights.WindowsServer, Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel, Microsoft.AspNet.Identity.Core, Microsoft.AspNet.Identity.EntityFramework, Microsoft.AspNet.Identity.Owin, Microsoft.AspNet.Mvc, Microsoft.AspNet.Razor, Microsoft.AspNet.WebPages, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Microsoft.Owin, Microsoft.Owin.Host.SystemWeb, Microsoft.Owin.Security, Microsoft.Owin.Security.Cookies, Microsoft.Owin.Security.Facebook, Microsoft.Owin.Security.Google, Microsoft.Owin.Security.MicrosoftAccount, Microsoft.Owin.Security.OAuth, Microsoft.Owin.Security.Twitter, Newtonsoft.Json VeriPark001  0 
Error CS0117 'Task' does not contain a definition for 'FromResult' VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\App_Start\IdentityConfig.cs 22 Active 
Error CS0117 'Task' does not contain a definition for 'FromResult' VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\App_Start\IdentityConfig.cs 31 Active 
Error CS7069 Reference to type 'ClaimsIdentity' claims it is defined in 'mscorlib', but it could not be found VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\App_Start\Startup.Auth.cs 33 Active 
Error CS1061 'Task<SignInStatus>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<SignInStatus>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 78 Active 
Error CS1061 'Task<bool>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<bool>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 100 Active 
Error CS1061 'Task<SignInStatus>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<SignInStatus>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 123 Active 
Error CS1061 'Task<IdentityResult>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IdentityResult>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 155 Active 
Error CS1061 'Task' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 158 Active 
Error CS1061 'Task<IdentityResult>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IdentityResult>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 184 Active 
Error CS1061 'Task<ApplicationUser>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ApplicationUser>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 205 Active 
Error CS1061 'Task<ApplicationUser>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ApplicationUser>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 251 Active 
Error CS1061 'Task<string>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<string>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 290 Active 
Error CS1061 'Task<bool>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<bool>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 313 Active 
Error CS1061 'Task<ExternalLoginInfo>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ExternalLoginInfo>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 325 Active 
Error CS1061 'Task<ExternalLoginInfo>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ExternalLoginInfo>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 365 Active 
Error CS1061 'Task<IdentityResult>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IdentityResult>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 371 Active 
Error CS1061 'Task' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\AccountController.cs 377 Active 
Error CS1061 'Task<string>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<string>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 70 Active 
Error CS1061 'Task<bool>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<bool>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 71 Active 
Error CS1061 'Task<IList<UserLoginInfo>>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IList<UserLoginInfo>>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 72 Active 
Error CS1061 'Task<bool>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<bool>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 73 Active 
Error CS1061 'Task<IdentityResult>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IdentityResult>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 85 Active 
Error CS1061 'Task<ApplicationUser>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ApplicationUser>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 88 Active 
Error CS1061 'Task<string>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<string>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 120 Active 
Error CS1061 'Task' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 128 Active 
Error CS1061 'Task<IdentityResult>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IdentityResult>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 139 Active 
Error CS1061 'Task<ApplicationUser>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ApplicationUser>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 140 Active 
Error CS1061 'Task<IdentityResult>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IdentityResult>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 154 Active 
Error CS1061 'Task<ApplicationUser>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ApplicationUser>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 155 Active 
Error CS1061 'Task<string>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<string>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 167 Active 
Error CS1061 'Task<IdentityResult>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IdentityResult>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 182 Active 
Error CS1061 'Task<ApplicationUser>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ApplicationUser>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 185 Active 
Error CS1061 'Task<IdentityResult>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IdentityResult>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 201 Active 
Error CS1061 'Task<ApplicationUser>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ApplicationUser>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 206 Active 
Error CS1061 'Task<IdentityResult>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IdentityResult>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 231 Active 
Error CS1061 'Task<ApplicationUser>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ApplicationUser>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 234 Active 
Error CS1061 'Task<IdentityResult>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IdentityResult>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 260 Active 
Error CS1061 'Task<ApplicationUser>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ApplicationUser>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 263 Active 
Error CS1061 'Task<ApplicationUser>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ApplicationUser>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 285 Active 
Error CS1061 'Task<IList<UserLoginInfo>>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<IList<UserLoginInfo>>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 290 Active 
Error CS0019 Operator '>' cannot be applied to operands of type 'method group' and 'int' VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 292 Active 
Error CS1061 'Task<ExternalLoginInfo>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'Task<ExternalLoginInfo>' could be found (are you missing a using directive or an assembly reference?) VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Controllers\ManageController.cs 314 Active 
Error CS7069 Reference to type 'ClaimsIdentity' claims it is defined in 'mscorlib', but it could not be found VeriPark001 C:\Users\Pc-Oem\Documents\Visual Studio 2015\Projects\VeriPark001\VeriPark001\Models\IdentityModels.cs 15 Active 
+4

好吧,如果你使用_older_ .NET版本然後確定你需要停止使用_new_功能在以後的版本(和,當然,依賴瞄準一個較新的版本不能工作介紹) –

+0

有沒有辦法做到這一點?或者我只是卡住了? –

+0

當然有。這可能是一項艱鉅的任務,取決於您使用的功能有多少(以及替換它們有多困難)。 –

回答

0

我得到了同樣的問題。我敢打賭你在模型中使用了一個Task實體。微軟有System.Threading.Tasks.Task。如果你想避免這個錯誤,只需使用「System.Threading.Tasks.Task」而不是簡單的「任務」所在的地方。

希望幫助,