Bundling with MVC4 not working after I publish to azure

前端 未结 9 2191
闹比i
闹比i 2021-02-08 14:52

Hi I am trying to bundle my scripts for my application. My debug is working and if I publish with the Web.debug every thing works fine. But when I publish with the Web.releas my

9条回答
  •  闹比i
    闹比i (楼主)
    2021-02-08 15:36

    I had a similar problem when publishing to Azure. The error was actually telling me that the jQuery file was bad formatted. ==> minified file that is.

    The other scripts failed because jQuery was not identified.

    I was using jQuery 2.0.0 (from NuGet). After upgrading today to 2.0.2 (from NuGet) I was able to publish successful to Azure under Release configuration.

    Not sure if this is linked to your specific problem, but it solved mine.

提交回复
热议问题