This is taken from my build file. The most important are: "prefix" and "dynamicprefix" attributes.
Resources are named: Sooda.StubGen.Template.Template.csproj Sooda.StubGen.Template.Template.vbproj ... <target name="StubGen-mini" depends="settings, Sooda"> <csc target="exe" output="${sooda.outdir}/StubGen.exe" debug="${sooda.debug}" define="${sooda.define},NO_VB,NO_JSCRIPT"> <references> <includes name="${sooda.outdir}/Sooda.dll" /> </references> <sources basedir="Tools/StubGen"> <includes name="*.cs" /> </sources> <resources basedir="Tools/StubGen" prefix="Sooda.StubGen" dynamicprefix="true"> <includes name="Template/Template.csproj" /> <includes name="Template/Template.vbproj" /> <includes name="Template/nantcs.build" /> <includes name="Template/nantvb.build" /> <includes name="Template/nantjs.build" /> </resources> </csc> <copy file="Tools/StubGen/App.config" tofile="${sooda.outdir}/StubGen.exe.config" /> </target> Hope it helps. Jarek ----- Original Message ----- From: "Michael Doerfler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 14, 2003 3:26 PM Subject: [Nant-users] Embedding XML as Resource > Hello everyone, sorry for asking such as basic question but I have RTFMed, > searched the souceforge list, and googled this and can't find an answer - or > atleast the answer I am looking for :) > > When I use VS.NET 2003 I can have the following structure for my project > Folder1 > Folder2 > File.xml > > and on the properties screen choose the Compile Action to be an Embedded > Resource and it will be compiled into the manifest as > > .mresource public DefaultNamespace.Folder1.Folder2.File.xml > { > } > > I have been unable to duplicate that functionallity in NAnt using the > Resource element and all of the various attributes. > > I found the following bug > http://sourceforge.net/tracker/index.php?func=detail&aid=805307&group_id=31650&atid=402868 > that was geared towards fixing problems with as?x files and another posting > of similar problem with crystal reports > http://www.mail-archive.com/[EMAIL PROTECTED]/msg01691.html > > The Crystal Reports mailing suggestion was to rename the file to > DefaultNamespace.Folder1.Folder2.File.xml. If I do that and do a compile > from VS.NET it ends up putting the following entry in the manifest > > .mresource public > DefaultNamespace.Folder1.Folder2.DefaultNamespace.Folder1.Folder2.File.xml > { > } > > I don't want my NAnt build to put different resource names in the manifest > than the VS.NET build does. I don't want to have to put all of the XML > files at the root of the project with their namespace name in the file name. > Is this a bug or am I just using NAnt (version 0.84) incorrectly? > > Any help would be greatly appreciated! Thanks! > > Mike Doerfler > > _________________________________________________________________ > Don’t worry if your Inbox will max out while you are enjoying the holidays. > Get MSN Extra Storage! http://join.msn.com/?PAGE=features/es > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users