Vim errorformat for Visual Studio

后端 未结 7 1244
南方客
南方客 2021-01-30 17:18

I want to use Vim\'s quickfix features with the output from Visual Studio\'s devenv build process or msbuild.

I\'ve created a batch file called build.bat which executes

7条回答
  •  旧巷少年郎
    2021-01-30 17:41

    Copy from question to remove from 'unanswered' list

    set errorformat=\ %#%f(%l\\\,%c):\ %m
    

    This will capture the output for both devenv /Build and msbuild. However, msbuild has one catch. By default, it's output doesn't include full paths. To fix this you have to add the following line to your csproj file's main PropertyGroup:

    True
    

提交回复
热议问题