sponsor Vim development Vim logo Vim Book Ad

Compiler Plugin for msbuild csc : Build your msbuild file and visual studio .net 2005 csharp projects in vim.

 script karma  Rating 19/6, Downloaded by 1190  Comments, bugs, improvements  Vim wiki

created by
Red Forks
 
script type
utility
 
description
Msbuild is an easy way to building visusal studio's solution without the IDE. It's very cool using vim to work with your "IDE team members". So this is msbuild plugin.

Msbuild use csc internally to build .csproj project file. Normally we build .sln file, which is in the parent directory of .csproj file. So the csc's output is relative to .csproj directory, not the .sln directory. Vim can't find the error source file. To solve this, you must enable "GenerateFullPaths" option in your .csproj project file.
 
install details
1. copy the msbuild.vim to your vimfiles/compilers directory.
2. After vim started, select the msbuild as your compiler, or in your _vimrc file.
3. Add Follow line to your .csproj file's common PropertyGroup
    <GenerateFullPaths>True</GenerateFullPaths>

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">;
  <PropertyGroup>
    <ProjectType>Local</ProjectType>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{F684BBEC-2818-48B8-B84E-5D736979ECEE}</ProjectGuid>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <OutputType>Library</OutputType>
    <GenerateFullPaths>True</GenerateFullPaths>
    ...
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
msbuild.vim 1.0 2005-12-24 6.0 Red Forks Initial upload
ip used for rating: 3.149.213.209

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github