Die Bibliothek hostpolicy.dll wurde nicht gefunden
Ich habe ein einfaches .NET Core-Projekt (Konsolen-App), das ich kompilieren und ausführen möchte.dotnet build
ist erfolgreich, aber ich erhalte die folgende Fehlermeldung, wenn ichdotnet run
:
λ dotnet run
Project RazorPrecompiler (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in [path].
Meine project.json sieht so aus:
{
"buildOptions": {
"warningsAsErrors": true
},
"dependencies": {
"Microsoft.AspNetCore.Razor": "1.0.0",
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
}
},
"description": "Precompiles Razor views.",
"frameworks": {
"netcoreapp1.0": {
"imports": [ ]
}
},
"version": "1.2.0"
}
Was isthostpolicy.dll
, und warum fehlt es?