[openmapi.org devel] Build System
Achim Derigs
achim.derigs at innovidata.com
Fri Aug 14 15:40:58 CEST 2009
Hi Johannes!
Using xbuild/msbuild is difficult without any documentation:
$ xbuild /?
No usage help yet
Looking at http://www.mono-project.com/Microsoft.Build doesn't make things better.
Far from it! It is the only explicit documentation about xbuild.
Implicit documentation may be found at:
http://www.tech-archive.net/Archive/VisualStudio/microsoft.public.vsnet.general/2006-12/msg00090.html
But that doesn't match. For example:
<Project DefaultTargets = "Compile"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
<PropertyGroup>
<dllname>GoldParser</dllname>
</PropertyGroup>
<ItemGroup>
<CSFile Include = "lib/GoldParser/*.cs"/>
</ItemGroup>
<Target Name = "Compile">
<MSC
Sources = "@(CSFile)"
OutputAssembly = "$(dllname).dll">
<Output
TaskParameter = "OutputAssembly"
ItemName = "EXEFile" />
</MSC>
<!-- Log the file name of the output file -->
<Message Text="The output file is @(EXEFile)"/>
</Target>
</Project>
Results in:
$ xbuild GoldParser.proj
XBuild Engine Version 0.1
Mono, Version 2.4.0.0
Copyright (C) Marek Sieradzki 2005. All rights reserved.
Build started 8/14/2009 11:47:14 AM.
__________________________________________________
Project "/home/felfert/nmapi/GoldParser.proj" (Compile target(s)):
Target Compile:
System.Exception: Not registered task MSC.
at Microsoft.Build.BuildEngine.TaskDatabase.GetTypeFromClassName (System.String classname) [0x00000]
at Microsoft.Build.BuildEngine.BuildTask.get_Type () [0x00000]
at Microsoft.Build.BuildEngine.BuildTask.InitializeTask () [0x00000]
at Microsoft.Build.BuildEngine.BuildTask.Execute () [0x00000]
Build succeeded.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.0412230
It seems that we have to wait for better documentation and/or code quality for a start.
Best regards
Achim
On Friday, 7. August 2009 17:31:01 Johannes Roith wrote:
>
> Hello, everyone!
>
> I would like to see the NMapi build script changed from Makefiles to
> msbuild/xbuild.
>
> There are three main reasons:
>
> 1. People keep asking about how to build NMapi on Windows. Using
> xbuild/msbuild removes the unix dependency and also makes it possible to
> build from VisualStudio (which has also been requested multiple times).
>
> 2. We are using several tools in the build process, including
> xslt-generated code, mlog (custom), preproc (custom) and, soon, mapimap.
> Using msbuild we can integrate these tools very nicely.
>
> 3. It is difficult or impossible to build silverlight or iphone apps
> without msbuild.
>
> Mono XBuild (msbuild) seems to be complete enough to be used use it now.
>
> So, if you want to contribute to OpenMapi, this seems like a great
> opportunity to get involved!),
>
> Johannes.
>
> _______________________________________________
> Devel mailing list
> Devel at openmapi.org
> http://www.openmapi.org/mailman/listinfo/devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://www.openmapi.org/pipermail/devel/attachments/20090814/d55f989b/attachment.pgp>
More information about the Devel
mailing list