When I use: make after starting: the msbuild compiler, the shell returns the message "msbuild" is not recognized as an internal or external command. "Does msbuild.vim relate to the MSBuild tool?
Yes.
To enable msbuild on the command line, you just need to add the path to install .net4 on your machine into the PATH environment variable. The following worked for me on Windows:
You can access the environment variables by right-clicking on "Computer", click on "Properties" and click on "Advanced System Settings" in the left navigation bar. In the next dialog box, click "Environment Variables", scroll down to "PATH" and edit it to include your path to the framework (do not forget ";" after the last entry here.
For reference, my path was C:\Windows\Microsoft.NET\Framework64\v4.0.30319 . [1]
Although I use it only for C # projects, I believe that it will work for C ++ as well. Remember that you need to run msbuild inside the project directory, otherwise msbuild will not be able to find your project.
For completeness, here is a snippet of my vimrc (which the OP has already received by email).
noremap <F4> :<CU>silent make<CR>:redraw!<CR> au FileType cs compiler msbuild
Patches and additions to this compiler script are always welcome, of course!
Hello
[1]: How to start msbuild from the command line using the Windows SDK 7.1?
source share