Hi, I've been using MSBee to build a small program for some time now
(since not everyone seems to have the 2.0 CLI installed yet).
Recently I decided to add some buttons that used images, so I naturally
placed the images in the project directory, then assembled them into a
resource file using the resource editor, which VS2005 placed the final
resource file in Properties\Resources.resx. All seemingly normal, no
hiccups thus far. Everything builds fine in Visual Studio.
Now, I open up a shell, run:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbu ild.exe
TestResx11.sln /t:Rebuild /p:TargetFX1_1=true
/p:CustomAfterMicrosoftCommonTargets="%ProgramFiles %\MSBuild\MSBee\MSBuildExtras.Fx1_1.CSharp.targets "
(all on one line of course, and from within the solution's directory)
ResGen fails giving the afore mentioned DirectoryNotFoundException,
which it hits while looking for:
....My Documents\Visual Studio 2005\Projects\images\test.png
instead of looking in:
....My Documents\Visual Studio 2005\Projects\TestResx11\images\test.png
The Resources.resx file declares the resources relatively:
...\images\test.png
However, ResGen doesn't seem to update the working directory, or
something like that, so it goes a level above the solution directory,
instead of the directory it's processing the file in.
I've been looking for a while, and haven't found anything. If anyone
has any input here, I'd appreciate it. Thanks, and sorry if this isn't
the right group, but a cursory search for MSBee seemed to point me
here.
Dan