473,389 Members | 1,075 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,389 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 1609
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Scott Vercuski | last post by:
Everyone, Does anyone know how to compile an ASP.NET web project using just the command line compiler? I've tried numerous options and can't seem to come up with the right solution. Is there a...
6
by: Edd Dawson | last post by:
Hi. I have a strange problem involving the passing of command line arguments to a C program I'm writing. I tried posting this in comp.programming yesterday but someone kindly suggested that I'd...
9
by: happy | last post by:
I need to download Command line C compiler ASAP ? Where can I find the latest and moden one ?
0
by: Louise Caldicott | last post by:
Hi all, I have created a project in Visual Studio which uses satellite assemblies. I have also written a script to build this project from the command line. There seems to be a difference in...
4
by: Brett | last post by:
I have recently purchased Visual C++ . Net compiler and i am trying to compile a project that i had working in Visual C++ 6.0. When I compile, I am receiving the warning: cl : Command line...
4
by: billben74 | last post by:
Despite advances in devstudio .NET building large projects can still be difficult. Is there a way, perhaps using EnvDev class or some other class that would allow output of the "command line" that...
4
by: Bit byte | last post by:
I have a project that I normally build (without problems) from the DevStudio IDE. However, I have embarked on automating all my builds (this test project being one of several). The project...
9
by: Ale | last post by:
Hi... I started to "program" in PHP (better say to read it :P) from a few days because I am installing a Wiki on a virtual server (Windows Server 2003 with Plesk 7.6). I have PHP5 and all is...
4
by: Rahul | last post by:
Hello, I am trying to compile a Windows Forms project through command line. I have added some images on the buttons. These images are added as a resource and stored in the "Resource" directory...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.