csc and resources

  • Thread starter Thread starter Michael Moreno
  • Start date Start date
M

Michael Moreno

Hi there,

I am trying to compile a WinForm project using csc.
The compilation works fine. But when I start the project it crashes.

The problem appears to be linked to resources which were created
because I put some ImageLists onto Forms.

I use the following directives with csc:

/res:"C:\xxx\Form1.resx"
/res:"C:\xxx\FormSplashScreen.resx"

but it just does not work.

Can someone tell me what is wrong witht his please?

thanks,
MM
 
Michael,
/res:"C:\xxx\Form1.resx"
/res:"C:\xxx\FormSplashScreen.resx"

but it just does not work.

Can someone tell me what is wrong witht his please?

You first have to compile the resx files to resources files with
Resgen.exe.


Mattias
 
You first have to compile the resx files to resources files with
Resgen.exe.

Yes thanks.

Because it was still not working and I browse on the net and it appears
we also need to add the default namespace in the new resource file
name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top