I don't know precisely the problem with your resource.
are you saying that the app, if build within visual studio, runs correctly,
and if built outside VS, it does not run correctly?
If so, then it seems that you have not done the build "the same way".
I know of 2 options for automating builds from the command line:
1. from the command line, you can automate the VS IDE to perform the build
for you.:
DEVENV.exe solution1.sln /rebuild Release
2. third party products that can automate VS builds, or generate makefiles
from VS proj files.
- Nant
- openmakr
- Visual Build
see also
http://www.ftponline.com/vsm/2003_10...g/default.aspx
-Dino
"aladdin" <al*****@discussions.microsoft.com> wrote in message
news:86**********************************@microsof t.com...
I use outside .jpg picture files in a Windows Form project. I try to
compile
use csc.exe at command line.
I use resgen.exe to generate a resource file like:
resgen.exe Form1.resx MyNameSpace.MainForm.resources
then use csc to compile:
csc /nologo /t:winexe /out:app1.exe /res:MyNameSpace.MainForm.resources
/win32icon:App.ico *.cs
The output exe file has the same size as compiled in VS.NET IDE, however,
at
runtime the program still complains that there is some resource error.
Anyone can help with this? Thanks!