473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 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 5661
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nigel Currie | last post by:
Hi all, I'm having a problem with <nant> tasks to build sub-projects into an overall solution. I have the following directory structure: JobManagerSolution |_ | JobManager |_...
2
by: HaukiDog | last post by:
Hi, I am trying to set up my C# web project to be compiled by NANT. Everything compiles and works fine within the IDE. I have a created a NANT build file which has a simple project tag, like...
3
by: muesliflakes | last post by:
I am trying to run nunit2 from nant and get the following error: NUnit 2.0 Error: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib,...
2
by: Ireneus Broncel | last post by:
Maybe I am wrong here, but I have a problem with nant that I don't unterstand, I'm trying to compile an example ConsoleApp Project with net-1.1, and get the errror: log4net:ERROR LogLog:...
3
by: prabhupr | last post by:
Hi Folks Not sure if this is the right group, if not please re-direct me to the right one. Here is my question =============== When I compile my ASP.NET WEB project from VS 2005 (.NET...
2
by: Brett Romero | last post by:
I am compiling a winform app using nant. I first compile via VS.NET, which generates *.resource files in obj\debug. Then I use the <resources> tag in the Nant script to complete a build via Nant....
12
by: michael sorens | last post by:
So I have compiled a .dll file from a Visual Studio 2005 project containing a few dozen c# files. Now I want to automate this build using ant (have not yet looked at nant, but the rest of my...
1
by: Spam Catcher | last post by:
Hello Everyone, I just started using nant in conjunction with cruisecontrol.net. The <solutiontag has been great in helping us compile VS.NET 2003 projects without need to write a nant build...
1
by: Crash | last post by:
Hi all, Is there a newsgroup for NANT? Or is there some place I can post NANT questions? In case this newsgroup is Ok for NANT questions, here is my issue: Windows XP VS 2003
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.