473,320 Members | 1,814 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,320 software developers and data experts.

How to compile proj with resources at command line?

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!

Nov 22 '05 #1
3 5682
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!

Nov 22 '05 #2
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!

Nov 22 '05 #3
Thanks Dino,

The problem is exactly what you said.
My question is, is there any way to compile using only .Net Framework? The
situation is: I don't have VS.NET installed, no devenv.exe there to compile.
I just want to use command line compilation using csc.exe or some tools
provided by MS. Is this impossible?
Thanks again!
"Dino Chiesa [Microsoft]" wrote:
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!


Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: | last post by:
You know,I can compile a .vb file,such as "vbc /t:library /out:fibonacci_vb.dll fibonacci.vb". But can I compile a whole project under command prompt?
2
by: aladdin | last post by:
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...
3
by: Aquila Deus | last post by:
Hi all! Is there any command-line tool that can add/delete and replace string and files in .resources?
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
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...
3
by: | last post by:
I am trying to compile a simple c# class in Web Matrix called howdy.cs: // Program start class public class HowdyPartner { // Main begins program execution public static void Main() { //...
6
by: Kevin Atherton | last post by:
Hello. I work for a large web company, and we are in the process of converting our old .asp pages to .aspx with VB code-behind. The solution includes 8 projects, all of which are very...
6
by: _DS | last post by:
I have two projects that currently need to refer to each other. More precisely: Proj A: Class 1 refers to Proj B Class 1 Proj B: Class 1 Class 2 refers to Proj A Class 1
0
by: Jérôme Le Bougeant | last post by:
Hello (and sorry for my English), I downloaded the VideoCapture module on the http://videocapture.sourceforge.net/ site. I tested it with a webcam and that functions. Now I want to...
4
by: Billy | last post by:
Hi! I'm using: -Compiler: Borland Command Line C++ Compiler 5.5.1 -Code Editor: SciTE 1.75 Anybody know how we can in Scite with command Tools|Go (F5) compile and run my c or cpp program at...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.