Running nant to compile csc project

E

emferrari

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!
 
E

emferrari

Hi

I still can't compile the project. I've looked into the website and
tried a lot of different things and I still get errors.

Eduardo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top