Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Build Error: dotnet bundle clean > exited with code 1 #5683


User avatar
1
rashed created

I'm downloading the final version 6.0 and follow all the steps in documentation to install ASPNETZero

https://github.com/aspnetzero/documents/blob/master/doc/Getting-Started-Core.md

and in build step I got this Error

Error MSB3073 The command "dotnet bundle clean" exited with code 1. Test.Web.Mvc

build succeeded once I removed these lines from "Test.Web.Mvc.csproj" , >> <Target Name="PreBuild" AfterTargets="PreBuildEvent"> <Exec Command="dotnet bundle clean" /> <Exec Command="dotnet bundle" /> </Target>


5 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    I downloaded the 6.0 test project and everything works fine. You can try to execute yarn first in the Web.Mvc directory.

  • User Avatar
    0
    alper created
    Support Team

    closed due to inactivity.

  • User Avatar
    0
    kfrancis created

    Hitting this, right after coming back to a fresh new project.

    • Generate a demo project
    • Open project
    • Build

    Expected: Build to succeed Actual: The command "dotnet bundle clean" exited with code 1.

    I've tried reinstalling BundlerMinifier.Core, I've made usre BundlerMinifier.Core is used in a DotNetCliToolReference (comes standard), nothing.

  • User Avatar
    0
    kfrancis created

    I'll note that this run fine in 15.9.0 Preview 3.0 but not 15.9.0 itself.

  • User Avatar
    0
    ralph created

    Same Problem with 6.3.1. just downloaded freshly. Also tried running yarn, but same issue. Thanks :)