Can I run MSBuild scripts from the Visual Studio Code Command Palette?

Can I run MSBuild scripts directly in the Visual Studio Code command palette or do I need to open an external command line?

I have not seen any documentation regarding Visual Studio Code and MSBuild directly yet. What I have seen so far demonstrates the tasks of Grunt.

+4
source share
1 answer

In tasks.json you can find:

{
    "version": "0.1.0",
    "command": "msbuild",
    "args": [
        // Ask msbuild to generate full paths for file names.
        "/property:GenerateFullPaths=true"
    ],
    "taskSelector": "/t:",
    "showOutput": "silent",
    "tasks": [
        {  
            "taskName": "build",
            // Show the output window only if unrecognized errors occur.
            "showOutput": "silent",
            // Use the standard MS compiler pattern to detect errors, warnings
            // and infos in the output.
            "problemMatcher": "$msCompile"
        }
    ]
}

which is great for creating C # projects. I still haven't found a way to run the file exe. I think this has something to do with the Test team ...

+1
source

All Articles