No executable found matching command “dotnet-bundle” during WebDeploy for ASP.NET Core

后端 未结 3 1377
闹比i
闹比i 2020-12-15 16:56

I am new to ASP.NET and I am trying to publish a web app. I have tried with 2 different hosts to do a web deploy but keep receving the error:-

No executable found ma

相关标签:
3条回答
  • 2020-12-15 17:02

    In tools section of Project.json add this-

      "tools": {
        "BundlerMinifier.Core": "2.2.281",
        ....
    

    On saving Project.json, VS2015 automatically restore packages.

    If it doesn't worked then right click on project and click on Restore Packages option.

    If this doesn't worked then try restoring using dotnet restore CLI command.

    See if this helps.

    0 讨论(0)
  • 2020-12-15 17:04

    Since the end of 2016 (RC3 & later, VS2017 & later) move to .csproj file format, add

    <DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.6.375" />
    

    to an <ItemGroup>:

    <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>
    

    Or create a new <ItemGroup> (you can have many of them) for your DotNetCliToolReference settings.

    But look at https://www.nuget.org/packages/BundlerMinifier.Core for the latest version number

    0 讨论(0)
  • 2020-12-15 17:17

    You probably also need to add

    "runtimes": {
    "win10-x64": {}
    },
    

    to your project.json if you want to upgrate to core 1.1 (also change to correct runtime in the global.json file) I say this because I got the bundle error after upgrading my packages and app to 1.1 in VS2015.

    0 讨论(0)
提交回复
热议问题