No se encontró ningún ejecutable que coincida con el comando "dotnet-bundle" durante WebDeploy para ASP.NET Básica
Soy nuevo en ASP.NET y estoy tratando de publicar una aplicación web. He intentado con 2 hosts diferentes hacer un despliegue web pero sigo receving el error: -
No se ha encontrado ningún ejecutable que coincida con el comando "dotnet-bundle"
¿A qué se relaciona esto?
Proyecto.Json
{
"dependencies": {
"Bitly.Net": "0.0.6",
"BitlyAPI": "1.0.3",
"BundlerMinifier.Core": "2.2.281",
"Common.Logging": "3.4.0-Beta2",
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-preview2-final",
"type": "build"
},
"Microsoft.AspNetCore.Routing": "1.0.1",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.AspNetCore.StaticFiles": "1.0.0",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.Extensions.Logging": "1.0.0",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.Extensions.Logging.Debug": "1.0.0",
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0",
"Parse": "1.7.0",
"Spring.Social.Twitter": "2.0.0-M1",
"Stormpath.AspNetCore": "0.7.0"
},
"tools": {
"Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
},
"frameworks": {
"net46": {
"frameworkAssemblies": {
}
}
},
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"publishOptions": {
"include": [
"wwwroot",
"**/*.cshtml",
"appsettings.json",
"web.config"
]
},
"scripts": {
"prepublish": [ "bower install", "dotnet bundle" ],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
},
"userSecretsId": "aspnet-ParseAppDashboard-20161008081***"
}
3 answers
En la sección tools del Proyecto .json añadir esto -
"tools": {
"BundlerMinifier.Core": "2.2.281",
....
Al guardar el Proyecto.json, VS2015 restaura paquetes automáticamente.
Si no funciona, haga clic derecho en proyecto y haga clic en Restaurar paquetes opción.
Si esto no funciona, intente restaurar usando el comando dotnet restore
CLI.
Vea si esto ayuda.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-11-15 17:41:05
Para Core rc3 y para VS2017 con formato de archivo .csproj
, agregue
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.6.375" />
A un ItemGroup con otros otros DotNetCliToolReference
ajustes:
<Project ToolsVersion="15.0" Sdk="Microsoft.NET.Sdk.Web">
...
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" />
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.6.375" />
</ItemGroup>
</Project>
Pero mira https://www.nuget.org/packages/BundlerMinifier.Core para el último número de versión
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-04-17 21:32:10
Probablemente también necesite agregar
"runtimes": {
"win10-x64": {}
},
A tu proyecto.json si desea actualizar a core 1.1 (también cambie para corregir el tiempo de ejecución en el global.json) Digo esto porque obtuve el error de paquete después de actualizar mis paquetes y la aplicación a 1.1 en VS2015.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-02-20 10:51:44