Wiki

Changes between Version 1 and Version 2 of MsxBuild

Show
Ignore:
Timestamp:
12/27/10 05:16:42 (14 years ago)
Author:
Charles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MsxBuild

    v1 v2  
    55== Example == 
    66 
    7 to-do: provide a sample for Cobra 
     7{{{ 
     8#!xml 
     9<Project DefaultTargets="Compile" 
     10    xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
     11 
     12<!-- to-do: provide a sample for Cobra --> 
     13 
     14</Project> 
     15}}} 
     16 
     17Then at the command line, a simple "msbuild" (or "xbuild" on Mono) will pick the lone *.proj file and build its default target: 
     18{{{ 
     19msbuild 
     20}}} 
     21 
     22If there is more than one .proj file, you can pass it on the command line: 
     23{{{ 
     24msbuild foo.proj 
     25}}} 
     26 
     27To build a specific target: 
     28{{{ 
     29msbuild /t:test 
     30}}} 
     31Targets are case insensitive. 
     32 
     33 
     34== Notes == 
     35 
     36You don't need to use a build tool for single files or very small projects. 
     37 
     38You can embed library references in your Cobra source code with the RefDirective (@ref) and thereby skip passing them on the command line. 
     39 
     40Alternatives to msbuild/xbuild include Nant, Make and scripts (such as bash or .bat). 
     41 
    842 
    943== External Links == 
     
    1347 * [http://mono-project.com/Porting_MSBuild_Projects_To_XBuild Porting MSBuild Projects to XBuild] 
    1448 * [http://rhysc.blogspot.com/2010/05/msbuild-101.html MSBuild 101] 
     49 * http://stackoverflow.com/questions/3008927/how-to-make-msbuild-itemgroup-items-be-separated-with-a-space-rather-than-semi-co