Embedded Resources

N

n!

I have an irritating problem with VS.NET2003, C#. I wrote some code that
would build my application menu from an XML resource file. Purely to make it
easy for me to edit, so I've added this file as an embedded resource.

My irritation, is that when I update the resource file and nothing else. VS
does not build the project with the newly edited resource file. So if I run
the application again, it actually hasn't been updated to use my newly
modified menu. This can be really confusing, and frustrating later on when I
realise I need to rebuild the project again. Especially as I tend to work on
the resource for a bit, then when its ready I wont touch it again for a long
while. When I do, I've more than likely forgotten this is an issue.

I assume this would be the same for all resources, surely if you have an
embedded resource in your project (which gets compiled into your assembly),
you'd want changes to have an automatic effect?

I don't suppose anyone knows a way to get VS to recognise the embedded
resource as a part of the project that should be updated within the assembly
when it is changed? Maybe I'm just missing something :)

</rant> :)

Thanks,
n!
 
V

Vijaye Raji

Sorry n!

This is a known issue. The work-around is to rebuild the affected project.

-vJ
 

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

Top