Topher,
You should use a prefix of "com.somecompany.gui" on your <resources>
element, and set dynamicprefix to true.
Make sure to do this for both of your <resources> elements.
Let me know if you still have problems.
Gert
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Johnstone
Sent: vrijdag 6 juli 2007 13:56
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Embedding images in assembly
Could you exec MsBuild instead of using the csc task? That's how I build my
projects from within nant.
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Marks
Sent: Thursday, July 05, 2007 5:02 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Embedding images in assembly
Hi all, sorry for the newbie post.
I have a GUI app in C# that I am trying to build with NANT and am having
problems getting the built app to run. The issue seems to be with embedding
Resource images into the exe. I'm using VS 2005 and have multiple images
embedded and managed using Resources.resx. However, my NANT script isn't
embedding them correctly into the exe.
So the question is:
If I'm creating an exe with a default namespace of com.somecompany.gui and
have img1.gif and img2.gif in the Resources dir and mapped through
Resources.resx, what should the resulting csc task look like?
My current csc task looks like this (compiling, but not working):
<csc target="winexe" output="${ build.home}/${output.name}.exe"
debug="${debug}" doc="${build.home}/${output.name}.xml">
<sources basedir="${ workspace.home}">
<include name="**/*.cs" />
<exclude name="**/*Test*.cs" />
</sources>
<references basedir="${ build.home}">
<include name="*.dll" />
</references>
<resources basedir="${workspace.home}"
prefix="${resource.prefix}">
<include name="**/*.resx" />
<include name="Spring-Config*.xml" />
</resources>
<resources basedir="${workspace.home }" >
<include name="Resources/*.png" />
<include name="Resources/*.gif" />
<include name="Resources/*.jpg" />
</resources>
</csc>
Thanks in advance,
topher
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users