hi Nicholas ,
The <resources >... </resources > fileset takes care of the conversion between .resx & .resources fle
You should write it like this
<resources>
<includes name="testResources.resx"/>
</resources>
If there is no associated class testResources.cs , you should write it like this
<resources prefix="Your.namespace">
<includes name="testResources.resx"/>
</resources>
Where "your.namespace" is the default namespace for your project
Hope this help.
Yves
-----Original Message-----
From: Nicholas Robinson [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2003 16:09
To: [EMAIL PROTECTED]
Subject: [Nant-users] Resx files not getting embedded
Hi,
I am trying to embed a resx resource during compilation, but when I try to access the resource I cannot find it (usnig the Resource Manager). If I build the same project within DevStudio it works. My NANT script section is below:
<target name="Build">
<resx input="testResources.resx"/>
<csc target="library" output="${output}" debug="${debug}" define="${define}" doc="${doc}">
<arg value="${unsafe}" />
<arg value="${checked}" />
<sources>
<includes name="${project.source.path}AssemblyInfo.cs" />
<includes name="${project.source.path}ProjectReaderTestCases.cs" />
</sources>
<references>
<includes name="System.dll" />
<includes name="System.Data.dll" />
<includes name="System.Xml.dll" />
<includes name="${reference.path}/nunit.framework.dll" />
</references>
<resources>
<includes name="testResources.resources"/>
</resources>
</csc>
</target>
Can someone tell me what I am doing wrong? I am using the latest Stable Release, 7.9.0.
Nick.
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs