There is a resgen task in the NAntContrib project. I faked out and did
<exec> path.
<echo message="Creating Error Messages Resource" />
<exec program="resgen.exe" commandline=""${src.dir}\ErrorMsgs.txt"
${build.dir}\ErrorMsgs.resources" />
$quot : are important if there are spaces in your paths.
Word is there will be a release soon with a nice installer for both NAnt and
NAntContrib.
Kevin Miller
-----Original Message-----
From: Browning, Don [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 3:53 PM
To: 'Ian MacLean'; Browning, Don
Cc: [EMAIL PROTECTED]
Subject: RE: [nant-dev] Problem with embeded resources
Wow,
That's my problem, I didn't realize you couldn't embed the resx files, but I
see that they are only a design time thing and they must be compiled down
themselves.
Now my only other question is this: I can't seem to find a resgen task. Do
I need to shell it out to the resgen.exe?
Thanks,
Don
-----Original Message-----
From: Ian MacLean [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 4:00 PM
To: Browning, Don
Cc: [EMAIL PROTECTED]
Subject: Re: [nant-dev] Problem with embeded resources
Don,
What does your vbc task look like ? Are you adding the resources
properly using the <arg> element ? - see below an example of how to do
this. You can examine what resources have been added to an assembly
using ildsam - open the double-click on the MANIFEST node.
1) resgen the resx file to create a .resources file
<resgen input="PageControl.resx"
output="${directory}\Orion.GUI.ControlLibrary.PageControl.resources" />
2) and then add somthing like this to your vbc task
<arg
value="/resource:${directory}\Orion.GUI.ControlLibrary.PageControl.resources
"
/>
Ian
> Currently, my build script works fine, it runs start to finish
> compiling my app (1 exe, 18 dll's), but once I run the main
> executable, the get the following error:
>
> An unhandled exception of type
> 'System.Resources.MissingManifestResourceException' occurred in
> mscorlib.dll
>
> Additional information: Could not find any resources appropriate for
> the specified culture (or the neutral culture) in the given assembly.
> Make sure "PageControl.resources" was correctly embedded or linked
> into assembly "Orion.GUI.ControlLibrary".
>
> baseName: PageControl locationInfo:
> Turner.BSD.Orion.GUI.ControlLibrary.PageControl resource file name:
> PageControl.resources assembly: Orion.GUI.ControlLibrary,
> Version=0.9.2299.37, Culture=neutral, PublicKeyToken=null
>
> It appears the resources are not being embedded properly, but I've
> taken a look at the vbc task and everything appears to be ok. Has
> anyone else encountered this problem?
>
> If it helps, I can send the build script.
>
> Thanks,
>
> Don
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers