473,574 Members | 17,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 .PresentationLa yer.Updater.Act ivationProcesso rs"
default="build" basedir="C:\Fra mework\Presenta tionLayer
(UI)\Updater\Ac tivationProcess ors"
xmlns="http://nant.sf.net/release/0.85-rc2/nant.xsd">
<target name="build">
<csc target="library "
output="${bin.d ir}\Framework.P resentationLaye r.Updater.Activ ationProcessors .dll"
debug="false" failonerror="fa lse">
<sources failonempty="tr ue">
<include name="Applicati onDeployProcess or.cs"/>
<include name="FileCopyP rocessor.cs"/>
<include name="FileDelet eProcessor.cs"/>
<include name="FolderCop yProcessor.cs"/>
<include name="FolderDel eteProcessor.cs "/>
<include name="GacUtilPr ocessor.cs"/>
<include name="InstallUt ilProcessor.cs"/>
<include name="MsiProces sor.cs"/>
<include name="Uncompres sProcessor.cs"/>
<include name="ValidateH ashException.cs "/>
<include name="ValidateH ashProcessor.cs "/>
<include name="WaitForAp plicationExitPr ocessor.cs"/>
<include name="AssemblyI nfo\AssemblyInf o.cs"/>
</sources>
<resources >
<include name="**\*.resx "/>
</resources>
<references basedir="${bin. dir}">
<include name="System.dl l"/>
<include name="System.Da ta.dll"/>
<include name="System.Dr awing.dll"/>
<include name="System.Wi ndows.Forms.dll "/>
<include name="System.Xm l.dll"/>
<include name="msi.dll"/>
</references>
</csc>
</target>
</project>

In the project is referencing like this:

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

Any help is welcome!

Thanks!

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

cheers,
mabm

<em*******@gmai l.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.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 .PresentationLa yer.Updater.Act ivationProcesso rs"
default="build" basedir="C:\Fra mework\Presenta tionLayer
(UI)\Updater\Ac tivationProcess ors"
xmlns="http://nant.sf.net/release/0.85-rc2/nant.xsd">
<target name="build">
<csc target="library "
output="${bin.d ir}\Framework.P resentationLaye r.Updater.Activ ationProcessors .dll"
debug="false" failonerror="fa lse">
<sources failonempty="tr ue">
<include name="Applicati onDeployProcess or.cs"/>
<include name="FileCopyP rocessor.cs"/>
<include name="FileDelet eProcessor.cs"/>
<include name="FolderCop yProcessor.cs"/>
<include name="FolderDel eteProcessor.cs "/>
<include name="GacUtilPr ocessor.cs"/>
<include name="InstallUt ilProcessor.cs"/>
<include name="MsiProces sor.cs"/>
<include name="Uncompres sProcessor.cs"/>
<include name="ValidateH ashException.cs "/>
<include name="ValidateH ashProcessor.cs "/>
<include name="WaitForAp plicationExitPr ocessor.cs"/>
<include name="AssemblyI nfo\AssemblyInf o.cs"/>
</sources>
<resources >
<include name="**\*.resx "/>
</resources>
<references basedir="${bin. dir}">
<include name="System.dl l"/>
<include name="System.Da ta.dll"/>
<include name="System.Dr awing.dll"/>
<include name="System.Wi ndows.Forms.dll "/>
<include name="System.Xm l.dll"/>
<include name="msi.dll"/>
</references>
</csc>
</target>
</project>

In the project is referencing like this:

COM reference
<Reference
Name = "WindowsInstall er"
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*******@gmai l.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.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
2505
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 |_ JobManagerController
2
3797
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 this: <?xml version="1.0" ?> <project name="MyProject" default="build" basedir="."> <description>The Hello World of build files.</description>...
3
4761
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, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. The doco for Nunit see: http://nant.sourceforge.net/help/tasks/nunit2.html, suggests...
2
2490
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: Exception while reading ConfigurationSettings. Check your .config file is well formed XML. System.Configuration.ConfigurationException: Unknown...
3
4247
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 Framework 2.0) IDE, it works fine, but if I use NANT (Build Automation) it gives me an error as follows:
2
3012
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. I did try the Nant build by accessing the *.resx file instead. The app throws this error when I start it: Could not find any resources...
12
18786
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 complex build is done with plain ant). Could someone point me to any tutorial or other guide for doing this? I would even settle for just how to do it...
1
1699
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 file. My project compiles stuff into a directory like: C:\DEV_Machine\Build_Directory <-Empty C:\DEV_Machine\Build_Directory\Project_1 <-Project 1...
1
2057
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
7820
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7835
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8121
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6486
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5635
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3759
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3777
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1360
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1084
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.