471,319 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

Running nant to compile csc project

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.Activati onProcessors"
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.Upd ater.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!

Jan 18 '06 #1
4 5488
Maybe getting the Nant extension project nantcontrib would help.

cheers,
mabm

<em*******@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
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.Activati onProcessors"
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.Upd ater.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!

Jan 18 '06 #2
I'm sorry, but I didn't understand what you meant!

Jan 18 '06 #3
check out
http://nantcontrib.sourceforge.net/
nantcontrib adds tasks not included in the main nant build engine. It has
support for generating installers. Maybe your reference to msi.dll will work
out if using nantcontrib.

hope this helps,
mortb

<em*******@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I'm sorry, but I didn't understand what you meant!

Jan 18 '06 #4
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

Jan 24 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Nigel Currie | last post: by
2 posts views Thread by HaukiDog | last post: by
3 posts views Thread by muesliflakes | last post: by
2 posts views Thread by Ireneus Broncel | last post: by
3 posts views Thread by prabhupr | last post: by
2 posts views Thread by Brett Romero | last post: by
12 posts views Thread by michael sorens | last post: by
1 post views Thread by Spam Catcher | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.