472,146 Members | 1,380 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

Command line compiler when there are images in the project: any suggestion?

I need to create a multiple file assemby: this requires working directly
with the command line compiler (no IDE support!).
After a few tests I found my problem comes from the issue described below.
Thank you in advance for any suggestion?
===
The project is a nearly empty Windows Form project, and the compilation
works fine as far as there is no bitmap in the project form.
I have to use the command line compiler and I use the following command
line:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.e xe /out:test.exe

If in the picture box control of the form I define the "Image" field, then
the compilation works fine, but i get the following exception at run time:
'System.Resources.MissingManifestResourceException '.
On the other side, if I try to compile it with the VS IDE everything works
fine (but it is not usefull for my test!)

I also tried using the /resource option (with the file returned by
ResGen.exe on Form1.resx), but with no benefit.

Does anyone know if it is possible to get the command line used by the IDE?

Thanks,
Francesco.
Nov 16 '05 #1
4 1554
Francesco,

Can you post some code, or an example? Without seeing the code, it's
impossible to see how you are obtaining the resource (which you are not
specifying, btw), or how you are assigning the picture.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Francesco Martinelli" <f_*******@katamail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I need to create a multiple file assemby: this requires working directly
with the command line compiler (no IDE support!).
After a few tests I found my problem comes from the issue described below.
Thank you in advance for any suggestion?
===
The project is a nearly empty Windows Form project, and the compilation
works fine as far as there is no bitmap in the project form.
I have to use the command line compiler and I use the following command
line:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.e xe /out:test.exe

If in the picture box control of the form I define the "Image" field, then
the compilation works fine, but i get the following exception at run time:
'System.Resources.MissingManifestResourceException '.
On the other side, if I try to compile it with the VS IDE everything works
fine (but it is not usefull for my test!)

I also tried using the /resource option (with the file returned by
ResGen.exe on Form1.resx), but with no benefit.

Does anyone know if it is possible to get the command line used by the
IDE?

Thanks,
Francesco.

Nov 16 '05 #2
Francesco,

Can you post the contents of build.bat? OE blocks attachments that are
batch files.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Francesco Martinelli" <f_*******@katamail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Nicholas,
to keep at the minimum the possible errors I could introduce, I just
opened
a windows project (in VS) andded an image control to the form and assigned
the image property throw the property panel to the control.

Attached are the sources.

Thank you,
Francesco.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> ha
scritto nel messaggio news:uD**************@TK2MSFTNGP15.phx.gbl...
Francesco,

Can you post some code, or an example? Without seeing the code, it's
impossible to see how you are obtaining the resource (which you are not
specifying, btw), or how you are assigning the picture.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Francesco Martinelli" <f_*******@katamail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I need to create a multiple file assemby: this requires working directly
with the command line compiler (no IDE support!).
After a few tests I found my problem comes from the issue described
below.
Thank you in advance for any suggestion?
===
The project is a nearly empty Windows Form project, and the compilation
works fine as far as there is no bitmap in the project form.
I have to use the command line compiler and I use the following command
line:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.e xe /out:test.exe

If in the picture box control of the form I define the "Image" field,
then
the compilation works fine, but i get the following exception at run
time:
'System.Resources.MissingManifestResourceException '.
On the other side, if I try to compile it with the VS IDE everything
works
fine (but it is not usefull for my test!)

I also tried using the /resource option (with the file returned by
ResGen.exe on Form1.resx), but with no benefit.

Does anyone know if it is possible to get the command line used by the
IDE?

Thanks,
Francesco.



Nov 16 '05 #3
Nicholas,
the only "build.bat" files I can find on my system are below the directory:
C:\Programmi\Microsoft Visual Studio .NET 2003\SDK\v1.1\Samples\...
I doubt they can help!

I wonder wether you know if it is possible to ask VS to produce it with some
option.
I immagine there is an option, but I can't find it!

Francesco.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> ha
scritto nel messaggio news:OP*************@TK2MSFTNGP09.phx.gbl...
Francesco,

Can you post the contents of build.bat? OE blocks attachments that are
batch files.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Francesco Martinelli" <f_*******@katamail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Nicholas,
to keep at the minimum the possible errors I could introduce, I just
opened
a windows project (in VS) andded an image control to the form and
assigned
the image property throw the property panel to the control.

Attached are the sources.

Thank you,
Francesco.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> ha
scritto nel messaggio news:uD**************@TK2MSFTNGP15.phx.gbl...
Francesco,

Can you post some code, or an example? Without seeing the code, it's
impossible to see how you are obtaining the resource (which you are not
specifying, btw), or how you are assigning the picture.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Francesco Martinelli" <f_*******@katamail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I need to create a multiple file assemby: this requires working directly
with the command line compiler (no IDE support!).
After a few tests I found my problem comes from the issue described
below.
Thank you in advance for any suggestion?
===
The project is a nearly empty Windows Form project, and the compilation
works fine as far as there is no bitmap in the project form.
I have to use the command line compiler and I use the following command
line:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.e xe /out:test.exe

If in the picture box control of the form I define the "Image" field,
then
the compilation works fine, but i get the following exception at run
time:
'System.Resources.MissingManifestResourceException '.
On the other side, if I try to compile it with the VS IDE everything
works
fine (but it is not usefull for my test!)

I also tried using the /resource option (with the file returned by
ResGen.exe on Form1.resx), but with no benefit.

Does anyone know if it is possible to get the command line used by the
IDE?

Thanks,
Francesco.



Nov 16 '05 #4
Did you mean th lines present in the previously attached batch?
They are:

"C:\Programmi\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\resgen.exe"
Form1.resx
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.e xe /out:test1.exe Form1.cs
/resource:Form1.resources

Is there anything missing?
Thnks,
Francesco.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> ha
scritto nel messaggio news:OP*************@TK2MSFTNGP09.phx.gbl...
Francesco,

Can you post the contents of build.bat? OE blocks attachments that are
batch files.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Francesco Martinelli" <f_*******@katamail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Nicholas,
to keep at the minimum the possible errors I could introduce, I just
opened
a windows project (in VS) andded an image control to the form and
assigned
the image property throw the property panel to the control.

Attached are the sources.

Thank you,
Francesco.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> ha
scritto nel messaggio news:uD**************@TK2MSFTNGP15.phx.gbl...
Francesco,

Can you post some code, or an example? Without seeing the code, it's
impossible to see how you are obtaining the resource (which you are not
specifying, btw), or how you are assigning the picture.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Francesco Martinelli" <f_*******@katamail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I need to create a multiple file assemby: this requires working directly
with the command line compiler (no IDE support!).
After a few tests I found my problem comes from the issue described
below.
Thank you in advance for any suggestion?
===
The project is a nearly empty Windows Form project, and the compilation
works fine as far as there is no bitmap in the project form.
I have to use the command line compiler and I use the following command
line:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.e xe /out:test.exe

If in the picture box control of the form I define the "Image" field,
then
the compilation works fine, but i get the following exception at run
time:
'System.Resources.MissingManifestResourceException '.
On the other side, if I try to compile it with the VS IDE everything
works
fine (but it is not usefull for my test!)

I also tried using the /resource option (with the file returned by
ResGen.exe on Form1.resx), but with no benefit.

Does anyone know if it is possible to get the command line used by the
IDE?

Thanks,
Francesco.



Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Edd Dawson | last post: by
9 posts views Thread by happy | last post: by
9 posts views Thread by Ale | last post: by
4 posts views Thread by Rahul | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.