Je besoin d'un autre ensemble d'yeux pour regarder cela. Le code suivant est exécuté en studio visuel et lorsqu'il est inactif la barre latérale verte indique la syntaxe est correcte.
Cependant quand je lance une migration d'ajout dans la console de gestionnaire de paquets, il répond avec l'erreur suivante.
« Objet non valide transmis, ':' ou '}' attendu (817).
Il semble prendre problème avec ma mise en œuvre de la dépendance, mais je ne peux pas trouver une instance d'un support manquant ou une virgule.
Si vous pouvez le trouver, je serai heureux de fournir votre réponse avec un vote en place. Je vous remercie!
{
buildOptions: {
emitEntryPoint: true,
preserveCompilationContext: true
},
dependencies: {
Microsoft.NETCore.App: {
version: 1.0.1,
type: platform
},
Microsoft.AspNetCore.Diagnostics: 1.0.0,
Microsoft.Extensions.Configuration.FileExtensions: 1.0.0,
Microsoft.AspNetCore.Server.IISIntegration: 1.0.0,
Microsoft.AspNetCore.Server.Kestrel: 1.0.1,
Microsoft.Extensions.Logging.Console: 1.0.0,
Microsoft.Extensions.Configuration.Json: 1.0.0,
Microsoft.AspNetCore.StaticFiles: 1.0.0,
Microsoft.AspNetCore.Mvc: 1.0.0,
Microsoft.EntityFrameworkCore.SqlServer: 1.1.0,
Microsoft.EntityFrameworkCore.Tools: 1.1.0-preview4-final,
Microsoft.AspNetCore.Identity: 1.0.0 //New package required for added functionality
},
frameworks: {
netcoreapp1.0: {
imports: [
dotnet5.6,
portable-net45+win8
]
}
},
publishOptions: {
include: [
wwwroot,
web.config
]
},
runtimeOptions: {
configProperties: {
System.GC.Server: true
}
},
scripts: {
postpublish: [ dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework% ]
},
tools: {
Microsoft.AspNetCore.Server.IISIntegration.Tools: 1.0.0-preview2-final,
Microsoft.EntityFrameworkCore.Tools: 1.1.0-preview4-final
}
}