473,796 Members | 2,648 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 5685
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
2514
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
3817
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> <property name="debug" value="true"/>
3
4771
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 that I
2
2499
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 configuration section appSettings (c:\Development\NET\Tools\nant-0.85-rc3\bin\nant.exe.config line 8) at
3
4266
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
3018
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 appropriate for the specified culture or the neutral culture. Make sure...
12
18810
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 from a command-line.
1
1710
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 Bin
1
2073
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
9685
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10465
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10021
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4127
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.