Hi Eduardo,

You would have to create a interop to MSI.dll using tlbimp.exe and reference the interop instead of refering msi.dll directly.

Regards,
Vagmi

On 1/24/06, Eduardo Ferrari <[EMAIL PROTECTED]> wrote:
Hi all

I have a cs project that contains a reference to the MSI.DLL. If I open
the project manually into the VS.NET it compiles fine, but when it runs
against nant it fails. The error is regarding missing namespaces that
are into the MSI.DLL.

Here is my nant command:

<?xml version="1.0"?>
<project
name="Framework.PresentationLayer.Updater.ActivationProcessors"
default="build" basedir="C:\Framework\PresentationLayer
(UI)\Updater\ActivationProcessors"
xmlns="http://nant.sf.net/release/0.85-rc2/nant.xsd">
<target name="build">
<csc target="library"
output="${bin.dir}\Framework.PresentationLayer.Updater.ActivationProcessors�.dll"
debug="false" failonerror="false">
<sources failonempty="true">
<include name=" ApplicationDeployProcessor.cs"/>
<include name="FileCopyProcessor.cs"/>
<include name="FileDeleteProcessor.cs"/>
<include name="FolderCopyProcessor.cs"/>
<include name="FolderDeleteProcessor.cs"/>
<include name="GacUtilProcessor.cs"/>
<include name="InstallUtilProcessor.cs"/>
<include name="MsiProcessor.cs"/>
<include name="UncompressProcessor.cs"/>
<include name="ValidateHashException.cs"/>
<include name="ValidateHashProcessor.cs"/>
<include name="WaitForApplicationExitProcessor.cs "/>
<include name="AssemblyInfo\AssemblyInfo.cs"/>
</sources>
<resources >
<include name="**\*.resx"/>
</resources>
<references basedir="${ bin.dir}">
<include name="System.dll"/>
<include name="System.Data.dll"/>
<include name="System.Drawing.dll"/>
<include name="System.Windows.Forms.dll "/>
<include name="System.Xml.dll"/>
<include name="msi.dll"/>
</references>
</csc>
</target>
</project>

In the project is referencing like this:

COM reference
              <Reference
                    Name = "WindowsInstaller"
                    Guid = "{000C1092-0000-0000-C000-000000000046}"
                    VersionMajor = "1"
                    VersionMinor = "0"
                    Lcid = "1033"
                    WrapperTool = "tlbimp"
                />

Any help is welcome!

Thanks!

Eduardo Ferrari


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



--
http://geekswithblogs.net/vagmi.mudumbai
http://installneo.blogspot.com

'Given enough eyeballs, all bugs are shallow.'

Reply via email to