none
,net core ef add-migration 无法识别的转义序列。 (265412): { RRS feed

  • 问题

  • 程序包管理器控制台主机版本 4.4.0.4475
    键入 "get-help NuGet" 可查看所有可用的 NuGet 命令。

    PM> add-migration updateriver
    无法识别的转义序列。 (614826): {
      "version": 3,
      "targets": {
        ".NETCoreApp,Version=v2.0": {
          "AutoMapper/6.1.1": {
            "type": "package",
            "dependencies": {
              "Microsoft.CSharp": "4.3.0",
              "System.Collections": "4.3.0",
              "System.Collections.Concurrent": "4.3.0",
              "System.Collections.Specialized": "4.3.0",
              "System.ComponentModel.TypeConverter": "4.3.0",
              "System.Diagnostics.Debug": "4.3.0",
              "System.Dynamic.Runtime": "4.3.0",
              "System.Globalization": "4.3.0",
              "System.Linq": "4.3.0",
              "System.Linq.Expressions": "4.3.0",
              "System.Linq.Queryable": "4.3.0",
              "System.Reflection": "4.3.0",
              "System.Reflection.Extensions": "4.3.0",
              "System.Resources.ResourceManager": "4.3.0",
              "System.Runtime": "4.3.0",
              "System.Runtime.Extensions": "4.3.0",
              "System.Text.RegularExpressions": "4.3.0",
              "System.Threading": "4.3.0"
            },
            "compile": {
              "lib/netstandard1.3/AutoMapper.dll": {}
            },
            "runtime": {
              "lib/netstandard1.3/AutoMapper.dll": {}
            }
          },
          "Libuv/1.10.0": {
            "type": "package",
            "dependencies": {
              "Microsoft.NETCore.Platforms": "1.0.1"
            },
            "runtimeTargets": {
              "runtimes/linux-arm/native/libuv.so": {
                "assetType": "native",
                "rid": "linux-arm"
              },
              "runtimes/linux-arm64/native/libuv.so": {
                "assetType": "native",
                "rid": "linux-arm64"
              },
              "runtimes/linux-armel/native/libuv.so": {
                "assetType": "native",
                "rid": "linux-armel"
              },
              "runtimes/linux-x64/native/libuv.so": {
                "assetType": "native",
                "rid": "linux-x64"
              },
              "runtimes/osx/native/libuv.dylib": {
                "assetType": "native",
                "rid": "osx"
              },
              "runtimes/win-arm/native/libuv.dll": {
                "assetType": "native",
                "rid": "win-arm"
              },
              "runtimes/win-x64/native/libuv.dll": {
                "assetType": "native",
                "rid": "win-x64"
              },
              "runtimes/win-x86/native/libuv.dll": {
                "assetType": "native",
                "rid": "win-x86"
              }
            }
          },
          "Microsoft.ApplicationInsights/2.4.0": {
            "type": "package",
            "dependencies": {
              "NETStandard.Library": "1.6.1",
              "System.Diagnostics.DiagnosticSource": "4.4.0",
              "System.Diagnostics.StackTrace": "4.3.0"
            },
            "compile": {
              "lib/netstandard1.3/Microsoft.ApplicationInsights.dll": {}
            },
            "runtime": {
              "lib/netstandard1.3/Microsoft.ApplicationInsights.dll": {}
            }
          },
          "Microsoft.ApplicationInsights.AspNetCore/2.1.1": {
            "type": "package",
            "dependencies": {
              "Microsoft.ApplicationInsights": "2.4.0",
              "Microsoft.ApplicationInsights.DependencyCollector": "2.4.1",
              "Microsoft.AspNetCore.Hosting": "1.0.0",
              "Microsoft.Extensions.Configuration": "1.0.0",
              "Microsoft.Extensions.Configuration.Json": "1.0.0",
              "Microsoft.Extensions.DiagnosticAdapter": "1.0.0",
              "Microsoft.Extensions.Logging.Abstractions": "1.0.0",
              "NETStandard.Library": "1.6.1",
              "System.Net.NameResolution": "4.3.0",
              "System.Text.Encodings.Web": "4.3.1"
            },
            "compile": {
              "lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dll": {}
            },
            "runtime": {
              "lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dll": {}
            }
          },
          "Microsoft.ApplicationInsights.DependencyCollector/2.4.1": {
            "type": "package",
            "dependencies": {
              "Microsoft.ApplicationInsights": "[2.4.0]",
              "Microsoft.Extensions.PlatformAbstractions": "1.1.0",
              "NETStandard.Library": "1.6.1",
              "System.Diagnostics.DiagnosticSource": "4.4.0",
              "System.Diagnostics.StackTrace": "4.3.0"
            },
            "compile": {
              "lib/netstandard1.6/Microsoft.AI.DependencyCollector.dll": {}
            },
            "runtime": {
              "lib/netstandard1.6/Microsoft.AI.DependencyCollector.dll": {}
            }
          },
          "Microsoft.AspNetCore/2.0.0": {
            "type": "package",
            "dependencies": {
              "Microsoft.AspNetCore.Diagnostics": "2.0.0",
              "Microsoft.AspNetCore.Hosting": "2.0.0",
              "Microsoft.AspNetCore.Routing": "2.0.0",
              "Microsoft.AspNetCore.Server.IISIntegration": "2.0.0",
              "Microsoft.AspNetCore.Server.Kestrel": "2.0.0",
              "Microsoft.AspNetCore.Server.Kestrel.Https": "2.0.0",
              "Microsoft.Extensions.Configuration.CommandLine": "2.0.0",
              "Microsoft.Extensions.Configuration.EnvironmentVariables": "2.0.0",
              "Microsoft.Extensions.Configuration.FileExtensions": "2.0.0",
              "Microsoft.Extensions.Configuration.Json": "2.0.0",
              "Microsoft.Extensions.Configuration.UserSecrets": "2.0.0",
              "Microsoft.Extensions.Logging": "2.0.0",
              "Microsoft.Extensions.Logging.Configuration": "2.0.0",
              "Microsoft.Extensions.Logging.Console": "2.0.0",
              "Microsoft.Extensions.Logging.Debug": "2.0.0"
            },
            "compile": {
              "lib/netstandard2.0/Microsoft.AspNetCore.dll": {}
            },
            "runtime": {
              "lib/netstandard2.0/Microsoft.AspNetCore.dll": {}
            }
          },
          "Microsoft.AspNetCore.All/2.0.0": {
            "type": "package",
            "dependencies": {
              "Microsoft.AspNetCore": "2.0.0",
              "Microsoft.AspNetCore.Antiforgery": "2.0.0",
              "Microsoft.AspNetCore.ApplicationInsights.HostingStartup": "2.0.0",
              "Microsoft.AspNetCore.Authentication": "2.0.0",
              "Microsoft.AspNetCore.Authentication.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.Authentication.Cookies": "2.0.0",
              "Microsoft.AspNetCore.Authentication.Core": "2.0.0",
              "Microsoft.AspNetCore.Authentication.Facebook": "2.0.0",
              "Microsoft.AspNetCore.Authentication.Google": "2.0.0",
              "Microsoft.AspNetCore.Authentication.JwtBearer": "2.0.0",
              "Microsoft.AspNetCore.Authentication.MicrosoftAccount": "2.0.0",
              "Microsoft.AspNetCore.Authentication.OAuth": "2.0.0",
              "Microsoft.AspNetCore.Authentication.OpenIdConnect": "2.0.0",
              "Microsoft.AspNetCore.Authentication.Twitter": "2.0.0",
              "Microsoft.AspNetCore.Authorization": "2.0.0",
              "Microsoft.AspNetCore.Authorization.Policy": "2.0.0",
              "Microsoft.AspNetCore.AzureAppServices.HostingStartup": "2.0.0",
              "Microsoft.AspNetCore.AzureAppServicesIntegration": "2.0.0",
              "Microsoft.AspNetCore.CookiePolicy": "2.0.0",
              "Microsoft.AspNetCore.Cors": "2.0.0",
              "Microsoft.AspNetCore.Cryptography.Internal": "2.0.0",
              "Microsoft.AspNetCore.Cryptography.KeyDerivation": "2.0.0",
              "Microsoft.AspNetCore.DataProtection": "2.0.0",
              "Microsoft.AspNetCore.DataProtection.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.DataProtection.AzureStorage": "2.0.0",
              "Microsoft.AspNetCore.DataProtection.Extensions": "2.0.0",
              "Microsoft.AspNetCore.Diagnostics": "2.0.0",
              "Microsoft.AspNetCore.Diagnostics.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "2.0.0",
              "Microsoft.AspNetCore.Hosting": "2.0.0",
              "Microsoft.AspNetCore.Hosting.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.Hosting.Server.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.Html.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.Http": "2.0.0",
              "Microsoft.AspNetCore.Http.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.Http.Extensions": "2.0.0",
              "Microsoft.AspNetCore.Http.Features": "2.0.0",
              "Microsoft.AspNetCore.HttpOverrides": "2.0.0",
              "Microsoft.AspNetCore.Identity": "2.0.0",
              "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "2.0.0",
              "Microsoft.AspNetCore.JsonPatch": "2.0.0",
              "Microsoft.AspNetCore.Localization": "2.0.0",
              "Microsoft.AspNetCore.Localization.Routing": "2.0.0",
              "Microsoft.AspNetCore.MiddlewareAnalysis": "2.0.0",
              "Microsoft.AspNetCore.Mvc": "2.0.0",
              "Microsoft.AspNetCore.Mvc.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.Mvc.ApiExplorer": "2.0.0",
              "Microsoft.AspNetCore.Mvc.Core": "2.0.0",
              "Microsoft.AspNetCore.Mvc.Cors": "2.0.0",
              "Microsoft.AspNetCore.Mvc.DataAnnotations": "2.0.0",
              "Microsoft.AspNetCore.Mvc.Formatters.Json": "2.0.0",
              "Microsoft.AspNetCore.Mvc.Formatters.Xml": "2.0.0",
              "Microsoft.AspNetCore.Mvc.Localization": "2.0.0",
              "Microsoft.AspNetCore.Mvc.Razor": "2.0.0",
              "Microsoft.AspNetCore.Mvc.Razor.Extensions": "2.0.0",
              "Microsoft.AspNetCore.Mvc.Razor.ViewCompilation": "2.0.0",
              "Microsoft.AspNetCore.Mvc.RazorPages": "2.0.0",
              "Microsoft.AspNetCore.Mvc.TagHelpers": "2.0.0",
              "Microsoft.AspNetCore.Mvc.ViewFeatures": "2.0.0",
              "Microsoft.AspNetCore.NodeServices": "2.0.0",
              "Microsoft.AspNetCore.Owin": "2.0.0",
              "Microsoft.AspNetCore.Razor": "2.0.0",
              "Microsoft.AspNetCore.Razor.Language": "2.0.0",
              "Microsoft.AspNetCore.Razor.Runtime": "2.0.0",
              "Microsoft.AspNetCore.ResponseCaching": "2.0.0",
              "Microsoft.AspNetCore.ResponseCaching.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.ResponseCompression": "2.0.0",
              "Microsoft.AspNetCore.Rewrite": "2.0.0",
              "Microsoft.AspNetCore.Routing": "2.0.0",
              "Microsoft.AspNetCore.Routing.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.Server.HttpSys": "2.0.0",
              "Microsoft.AspNetCore.Server.IISIntegration": "2.0.0",
              "Microsoft.AspNetCore.Server.Kestrel": "2.0.0",
              "Microsoft.AspNetCore.Server.Kestrel.Core": "2.0.0",
              "Microsoft.AspNetCore.Server.Kestrel.Https": "2.0.0",
              "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv": "2.0.0",
              "Microsoft.AspNetCore.Session": "2.0.0",
              "Microsoft.AspNetCore.SpaServices": "2.0.0",
              "Microsoft.AspNetCore.StaticFiles": "2.0.0",
              "Microsoft.AspNetCore.WebSockets": "2.0.0",
              "Microsoft.AspNetCore.WebUtilities": "2.0.0",
              "Microsoft.CodeAnalysis.Razor": "2.0.0",
              "Microsoft.Data.Sqlite": "2.0.0",
              "Microsoft.Data.Sqlite.Core": "2.0.0",
              "Microsoft.EntityFrameworkCore": "2.0.0",
              "Microsoft.EntityFrameworkCore.Design": "2.0.0",
              "Microsoft.EntityFrameworkCore.InMemory": "2.0.0",
              "Microsoft.EntityFrameworkCore.Relational": "2.0.0",
              "Microsoft.EntityFrameworkCore.SqlServer": "2.0.0",
              "Microsoft.EntityFrameworkCore.Sqlite": "2.0.0",
              "Microsoft.EntityFrameworkCore.Sqlite.Core": "2.0.0",
              "Microsoft.EntityFrameworkCore.Tools": "2.0.0",
              "Microsoft.Extensions.Caching.Abstractions": "2.0.0",
              "Microsoft.Extensions.Caching.Memory": "2.0.0",
              "Microsoft.Extensions.Caching.Redis": "2.0.0",
              "Microsoft.Extensions.Caching.SqlServer": "2.0.0",
              "Microsoft.Extensions.Configuration": "2.0.0",
              "Microsoft.Extensions.Configuration.Abstractions": "2.0.0",
              "Microsoft.Extensions.Configuration.AzureKeyVault": "2.0.0",
              "Microsoft.Extensions.Configuration.Binder": "2.0.0",
              "Microsoft.Extensions.Configuration.CommandLine": "2.0.0",
              "Microsoft.Extensions.Configuration.EnvironmentVariables": "2.0.0",
              "Microsoft.Extensions.Configuration.FileExtensions": "2.0.0",
              "Microsoft.Extensions.Configuration.Ini": "2.0.0",
              "Microsoft.Extensions.Configuration.Json": "2.0.0",
              "Microsoft.Extensions.Configuration.UserSecrets": "2.0.0",
              "Microsoft.Extensions.Configuration.Xml": "2.0.0",
              "Microsoft.Extensions.DependencyInjection": "2.0.0",
              "Microsoft.Extensions.DependencyInjection.Abstractions": "2.0.0",
              "Microsoft.Extensions.DiagnosticAdapter": "2.0.0",
              "Microsoft.Extensions.FileProviders.Abstractions": "2.0.0",
              "Microsoft.Extensions.FileProviders.Composite": "2.0.0",
              "Microsoft.Extensions.FileProviders.Embedded": "2.0.0",
              "Microsoft.Extensions.FileProviders.Physical": "2.0.0",
              "Microsoft.Extensions.FileSystemGlobbing": "2.0.0",
              "Microsoft.Extensions.Hosting.Abstractions": "2.0.0",
              "Microsoft.Extensions.Identity.Core": "2.0.0",
              "Microsoft.Extensions.Identity.Stores": "2.0.0",
              "Microsoft.Extensions.Localization": "2.0.0",
              "Microsoft.Extensions.Localization.Abstractions": "2.0.0",
              "Microsoft.Extensions.Logging": "2.0.0",
              "Microsoft.Extensions.Logging.Abstractions": "2.0.0",
              "Microsoft.Extensions.Logging.AzureAppServices": "2.0.0",
              "Microsoft.Extensions.Logging.Configuration": "2.0.0",
              "Microsoft.Extensions.Logging.Console": "2.0.0",
              "Microsoft.Extensions.Logging.Debug": "2.0.0",
              "Microsoft.Extensions.Logging.EventSource": "2.0.0",
              "Microsoft.Extensions.Logging.TraceSource": "2.0.0",
              "Microsoft.Extensions.ObjectPool": "2.0.0",
              "Microsoft.Extensions.Options": "2.0.0",
              "Microsoft.Extensions.Options.ConfigurationExtensions": "2.0.0",
              "Microsoft.Extensions.Primitives": "2.0.0",
              "Microsoft.Extensions.WebEncoders": "2.0.0",
              "Microsoft.Net.Http.Headers": "2.0.0",
              "Microsoft.VisualStudio.Web.BrowserLink": "2.0.0"
            },
            "compile": {
              "lib/netcoreapp2.0/_._": {}
            },
            "runtime": {
              "lib/netcoreapp2.0/_._": {}
            },
            "build": {
              "build/netcoreapp2.0/Microsoft.AspNetCore.All.targets": {}
            }
          },
          "Microsoft.AspNetCore.Antiforgery/2.0.0": {
            "type": "package",
            "dependencies": {
              "Microsoft.AspNetCore.DataProtection": "2.0.0",
              "Microsoft.AspNetCore.Http.Abstractions": "2.0.0",
              "Microsoft.AspNetCore.Http.Extensions": "2.0.0",
              "Microsoft.AspNetCore.WebUtilities": "2.0.0",
              "Microsoft.Extensions.ObjectPool": "2.0.0"
            },
            "compile": {
              "lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll": {}
            },
            "runtime": {
              "lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll": {}
            }
          }
      }
    }
    PM>

    • 已编辑 tggggg 2017年11月6日 12:41
    • 已移动 Hart Wang 2017年11月8日 5:12
    2017年11月6日 12:37

全部回复

  • Hi,

    感谢在MSDN论坛发帖。

    因为你的问题涉及到ASP.NET Core 的问题,你可以去下面的论坛发帖。 当前论坛讨论的是.MET Framework的一般性问题。

    https://forums.asp.net/1255.aspx/1?ASP+NET+Core

    我将把帖子移到一般性讨论论坛.

    Best Regards,

    Hart


    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2017年11月7日 8:50