Post

VS Code에서 Visual Studio 빌드

tasks.json 파일에서 아래와 같이 사용

  • Visual Studio 설치 없이, 인스톨러에서 tool만 설치하며 빌드 진행
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
    "version": "2.0.0",
    "tasks": [
      {
        "label": "Build .NET Framework",
        "type": "shell",
        "command": "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe",
        "args": [
          "${workspaceFolder}/../project.csproj",
          "/p:Configuration=Debug"
        ],
        "group": "build",
        "problemMatcher": "$msCompile"
      }
    ]
  }
This post is licensed under CC BY 4.0 by the author.