'prebuild' scripts in project.json doesn't run

后端 未结 4 884
长发绾君心
长发绾君心 2021-02-19 10:56

I have a .NET 5 web application using the DNX framework, and I want to run \'npm install\', \'bower install\' and others, whenever I build the project.

Right now I\'m ab

4条回答
  •  不思量自难忘°
    2021-02-19 11:18

    I know this question is a bit older, but google lead me to it. As of 06/19/2016, you should use precompile instead of prebuild. The new documentation for the project.json file is available at https://docs.microsoft.com/pt-br/dotnet/articles/core/tools/project-json#scripts.

    The valid script options for the project.json file are:

    • precompile
    • postcompile
    • prepublish
    • postpublish

    And Microsoft has already released an announcement stating they will be reverting back to the old .csproj format. You can read about it on the MSDN blog.

    The first wave of this change will happen in the Visual Studio “15” RTM: when opening any .NET Core project in Visual Studio, it will automatically convert from .xproj to .csproj, moving the assets from the project.json file into configuration files and the .csproj file. We will also provide a tool for converting applications using the .NET command line tools as well.

提交回复
热议问题