I have a blog post which walks through all the details of getting C# projects building in Vim, including the error format. You can find it here: http://kevin-berridge.blogspot.com/2008/09/vim-c-compiling.html
In short you need the following:
:set errorformat=\ %#%f(%l\\\,%c):\ %m :set makeprg=msbuild\ /nologo\ /v:q\ /property:GenerateFullPaths=true
从"问题"复制到"未答复"列表中删除
set errorformat=\ %#%f(%l\\\,%c):\ %m
这将捕获两者devenv /Build
和msbuild 的输出.但是,msbuild有一个问题.默认情况下,它的输出不包括完整路径.要解决此问题,您必须将以下行添加到csproj文件的主PropertyGroup:
True