I’ve played with a few different plugins to get C# to compile in vim, namely Visual_studio.vim,
vim-csharp and vim-csharp, but the only one that even starts
to compile is OrangeT’s vim-csharp, but when I’m working on an XNA solution, all
the XNA references are not found:
The type or namespace name 'Xna' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Is there anything I can do to better work with C#/XNA with vim?
If it’s relevant: Windows7x64bit VisualStudio2010 XNA4 Python2.7x64bit gVim73
You’re on Windows, so you always have the option to build on the commandline with msbuild. I’m sure you have the facility in vim to run a macro specifying a project relative to the current buffer’s path.
The command line looks like
This should pull in your project’s references when building, so you’ll avoid those errors.