Groups | Blog | Home
all groups > vb.net controls > october 2004 >

vb.net controls : vbc.exe


Ernest Morariu
10/22/2004 11:16:19 AM
Hi !

I try to create a batch file to automate the compilation of my project.

I have some problems with the "/resource: <resources_list>" option of the vb
compiler. It seems that it does not accept more than two resources.
Specifying more than two resources as <resources_list> I get the following
error message:

vbc : Command line error BC2014 : the value
MyAppNamespace.Sample3.resources' is invalid for option 'resource'

The resource file is valid; I tried to change the order of the resources in
the <resources_list> and I always get the error on the third resource.

Someone knows how can I solve this problem ?

Regards,
ernest

David R. Jenkins
10/29/2004 5:47:57 AM
Ernest,
I don't have an answer for you regarding VBC.EXE, however I do have an
alternative.

You could use the "DevEnv.Exe" to compile the solution for you.

"C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE\DevEnv.Exe" <Solution File> /rebuild <Mode> /out
<LogFile>

<Solution> = Your *.SLN file.
<Mode> = Debug / Release / <Any custom configuration you made in the
IDE>
<LogFile> = Will contain the output generated during the compilation.

This has been working for me, I hope this will work for you!
Regards,
David R. Jenkins
AddThis Social Bookmark Button