概述
在tasks.json里面tasks下添加:
{
"type": "shell",
"label": "VS2019 MSBuild",
"command": "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe",
"args": [
"${workspaceFolder}/media_player/demo/player_demo_win/player_demo_win.sln",
// Ask msbuild to generate full paths for file names.
"/p:Configuration=Debug",
"/p:Platform=x86",
"/p:GenerateFullPaths=true",
"/t:build"
],
"group": "build",
"presentation": {
// Reveal the output only if unrecognized errors occur.
"reveal": "silent"
},
// Use the standard MS compiler pattern to detect errors, warnings and infos
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/media_player/demo/player_demo_win"
}
}
最后
以上就是鲤鱼期待为你收集整理的VSCode添加MSBuild的全部内容,希望文章能够帮你解决VSCode添加MSBuild所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复