Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a command like below
apidoc -i "filepath" -o "filepath"/doc/
but i want to excecute automatically while building the application.

What I have tried:

{
"label": "echotest",
"command": "apidoc -i "filepath" -o "filepath"/doc/",
"args": ["test"],
"type": "shell"
}

but it's not working.
Posted
Updated 24-Dec-19 22:15pm

1.Right click on the project in the solution explorer and choose properties
2. Click on the Build events in the left pane
3. in the pre-build area type in the commands you want to run
 
Share this answer
 
Comments
Member 11592964 11-Feb-19 23:08pm    
how to do that in visual studio code
RmcbainTheThird 12-Feb-19 7:44am    
Don't know myself but Google told me about this
https://code.visualstudio.com/docs/editor/tasks#_custom-tasks
How to run multiple tasks in VS Code on build? - Stack Overflow

{
    "version": "2.0.0",
    "tasks": [
       {
            "label": "build",
            "command": "dotnet",
            "type": "process",
            "args": [
                "build",
                "${workspaceFolder}/Regevent.API.csproj",
                "/property:GenerateFullPaths=true",
                "/consoleloggerparameters:NoSummary"
            ],
            "problemMatcher": "$msCompile",
            "dependsOn": [
                "pre-build"
            ]
        },
        {
            "label": "pre-build",
            "type": "shell",
            "command": "git describe --long > '${workspaceFolder}/version.txt'"
        }
    ]
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900