Hi All,

I have been trying to generate MSI (Microsoft Installer) file for a simple
"hello world" application written in C#. I am using NAnt Contrib. Getting
object reference error.

Code for the build script is as follows:

BUILD SCRIPT:

<target name="build" description="compiles the source code">
                <csc target="exe" output="hello.exe" debug="none">
                        <sources>
                                <includes
name="C:\sushant\test_projects\hello_world\hello_world\class1.cs" />
                        </sources>
                </csc>
        </target>
=================================

Generating MSI file script:

<target name="build-msi2" description="building msi file using msi task"
depends="build">
                <loadtasks assembly="c:\Program
Files\Nant\NantContrib\bin\nantcontrib-0.85-rc3\bin\NAnt.Contrib.Tasks.dll"
/> 
                <msi output="C:\sushant\test_projects\mymsi.msi"
sourcedir="C:\sushant\test_projects\hello_world\hello_world"> 
                </msi>
        </target>
==================================

The error msg I am getting is:

"Object reference not set to an instance of an object."
==================================


Do I need any of the nested elements in <msi> task as well? Or any pointers
on contrib documentation would also be appreciated.

TIA,
Sush


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to