Mercurial > vim-crosoft
view compiler/vimcrosoftsln.vim @ 15:cfcac4ed7d21 default tip
Improve loading of solution files
- New argument to force a rebuild of the cache
- Gracefully handle missing projects in a solution
- Handle more different xml namespaces
- Support more edge cases
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 29 Aug 2023 12:59:54 -0700 |
parents | 096e80c13781 |
children |
line wrap: on
line source
" Compiler file for Visual Studio " Compiler: Visual Studio " Maintainer: Ludovic Chabant <https://ludovic.chabant.com> if exists("current_compiler") finish endif let current_compiler = "vimcrosoftsln" let s:keepcpo = &cpo let s:prgargs = '' if !empty(g:vimcrosoft_temp_compiler_args__) let s:tmpargs = map( \copy(g:vimcrosoft_temp_compiler_args__), \{idx, val -> escape(val, ' \"')}) let s:prgargs = '\ '.join(s:tmpargs, '\ ') endif let s:prgcmdline = fnameescape('"'.g:vimcrosoft_msbuild_path.'"').s:prgargs call vimcrosoft#trace("Setting makeprg to: ".s:prgcmdline) execute "CompilerSet makeprg=".s:prgcmdline CompilerSet errorformat& "execute "CompilerSet errorformat=".vimcrosoft#get_msbuild_errorformat() "echom "Set errorformat!" "echom &errorformat let &cpo = s:keepcpo unlet s:keepcpo