[openmapi.org devel] Build System
Frederick Roth
frederick.roth at innovidata.com
Mon Aug 17 10:25:14 CEST 2009
Hi Johannes,
the problem is, that when you stick literally to the msdn documentation
for msbuild, xbuild crashes without helping error messages.
This is a state which I do not really like for a central and important
tool like building.
If it is not possible to copy the example from msdn literally there
should be at least a working example on the xbuild homepage. I will try
to get the developer to either document the differences to msbuild or
eliminate those differences.
Greetings,
Fred
Johannes Roith wrote:
> Hello, Fred!
>
> Thanks! This is good news, and, since xbuild is a clone of msbuild I
> did not consider the issue to be much of a problem anyway. Microsoft
> has very good documentation on msdn.
>
> Johannes.
>
> On Mon, Aug 17, 2009 at 9:27 AM, Frederick
> Roth<frederick.roth at innovidata.com> wrote:
>> Hi all,
>>
>> I opened a bug report against xbuild about the missing documentation.
>>
>> https://bugzilla.novell.com/show_bug.cgi?id=531276
>>
>> Now we at least have some usage help and the promise of a manpage.
>>
>> Additionally I found out what was the "error" in the .build file Achim
>> provided. To compile you have to use the Csc task (with captial C at the
>> beginning) maybe this is due to the unix bug of not ignoring case in
>> filenames ;)
>>
>> Greetings,
>>
>> Fred
>>
>> Achim Derigs wrote:
>>> 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
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Devel mailing list
>>>> Devel at openmapi.org
>>>> http://www.openmapi.org/mailman/listinfo/devel
>> --
>> ------------------------------------------------------------------------
>> Frederick Roth
>> Softwareentwicklung
>>
>> InnoviData GmbH Tel. +49 711 88770-142
>> Lilienthalstraße 2/1 Fax +49 711 88770-299
>> 70825 Korntal/Stuttgart Cel. +49 170 7917742
>> http://www.innovidata.com frederick.roth at innovidata.com
>>
>> Geschäftsführer: Thomas Uhl
>> Sitz und Amtsgericht Stuttgart, HRB 21082
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at openmapi.org
>> http://www.openmapi.org/mailman/listinfo/devel
>>
>>
--
------------------------------------------------------------------------
Frederick Roth
Softwareentwicklung
InnoviData GmbH Tel. +49 711 88770-142
Lilienthalstraße 2/1 Fax +49 711 88770-299
70825 Korntal/Stuttgart Cel. +49 170 7917742
http://www.innovidata.com frederick.roth at innovidata.com
Geschäftsführer: Thomas Uhl
Sitz und Amtsgericht Stuttgart, HRB 21082
------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://www.openmapi.org/pipermail/devel/attachments/20090817/87d347be/attachment.pgp>
More information about the Devel
mailing list