Complete list of ASP.Net 5 project.json Script Commands? (Visual Studio 2015)

前端 未结 1 922
悲哀的现实
悲哀的现实 2021-02-07 07:35

I have looked at the the ASP.Net 5 teams wiki entry for project.json, to identify which Script Commands are available, and currently t

相关标签:
1条回答
  • 2021-02-07 08:09

    Update 24/05/2016:

    Microsoft is phasing out project.json and returning to csproj.

    One of the key tenets of .NET as a platform is we want our developers to be able to share code across all of the .NET application models (WinForms, WPF, UWP, ASP.NET, iOS, Android, etc). This presented a series of problems, while project.json was great for building web applications and class libraries it did not allow unification of the other app models.

    ...

    After looking at our choices, it was apparent that it would be easier to move .NET Core projects to .csproj/MSBuild so all .NET projects use the same tooling and build system.

    Quote taken from here


    An update on the Nuget blog from 30th March 2016 stated that

    The latest project.json schema for DNX is supported in the Visual Studio editor and by the NuGet extension

    The project.json schema lists the following available script commands :

            "scripts": {
            "type": "object",
            "description": "Scripts to execute during the various stages.",
            "properties": {
                "precompile": { "$ref": "#/definitions/script" },
                "postcompile": { "$ref": "#/definitions/script" },
                "prepack": { "$ref": "#/definitions/script" },
                "postpack": { "$ref": "#/definitions/script" },
                "prepublish": { "$ref": "#/definitions/script" },
                "postpublish": { "$ref": "#/definitions/script" },
                "prerestore": { "$ref": "#/definitions/script" },
                "postrestore": { "$ref": "#/definitions/script" },
                "prepare": { "$ref": "#/definitions/script" }
            }
        },
    
    0 讨论(0)
提交回复
热议问题