簡體   English   中英

重新定位.NET Framework

[英]Re-Targeting .NET Framework

我正在使用.Net Framework 4.6.1作為目標框架。 我試圖通過使用Properties來改變它。 當我將目標4.6.1更改為4.0時,Visual Studio列出了錯誤。 我該如何正確地進行更改。

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

我遇到了同樣的問題。 我敢打賭,您在模型中使用了Task實體。 Microsoft具有System.Threading.Tasks.Task。 如果要避免該錯誤,只需使用“ System.Threading.Tasks.Task”而不是相應的“ Task”即可。

希望能有所幫助,

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM